|
|||||||||||
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.SchemaAbstractSimpleElement
Implementation of a simple element. Abstract, because it is used to derive both simple elements and attributes.
Nested Class Summary |
Nested classes inherited from class de.ispsoft.jaxme.generator.SchemaElement |
SchemaElement.ClassExtension, SchemaElement.ImplementedInterface, SchemaElement.PieceOfJavaSource |
Constructor Summary | |
SchemaAbstractSimpleElement(SchemaAnnotationOwner pParent)
Creates new SchemaAbstractSimpleElement |
Method Summary | |
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.Short |
getPrimaryKey()
Returns whether this element is part of a primary key. |
java.lang.String |
getQueryName()
Returns a name for the element being used in queries. |
ElementRestrictionContainer |
getRestrictions()
Returns the elements restrictions, if any, or null. |
boolean |
isComplex()
Returns whether the element is complex. |
void |
setPrimaryKey(java.lang.Short pPrimaryKey)
Sets whether this element is part of a primary key. |
void |
setQueryName(java.lang.String pQueryName)
Sets a name for the element being used in queries. |
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 |
Constructor Detail |
public SchemaAbstractSimpleElement(SchemaAnnotationOwner pParent)
Method Detail |
public final boolean isComplex()
SchemaElement
Returns whether the element is complex.
isComplex
in class SchemaElement
public java.lang.Short getPrimaryKey()
Returns whether this element is part of a primary key. The order of all parts can be determined by sorting all the result, lower comes first.
setPrimaryKey(java.lang.Short)
public void setPrimaryKey(java.lang.Short pPrimaryKey)
Sets whether this element is part of a primary key. The order of all parts can be determined by sorting all the result, lower comes first.
getPrimaryKey()
public java.lang.String getQueryName()
Returns a name for the element being used in queries.
public void setQueryName(java.lang.String pQueryName)
Sets a name for the element being used in queries.
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 ElementRestrictionContainer getRestrictions()
Returns the elements restrictions, if any, or null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |