Class MemberInfo
- java.lang.Object
-
- org.eclipse.birt.report.model.api.metadata.MemberInfo
-
- All Implemented Interfaces:
ILocalizableInfo
,IMemberInfo
public class MemberInfo extends java.lang.Object implements IMemberInfo
Represents the definition of class member. The class member defines the member type besides name, display name ID and tool tip ID.
-
-
Constructor Summary
Constructors Constructor Description MemberInfo()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IClassInfo
getClassType()
Returns the member type in Class.java.lang.String
getDataType()
Returns the script data type of this member.java.lang.String
getDisplayName()
Returns the display name if the resource key of display name is available.java.lang.String
getDisplayNameKey()
Returns the resource key for display name.java.lang.String
getName()
Returns the definition name.java.lang.String
getToolTip()
Returns the tool tip if the resource key of tool tip is available.java.lang.String
getToolTipKey()
Returns the resource key for tool tip.boolean
isStatic()
Returns whether this member is static.protected void
setDataType(java.lang.String type)
Sets the script data type of this member.protected void
setDisplayName(java.lang.String displayName)
Sets the display name.protected void
setDisplayNameKey(java.lang.String displayNameKey)
Sets the resource key for display name.protected void
setName(java.lang.String name)
Sets the definition name.protected void
setStatic(boolean isStatic)
Sets whether this member is static.protected void
setToolTip(java.lang.String toolTip)
Sets the display string for the tool tip of this method.protected void
setToolTipKey(java.lang.String toolTipKey)
Sets the resource key for tool tip.
-
-
-
Method Detail
-
getDataType
public java.lang.String getDataType()
Description copied from interface:IMemberInfo
Returns the script data type of this member.- Specified by:
getDataType
in interfaceIMemberInfo
- Returns:
- the script data type of this member
-
setDataType
protected void setDataType(java.lang.String type)
Sets the script data type of this member.- Parameters:
type
- the script data type to set
-
setStatic
protected void setStatic(boolean isStatic)
Sets whether this member is static.- Parameters:
isStatic
- the flag set
-
isStatic
public boolean isStatic()
Returns whether this member is static.- Specified by:
isStatic
in interfaceIMemberInfo
- Returns:
true
if this member is true.
-
getToolTip
public java.lang.String getToolTip()
Description copied from interface:ILocalizableInfo
Returns the tool tip if the resource key of tool tip is available. Otherwise, return empty string.- Specified by:
getToolTip
in interfaceILocalizableInfo
- Returns:
- the tool tip
-
setToolTip
protected void setToolTip(java.lang.String toolTip)
Sets the display string for the tool tip of this method.- Parameters:
toolTip
- the user-visible, localized display name for the tool tip of this method.
-
getToolTipKey
public java.lang.String getToolTipKey()
Description copied from interface:ILocalizableInfo
Returns the resource key for tool tip.- Specified by:
getToolTipKey
in interfaceILocalizableInfo
- Returns:
- the resource key for tool tip
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:ILocalizableInfo
Returns the display name if the resource key of display name is available. Otherwise, return empty string.- Specified by:
getDisplayName
in interfaceILocalizableInfo
- Returns:
- the display name
-
setDisplayName
protected void setDisplayName(java.lang.String displayName)
Sets the display name.- Parameters:
displayName
- the display value
-
getDisplayNameKey
public java.lang.String getDisplayNameKey()
Description copied from interface:ILocalizableInfo
Returns the resource key for display name.- Specified by:
getDisplayNameKey
in interfaceILocalizableInfo
- Returns:
- the resource key for display name
-
getName
public java.lang.String getName()
Description copied from interface:ILocalizableInfo
Returns the definition name.- Specified by:
getName
in interfaceILocalizableInfo
- Returns:
- the name of this definition
-
setDisplayNameKey
protected void setDisplayNameKey(java.lang.String displayNameKey)
Sets the resource key for display name.- Parameters:
displayNameKey
- the resource key to set
-
setName
protected void setName(java.lang.String name)
Sets the definition name.- Parameters:
name
- the name to set
-
setToolTipKey
protected void setToolTipKey(java.lang.String toolTipKey)
Sets the resource key for tool tip.- Parameters:
toolTipKey
- the resource key to set
-
getClassType
public IClassInfo getClassType()
Description copied from interface:IMemberInfo
Returns the member type in Class.- Specified by:
getClassType
in interfaceIMemberInfo
- Returns:
- the member type
-
-