|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.w3._2001.xmlschema.OpenAttrs
org.w3._2001.xmlschema.Annotated
org.w3._2001.xmlschema.Element
public abstract class Element
The element element can be used either at the top level to define an element-type binding globally, or within a content model to either reference a globally-defined element or type or declare an element-type binding locally. The ref form is not allowed at the top level.
Java class for element complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="element">
<complexContent>
<extension base="{http://www.w3.org/2001/XMLSchema}annotated">
<sequence>
<choice minOccurs="0">
<element name="simpleType" type="{http://www.w3.org/2001/XMLSchema}localSimpleType"/>
<element name="complexType" type="{http://www.w3.org/2001/XMLSchema}localComplexType"/>
</choice>
<group ref="{http://www.w3.org/2001/XMLSchema}identityConstraint" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attGroup ref="{http://www.w3.org/2001/XMLSchema}occurs"/>
<attGroup ref="{http://www.w3.org/2001/XMLSchema}defRef"/>
<attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" />
<attribute name="substitutionGroup" type="{http://www.w3.org/2001/XMLSchema}QName" />
<attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="fixed" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="nillable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="abstract" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="final" type="{http://www.w3.org/2001/XMLSchema}derivationSet" />
<attribute name="block" type="{http://www.w3.org/2001/XMLSchema}blockSet" />
<attribute name="form" type="{http://www.w3.org/2001/XMLSchema}formChoice" />
</extension>
</complexContent>
</complexType>
| Nested Class Summary | |
|---|---|
static class |
Element.BlockItem
|
static class |
Element.FinalItem
|
static class |
Element.IdentityConstraintItem
|
| Field Summary | |
|---|---|
protected java.lang.Boolean |
_abstract
|
protected java.lang.String |
_default
|
protected java.util.List<java.lang.String> |
_final
|
protected java.util.List<java.lang.String> |
block
|
protected java.util.List<Element.BlockItem> |
blockItems
|
protected LocalComplexType |
complexType
|
protected java.util.List<Element.FinalItem> |
finalItems
|
protected java.lang.String |
fixed
|
protected FormChoice |
form
|
protected java.util.List<java.lang.Object> |
identityConstraint
|
protected java.util.List<Element.IdentityConstraintItem> |
identityConstraintItems
|
protected java.lang.String |
maxOccurs
|
protected java.math.BigInteger |
minOccurs
|
protected java.lang.String |
name
|
protected java.lang.Boolean |
nillable
|
protected javax.xml.namespace.QName |
ref
|
protected LocalSimpleType |
simpleType
|
protected javax.xml.namespace.QName |
substitutionGroup
|
protected javax.xml.namespace.QName |
type
|
| Fields inherited from class org.w3._2001.xmlschema.Annotated |
|---|
annotation, id |
| Fields inherited from class org.w3._2001.xmlschema.OpenAttrs |
|---|
hjid |
| Constructor Summary | |
|---|---|
Element()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
void |
equals(java.lang.Object object,
org.apache.commons.lang.builder.EqualsBuilder equalsBuilder)
|
java.util.List<java.lang.String> |
getBlock()
Gets the value of the block property. |
java.util.List<Element.BlockItem> |
getBlockItems()
|
LocalComplexType |
getComplexType()
Gets the value of the complexType property. |
java.lang.String |
getDefault()
Gets the value of the default property. |
java.util.List<java.lang.String> |
getFinal()
Gets the value of the final property. |
java.util.List<Element.FinalItem> |
getFinalItems()
|
java.lang.String |
getFixed()
Gets the value of the fixed property. |
FormChoice |
getForm()
Gets the value of the form property. |
java.util.List<java.lang.Object> |
getIdentityConstraint()
Gets the value of the identityConstraint property. |
java.util.List<Element.IdentityConstraintItem> |
getIdentityConstraintItems()
|
java.lang.String |
getMaxOccurs()
Gets the value of the maxOccurs property. |
java.math.BigInteger |
getMinOccurs()
Gets the value of the minOccurs property. |
java.lang.String |
getName()
Gets the value of the name property. |
javax.xml.namespace.QName |
getRef()
Gets the value of the ref property. |
java.lang.String |
getRefElement()
|
LocalSimpleType |
getSimpleType()
Gets the value of the simpleType property. |
javax.xml.namespace.QName |
getSubstitutionGroup()
Gets the value of the substitutionGroup property. |
java.lang.String |
getSubstitutionGroupElement()
|
javax.xml.namespace.QName |
getType()
Gets the value of the type property. |
java.lang.String |
getTypeElement()
|
int |
hashCode()
|
void |
hashCode(org.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder)
|
boolean |
isAbstract()
Gets the value of the abstract property. |
boolean |
isNillable()
Gets the value of the nillable property. |
void |
setAbstract(java.lang.Boolean value)
Sets the value of the abstract property. |
void |
setBlock(java.util.List<java.lang.String> block)
|
void |
setBlockItems(java.util.List<Element.BlockItem> value)
|
void |
setComplexType(LocalComplexType value)
Sets the value of the complexType property. |
void |
setDefault(java.lang.String value)
Sets the value of the default property. |
void |
setFinal(java.util.List<java.lang.String> _final)
|
void |
setFinalItems(java.util.List<Element.FinalItem> value)
|
void |
setFixed(java.lang.String value)
Sets the value of the fixed property. |
void |
setForm(FormChoice value)
Sets the value of the form property. |
void |
setIdentityConstraint(java.util.List<java.lang.Object> identityConstraint)
|
void |
setIdentityConstraintItems(java.util.List<Element.IdentityConstraintItem> value)
|
void |
setMaxOccurs(java.lang.String value)
Sets the value of the maxOccurs property. |
void |
setMinOccurs(java.math.BigInteger value)
Sets the value of the minOccurs property. |
void |
setName(java.lang.String value)
Sets the value of the name property. |
void |
setNillable(java.lang.Boolean value)
Sets the value of the nillable property. |
void |
setRef(javax.xml.namespace.QName value)
Sets the value of the ref property. |
void |
setRefElement(java.lang.String target)
|
void |
setSimpleType(LocalSimpleType value)
Sets the value of the simpleType property. |
void |
setSubstitutionGroup(javax.xml.namespace.QName value)
Sets the value of the substitutionGroup property. |
void |
setSubstitutionGroupElement(java.lang.String target)
|
void |
setType(javax.xml.namespace.QName value)
Sets the value of the type property. |
void |
setTypeElement(java.lang.String target)
|
java.lang.String |
toString()
|
void |
toString(org.apache.commons.lang.builder.ToStringBuilder toStringBuilder)
|
| Methods inherited from class org.w3._2001.xmlschema.Annotated |
|---|
getAnnotation, getId, setAnnotation, setId |
| Methods inherited from class org.w3._2001.xmlschema.OpenAttrs |
|---|
getHjid, getOtherAttributes, setHjid |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected LocalSimpleType simpleType
protected LocalComplexType complexType
protected java.util.List<java.lang.Object> identityConstraint
protected javax.xml.namespace.QName type
protected javax.xml.namespace.QName substitutionGroup
protected java.lang.String _default
protected java.lang.String fixed
protected java.lang.Boolean nillable
protected java.lang.Boolean _abstract
protected java.util.List<java.lang.String> _final
protected java.util.List<java.lang.String> block
protected FormChoice form
protected java.math.BigInteger minOccurs
protected java.lang.String maxOccurs
protected java.lang.String name
protected javax.xml.namespace.QName ref
protected java.util.List<Element.IdentityConstraintItem> identityConstraintItems
protected java.util.List<Element.FinalItem> finalItems
protected java.util.List<Element.BlockItem> blockItems
| Constructor Detail |
|---|
public Element()
| Method Detail |
|---|
public LocalSimpleType getSimpleType()
LocalSimpleTypepublic void setSimpleType(LocalSimpleType value)
value - allowed object is
LocalSimpleTypepublic LocalComplexType getComplexType()
LocalComplexTypepublic void setComplexType(LocalComplexType value)
value - allowed object is
LocalComplexTypepublic java.util.List<java.lang.Object> getIdentityConstraint()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the identityConstraint property.
For example, to add a new item, do as follows:
getIdentityConstraint().add(newItem);
Objects of the following type(s) are allowed in the list
Keyref
JAXBElement<Keybase>
JAXBElement<Keybase>
public void setIdentityConstraint(java.util.List<java.lang.Object> identityConstraint)
public javax.xml.namespace.QName getType()
QNamepublic void setType(javax.xml.namespace.QName value)
value - allowed object is
QNamepublic javax.xml.namespace.QName getSubstitutionGroup()
QNamepublic void setSubstitutionGroup(javax.xml.namespace.QName value)
value - allowed object is
QNamepublic java.lang.String getDefault()
Stringpublic void setDefault(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getFixed()
Stringpublic void setFixed(java.lang.String value)
value - allowed object is
Stringpublic boolean isNillable()
Booleanpublic void setNillable(java.lang.Boolean value)
value - allowed object is
Booleanpublic boolean isAbstract()
Booleanpublic void setAbstract(java.lang.Boolean value)
value - allowed object is
Booleanpublic java.util.List<java.lang.String> getFinal()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the final property.
For example, to add a new item, do as follows:
getFinal().add(newItem);
Objects of the following type(s) are allowed in the list
String
public void setFinal(java.util.List<java.lang.String> _final)
public java.util.List<java.lang.String> getBlock()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the block property.
For example, to add a new item, do as follows:
getBlock().add(newItem);
Objects of the following type(s) are allowed in the list
String
public void setBlock(java.util.List<java.lang.String> block)
public FormChoice getForm()
FormChoicepublic void setForm(FormChoice value)
value - allowed object is
FormChoicepublic java.math.BigInteger getMinOccurs()
BigIntegerpublic void setMinOccurs(java.math.BigInteger value)
value - allowed object is
BigIntegerpublic java.lang.String getMaxOccurs()
Stringpublic void setMaxOccurs(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getName()
Stringpublic void setName(java.lang.String value)
value - allowed object is
Stringpublic javax.xml.namespace.QName getRef()
QNamepublic void setRef(javax.xml.namespace.QName value)
value - allowed object is
QNamepublic void toString(org.apache.commons.lang.builder.ToStringBuilder toStringBuilder)
toString in interface org.jvnet.jaxb2_commons.lang.ToStringtoString in class Annotatedpublic java.lang.String toString()
toString in class Annotated
public void equals(java.lang.Object object,
org.apache.commons.lang.builder.EqualsBuilder equalsBuilder)
equals in interface org.jvnet.jaxb2_commons.lang.Equalsequals in class Annotatedpublic boolean equals(java.lang.Object object)
equals in class Annotatedpublic void hashCode(org.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder)
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCodehashCode in class Annotatedpublic int hashCode()
hashCode in class Annotatedpublic java.util.List<Element.IdentityConstraintItem> getIdentityConstraintItems()
public void setIdentityConstraintItems(java.util.List<Element.IdentityConstraintItem> value)
public java.lang.String getTypeElement()
public void setTypeElement(java.lang.String target)
public java.lang.String getSubstitutionGroupElement()
public void setSubstitutionGroupElement(java.lang.String target)
public java.util.List<Element.FinalItem> getFinalItems()
public void setFinalItems(java.util.List<Element.FinalItem> value)
public java.util.List<Element.BlockItem> getBlockItems()
public void setBlockItems(java.util.List<Element.BlockItem> value)
public java.lang.String getRefElement()
public void setRefElement(java.lang.String target)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||