|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.metadata.ClassInfo
public class ClassInfo
Represents the script object definition. This definition defines one constructor, several members and methods. It also includes the name, display name ID, and tool tip ID.
Constructor Summary | |
---|---|
ClassInfo()
|
Method Summary | |
---|---|
protected void |
addMember(IMemberInfo memberDefn)
Adds one member definition to this class definition. |
protected void |
addMethod(IMethodInfo methodInfo)
Adds one method definition to this class definition. |
IMethodInfo |
getConstructor()
Returns the constructor definition. |
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. |
IMemberInfo |
getMember(java.lang.String name)
Returns the member definition given method name. |
java.util.List |
getMembers()
Returns the list of member definitions. |
IMethodInfo |
getMethod(java.lang.String name)
Get the method definition given the method name. |
java.util.List |
getMethods()
Returns the method definition list. |
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 |
isNative()
Returns whether a class object is native. |
protected void |
setConstructor(IMethodInfo constructor)
Adds constructor since some class has more than one constructor with different arguments. |
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 |
setNative(boolean isNative)
Sets the native attribute of this class. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassInfo()
Method Detail |
---|
protected void addMethod(IMethodInfo methodInfo)
methodInfo
- the definition of the method to add
org.eclipse.birt.report.model.metadata.MetaDataException
- if the duplicate method name exists.protected void addMember(IMemberInfo memberDefn)
memberDefn
- the definition of the member to add
org.eclipse.birt.report.model.metadata.MetaDataException
- if the duplicate member name exists.public java.util.List getMethods()
getMethods
in interface IClassInfo
public IMethodInfo getMethod(java.lang.String name)
getMethod
in interface IClassInfo
name
- the name of the method to get
public java.util.List getMembers()
getMembers
in interface IClassInfo
public IMemberInfo getMember(java.lang.String name)
getMember
in interface IClassInfo
name
- name of the member to get
public IMethodInfo getConstructor()
getConstructor
in interface IClassInfo
protected void setConstructor(IMethodInfo constructor)
constructor
- the constructor definition to add
org.eclipse.birt.report.model.metadata.MetaDataException
- if the constructor's name is empty.public boolean isNative()
isNative
in interface IClassInfo
true
if an object of this class is native,
otherwise false
protected void setNative(boolean isNative)
isNative
- Boolean.TRUE
if an object of this class is
native, otherwise Boolean.FALSE
public java.lang.String getDisplayNameKey()
ILocalizableInfo
getDisplayNameKey
in interface ILocalizableInfo
public java.lang.String getName()
ILocalizableInfo
getName
in interface ILocalizableInfo
public java.lang.String getToolTipKey()
ILocalizableInfo
getToolTipKey
in interface ILocalizableInfo
protected void setDisplayNameKey(java.lang.String displayNameKey)
displayNameKey
- the resource key to setprotected void setName(java.lang.String name)
name
- the name to setprotected void setToolTipKey(java.lang.String toolTipKey)
toolTipKey
- the resource key to setpublic java.lang.String getDisplayName()
ILocalizableInfo
getDisplayName
in interface ILocalizableInfo
public java.lang.String getToolTip()
ILocalizableInfo
getToolTip
in interface ILocalizableInfo
protected void setToolTip(java.lang.String toolTip)
toolTip
- the user-visible, localized display name for the tool tip of
this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |