|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.SchemaAnnotationOwner de.ispsoft.jaxme.generator.SchemaElement de.ispsoft.jaxme.generator.SchemaComplexElement
Implementation of a complex element.
Nested Class Summary |
Nested classes inherited from class de.ispsoft.jaxme.generator.SchemaElement |
SchemaElement.ClassExtension, SchemaElement.ImplementedInterface, SchemaElement.PieceOfJavaSource |
Field Summary | |
static int |
COMPLEX_TYPE_ALL
A possible value for setComplexType(): The "all" type. |
static int |
COMPLEX_TYPE_CHOICE
A possible value for setComplexType(): A choice. |
static int |
COMPLEX_TYPE_SEQUENCE
A possible value for setComplexType(): A sequence. |
Constructor Summary | |
SchemaComplexElement(SchemaAnnotationOwner pParent)
Creates new SchemaComplexElement |
Method Summary | |
void |
addAttribute(SchemaAttribute pAttribute)
Adds a new attribute to the list of childs. |
void |
addChild(SchemaElement pChild)
Adds a new child to the list of childs. |
void |
clearAttributes()
Clears the current list of childs. |
void |
clearChilds()
Clears the current list of childs. |
java.util.Iterator |
getAttributes()
Returns an iterator to the current list of attributes. |
java.util.Iterator |
getChilds()
Returns an iterator to the current list of childs. |
java.lang.String |
getClassName()
Returns this elements class name. |
int |
getComplexType()
Returns the structure type of this element. |
java.lang.String |
getDefaultClassName()
|
java.lang.Integer |
getErrorCode()
Returns the error code. |
java.lang.String |
getFieldType()
Returns the Java type that this element has as a field in a parent element: If getMultiple() returns true, then
the field type is java.util.List . |
java.lang.String |
getInstanceType()
Returns the Java type that this element would has or would have in the absence of a maxOccurs
attribute. |
java.lang.String[] |
getPrefixList()
Returns a list of default prefixes being used when the element is unmarshalled. |
boolean |
hasProtectedConstructor()
Returns whether the generated XML class has a protected constructor. |
boolean |
isAnyType()
Returns whether the elements type is xs:anyType . |
boolean |
isAttribute()
Returns whether the element is actually an attribute. |
boolean |
isComplex()
Returns whether the element is complex. |
void |
setComplexType(int pType)
Sets the structure type of this element. |
void |
setErrorCode(java.lang.Integer pErrorCode)
Set the error code. |
void |
setPrefixList(java.lang.String[] pPrefixList)
Sets a list of default prefixes being used when the element is unmarshalled. |
void |
setProtectedConstructor(boolean pProtectedConstructor)
Sets whether the generated XML class has a protected constructor. |
Methods inherited from class de.ispsoft.jaxme.generator.SchemaAnnotationOwner |
getAccessors, getDocumentation, getExtendsClassName, getPackageName, setAccessors, setDocumentation, setExtendsClassName, setPackageName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int COMPLEX_TYPE_SEQUENCE
A possible value for setComplexType(): A sequence.
COMPLEX_TYPE_CHOICE
,
Constant Field Valuespublic static final int COMPLEX_TYPE_CHOICE
A possible value for setComplexType(): A choice.
COMPLEX_TYPE_SEQUENCE
,
Constant Field Valuespublic static final int COMPLEX_TYPE_ALL
A possible value for setComplexType(): The "all" type.
COMPLEX_TYPE_SEQUENCE
,
Constant Field ValuesConstructor Detail |
public SchemaComplexElement(SchemaAnnotationOwner pParent)
Method Detail |
public final boolean isComplex()
SchemaElement
Returns whether the element is complex.
isComplex
in class SchemaElement
public final boolean isAttribute()
SchemaElement
Returns whether the element is actually an attribute.
isAttribute
in class SchemaElement
public java.lang.Integer getErrorCode()
Returns the error code.
public void setErrorCode(java.lang.Integer pErrorCode)
Set the error code.
public void addChild(SchemaElement pChild)
Adds a new child to the list of childs.
getChilds()
,
clearChilds()
public java.util.Iterator getChilds()
Returns an iterator to the current list of childs. This iterator is not "live": Changes to the returned iterator won't affect the actual list and vice versa.
clearChilds()
,
addChild(de.ispsoft.jaxme.generator.SchemaElement)
public void clearChilds()
Clears the current list of childs.
getChilds()
,
addChild(de.ispsoft.jaxme.generator.SchemaElement)
public void addAttribute(SchemaAttribute pAttribute) throws SchemaException
Adds a new attribute to the list of childs.
SchemaException
getAttributes()
,
clearAttributes()
public java.util.Iterator getAttributes()
Returns an iterator to the current list of attributes. This iterator is not "live": Changes to the returned iterator won't affect the actual list and vice versa.
clearAttributes()
,
addAttribute(de.ispsoft.jaxme.generator.SchemaAttribute)
public void clearAttributes()
Clears the current list of childs.
getChilds()
,
addChild(de.ispsoft.jaxme.generator.SchemaElement)
public void setComplexType(int pType) throws SchemaException
Sets the structure type of this element.
pType
- Either of COMPLEX_TYPE_SEQUENCE or COMPLEX_TYPE_CHOICE
SchemaException
public int getComplexType() throws SchemaException
Returns the structure type of this element.
SchemaException
- The complex type is not yet set.public java.lang.String getDefaultClassName()
public java.lang.String getClassName()
SchemaElement
Returns this elements class name.
getClassName
in class SchemaElement
public java.lang.String getFieldType()
Returns the Java type that this element has as a field in a parent element:
getMultiple()
returns true, then
the field type is java.util.List
.isComplex()
is true,
the field type is getClassName()
.pChild.getSchemaType().getRuntimeType().getName()
.
getFieldType
in class SchemaElement
public java.lang.String getInstanceType()
SchemaElement
Returns the Java type that this element would has
or would have in the absence of a maxOccurs
attribute.
isComplex()
is true,
the field type is getClassName()
.pChild.getSchemaType().getRuntimeType().getName()
.
getInstanceType
in class SchemaElement
public boolean hasProtectedConstructor()
Returns whether the generated XML class has a protected constructor.
public void setProtectedConstructor(boolean pProtectedConstructor)
Sets whether the generated XML class has a protected constructor.
public boolean isAnyType()
Returns whether the elements type is xs:anyType
.
public java.lang.String[] getPrefixList()
Returns a list of default prefixes being used when the element is unmarshalled. The array contains a set of pairs. The even elements are the prefixes and the odd elements are the namespaces.
public void setPrefixList(java.lang.String[] pPrefixList)
Sets a list of default prefixes being used when the element is unmarshalled. The array contains a set of pairs. The even elements are the prefixes and the odd elements are the namespaces.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |