public class ClassInfo extends XMLInfo
ATTRIBUTE_TYPE, CHOICE_NODE_NAME_ERROR_INDICATION, ELEMENT_TYPE, TEXT_TYPE| Constructor and Description |
|---|
ClassInfo(JClass jClass)
Creates a new ClassInfo.
|
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.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(java.lang.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()
Returns true if the JClass represented by this ClassInfo is abstract
|
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)
Sets the class of this ClassInfo to be abstract of
abstractClass is true, false otherwise. |
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.
|
getNamespacePrefix, getNamespaceURI, getNodeName, getNodeType, getNodeTypeName, getSchemaType, isElementDefinition, isMultivalued, isRequired, setElementDefinition, setMultivalued, setNamespacePrefix, setNamespaceURI, setNodeName, setNodeType, setRequired, setSchemaTypepublic ClassInfo(JClass jClass)
jClass - the JClass which this ClassInfo describespublic 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)
fieldInfo - the FieldInfo to checkpublic FieldInfo[] getAttributeFields()
public FieldInfo getAttributeField(java.lang.String nodeName)
nodeName - the NodeName of the field to get.public ClassInfo getBaseClass()
public FieldInfo[] getElementFields()
public FieldInfo getElementField(java.lang.String nodeName)
nodeName - the NodeName of the field to get.public int getFieldCount()
public GroupInfo getGroupInfo()
public JClass getJClass()
public FieldInfo getTextField()
public boolean isAbstract()
public boolean isChoice()
public boolean isContainer()
public boolean isSequence()
public void setAbstract(boolean abstractClass)
abstractClass is true, false otherwise.abstractClass - true if the class represented by this ClassInfo is abstractpublic void setBaseClass(ClassInfo base)
base - the base class of this classInfo.public void setContainer(boolean isContainer)
isContainer - the boolean value when true indicates this class should be a
container class.Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com