org.exolab.castor.builder
public class ClassInfo extends XMLInfo
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:07:41 $
Constructor Summary | |
---|---|
ClassInfo(JClass jClass)
Creates a new ClassInfo |
Method Summary | |
---|---|
void | addFieldInfo(FieldInfo fieldInfo)
Adds the given FieldInfo to this ClassInfo |
void | addFieldInfo(FieldInfo[] fields)
Adds the given set of FieldInfos to this ClassInfo |
boolean | allowContent() |
boolean | contains(FieldInfo fieldInfo)
Returns true if the given FieldInfo is contained within this ClassInfo |
FieldInfo | getAttributeField(String nodeName)
Returns a fieldInfo that corresponds to an attribute with the given node name.
|
FieldInfo[] | getAttributeFields()
Returns an array of XML attribute associated fields |
ClassInfo | getBaseClass()
Returns the base class of this classInfo if any.
|
FieldInfo | getElementField(String nodeName)
Returns a fieldInfo that corresponds to an element with the given node name.
|
FieldInfo[] | getElementFields()
Returns an array of XML element associated fields |
int | getFieldCount()
Returns the number of FieldInfo definitions for this ClassInfo.
|
GroupInfo | getGroupInfo()
Returns the GroupInfo for this ClassInfo
|
JClass | getJClass()
Returns the JClass described by this ClassInfo |
FieldInfo | getTextField()
Returns the FieldInfo for the XML text associated field. |
boolean | isAbstract() |
boolean | isChoice()
Returns true if the compositor of this GroupInfo is a choice |
boolean | isContainer()
Returns true if this ClassInfo describes a container
class. |
boolean | isSequence()
Returns true if the compositor of this GroupInfo is a sequence |
void | setAbstract(boolean abstractClass) |
void | setBaseClass(ClassInfo base)
Sets the base class of this classInfo.
|
void | setContainer(boolean isContainer)
Sets whether or not this ClassInfo describes a container
class. |
Parameters: jClass the JClass which this ClassInfo describes
Parameters: fieldInfo the FieldInfo to add
Parameters: fields an Array of FieldInfo objects
Returns: true if Classes created with this ClassInfo allow content
Returns: true if the given FieldInfo is contained within this ClassInfo
Parameters: nodeName the NodeName of the field to get.
Returns: a fieldInfo that corresponds to an attribute with the given node name.
Returns: an array of XML attribute associated fields
Returns: the base class of this classInfo if any.
Parameters: nodeName the NodeName of the field to get.
Returns: a fieldInfo that corresponds to an element with the given node name.
Returns: an array of XML element associated fields
Returns: the number of FieldInfo definitions for this ClassInfo.
Returns: the GroupInfo for this ClassInfo
Returns: the JClass which is described by this ClassInfo
Returns: the FieldInfo for the text content associated field, this may be null.
Returns: true if the compositor of this GroupInfo is a choice
Returns: true if this ClassInfo describes a container class.
Returns: true if the compositor of this GroupInfo is a sequence
Parameters: the base class of this classInfo.
Parameters: isContainer the boolean value when true indicates this class should be a container class.