|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.XMLInfo
org.exolab.castor.builder.ClassInfo
This class holds the necessary information so that the source generator can properly create the necessary Classes for the Object model.
Field Summary |
Fields inherited from class org.exolab.castor.builder.XMLInfo |
ATTRIBUTE_TYPE, ELEMENT_TYPE, TEXT_TYPE |
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[] |
getAttributeFields()
Returns an array of XML attribute associated fields |
FieldInfo[] |
getElementFields()
Returns an array of XML element associated fields |
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 |
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 |
setContainer(boolean isContainer)
Sets whether or not this ClassInfo describes a container class. |
Methods inherited from class org.exolab.castor.builder.XMLInfo |
getNamespacePrefix, getNamespaceURI, getNodeName, getNodeType, getSchemaType, isMultivalued, isRequired, setMultivalued, setNamespacePrefix, setNamespaceURI, setNodeName, setNodeType, setRequired, setSchemaType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassInfo(JClass jClass)
jClass
- the JClass which this ClassInfo describesMethod Detail |
public void addFieldInfo(FieldInfo fieldInfo)
fieldInfo
- the FieldInfo to addpublic void addFieldInfo(FieldInfo[] fields)
fields
- an Array of FieldInfo objectspublic boolean allowContent()
public boolean contains(FieldInfo fieldInfo)
public FieldInfo[] getAttributeFields()
public FieldInfo[] getElementFields()
public GroupInfo getGroupInfo()
public JClass getJClass()
public FieldInfo getTextField()
public boolean isChoice()
public boolean isContainer()
public boolean isSequence()
public void setContainer(boolean isContainer)
isContainer
- the boolean value when true indicates
this class should be a container class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |