|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sourceforge.ifx.tools.MemberVariable
Models a bean property for a IFX bean. The class defines several convenience methods that operate on the member variable name to produce appropriate names for getter and setter functions for the bean member variable.
| Constructor Summary | |
MemberVariable(java.lang.String name,
java.lang.String className,
boolean isArray)
Constructor to build a MemberVariable object. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
The equality check would be used in the call to List.contains() from the addMemberVariable() method in JavaSource. |
java.lang.String |
getClassName()
Returns the fully qualified class name of this member variable. |
java.lang.String |
getElementName()
Returns the name of the IFX XML element. |
java.lang.String |
getGetterName()
Returns the name of the getXXX() method to retrieve this variable from the bean. |
java.lang.String |
getName()
Returns the name of this member variable. |
java.lang.String |
getSetterName()
Returns the name of the setXXX() method to set this variable within the bean. |
int |
hashCode()
This is used to throttle duplicate member variables. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MemberVariable(java.lang.String name,
java.lang.String className,
boolean isArray)
name - the name of the member variable. IFX beans will prefixclassName - the fully qualified class name for the variable.
an underscore character for private variables automatically.| Method Detail |
public java.lang.String getClassName()
public java.lang.String getName()
public java.lang.String getGetterName()
public java.lang.String getSetterName()
public java.lang.String getElementName()
public int hashCode()
public boolean equals(java.lang.Object obj)
obj - the Object to compare against.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||