org.exolab.castor.builder
public class FieldInfo extends XMLInfo
Version: $Revision: 1.2 $ $Date: 2003/03/08 07:35:42 $
Constructor Summary | |
---|---|
FieldInfo(XSType type, String name)
Creates a new FieldInfo with the given XML Schema type
and the given member name |
Method Summary | |
---|---|
void | createAccessMethods(JClass jClass)
Creates the access methods for this FieldInfo |
void | createGetterComment(JDocComment jDocComment)
Creates the Javadoc comments for the getter method
associated with this FieldInfo.
|
void | createJavaField(JClass jClass)
Creates the JMembers for this FieldInfo, sometimes a "field"
requires more than one java field |
void | createSetterComment(JDocComment jDocComment)
Creates the Javadoc comments for the setter method
associated with this FieldInfo.
|
void | generateInitializerCode(JSourceCode jsc)
Creates code for initialization of this Member |
String | getComment()
Returns the comment associated with this Member |
ClassInfo | getDeclaringClassInfo()
Returns the ClassInfo to which this Member was declared,
for inheritance reasons
|
String | getDefaultValue()
Returns the default value for this FieldInfo |
String | getDeleteMethodName()
Returns the name of the delete method for this FieldInfo. |
String | getFixedValue()
Returns the fixed production for this FieldInfo, or null
if no fixed value has been specified. |
String | getHasMethodName()
Returns the name of the has method for this FieldInfo |
String | getName()
Returns the name of this FieldInfo |
String | getReadMethodName()
Returns the name of the read method for this FieldInfo |
String | getValidator()
Returns the fully qualified name of the Validator to use.
|
String | getWriteMethodName()
Returns the name of the write method for this FieldInfo |
String | getXMLFieldHandler()
Returns the fully qualified name of the XMLFieldHandler to use.
|
boolean | isBound()
Returns true if this FieldInfo represents a bound property
|
boolean | isContainer()
Returns true if this FieldInfo describes a container
class. |
boolean | isTransient()
Returns true if this FieldInfo is a transient member. |
protected String | methodSuffix()
Returns the method suffix for creating method names.
|
void | setBound(boolean bound)
Sets whether or not this FieldInfo represents a bound property
|
void | setComment(String comment)
Sets the comment for this Member |
void | setContainer(boolean isContainer)
Sets whether or not this FieldInfo describes a container
field. |
void | setDeclaringClassInfo(ClassInfo declaringClassInfo) |
void | setDefaultValue(String defaultValue)
Sets the default value for this FieldInfo |
void | setFinal(boolean isFinal)
Sets the "final" status of this FieldInfo. |
void | setFixedValue(String fixedValue)
Sets the fixed value in which instances of this field type must
lexically match |
void | setStatic(boolean isStatic)
Sets the "static" status of this FieldInfo. |
void | setTransient(boolean isTransient)
Sets the transient status of this FieldInfo. |
void | setValidator(String validator)
Sets the name of the Validator to use.
|
void | setXMLFieldHandler(String handler)
Sets the name of the XMLfieldHandler to use.
|
Parameters: XSType the XML Schema type of this member name the name of the member
Parameters: jClass the JClass to add the methods to
Parameters: jDocComment the JDocComment to add the Javadoc comments to.
Returns: a JMember which has the appropriate type and name for this FieldInfo
Parameters: jDocComment the JDocComment to add the Javadoc comments to.
Parameters: jsc the JSourceCode in which to add the source to
Returns: the comment associated with this Member, or null if one has not been set.
Returns: the default value for this FieldInfo, or null if no default value was set;
Returns: the name of the delete method for this FieldInfo
Returns: the fixed value for this FieldInfo
NOTE: Fixed values are NOT the same as default values
Returns: the name of the has method for this FieldInfo
Returns: the name of this FieldInfo
Returns: the name of the read method for this FieldInfo
Returns: the fully qualified name of the Validator to use.
Returns: the name of the write method for this FieldInfo
Returns: the fully qualified name of the XMLFieldHandler to use.
Returns: true if this FieldInfo represents a bound property
Returns: true if this ClassInfo describes a container class.
Returns: true if this FieldInfo is transient
Parameters: bound the flag when true indicates that this FieldInfo represents a bound property
Parameters: comment the comment or description for this Member
Parameters: isContainer the boolean value when true indicates this class should be a container class.
Parameters: defaultValue the default value
Parameters: isFinal the boolean indicating the final status, if true this FieldInfo will be treated as final.
Parameters: fixedValue the fixed production for this FieldInfo
NOTE: This is not the same as default value!
Parameters: isStatic the boolean indicating the static status, if true this FieldInfo will be treated as static
Parameters: isTransient the boolean indicating the transient status, if true this FieldInfo will be treated as transient
Parameters: validator the fully qualified name of the validator to use.
Parameters: handler the fully qualified name of the handler to use.