public class XmlSchemaElement extends XmlSchemaParticle implements TypeReceiver, XmlSchemaNamedWithForm, XmlSchemaChoiceMember, XmlSchemaSequenceMember, XmlSchemaAllMember, XmlSchemaItemWithRef<XmlSchemaElement>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
abstractElement |
private XmlSchemaDerivationMethod |
block
Attribute used to block a type derivation.
|
private java.util.List<XmlSchemaIdentityConstraint> |
constraints |
private java.lang.String |
defaultValue
Provides the default value of the element if its content is a simple type or the element's content is
textOnly.
|
private XmlSchemaDerivationMethod |
finalDerivation |
private java.lang.String |
fixedValue |
private XmlSchemaNamedWithFormImpl |
namedDelegate |
private boolean |
nillable |
private XmlSchemaRef<XmlSchemaElement> |
ref |
private XmlSchemaType |
schemaType
Returns the type of the element.
|
private javax.xml.namespace.QName |
schemaTypeName
QName of a built-in data type defined in this schema or another schema indicated by the specified
namespace.
|
private javax.xml.namespace.QName |
substitutionGroup
QName of an element that can be a substitute for this element.
|
DEFAULT_MAX_OCCURS, DEFAULT_MIN_OCCURSlineNumber, linePosition, sourceURI| Constructor and Description |
|---|
XmlSchemaElement(XmlSchema parentSchema,
boolean topLevel)
Creates new XmlSchemaElement
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object what) |
XmlSchemaDerivationMethod |
getBlock() |
java.util.List<XmlSchemaIdentityConstraint> |
getConstraints()
Returns a collection of constraints on the element.
|
java.lang.String |
getDefaultValue() |
XmlSchemaDerivationMethod |
getFinal() |
XmlSchemaDerivationMethod |
getFinalDerivation() |
java.lang.String |
getFixedValue() |
XmlSchemaForm |
getForm()
Get the current form, which may be inherited from the parent schema.
|
java.lang.String |
getName()
Retrieve the name.
|
XmlSchema |
getParent()
Retrieve the parent schema.
|
javax.xml.namespace.QName |
getQName()
Get the QName for this object.
|
XmlSchemaRef<XmlSchemaElement> |
getRef() |
XmlSchemaRefBase |
getRefBase() |
XmlSchemaType |
getSchemaType() |
javax.xml.namespace.QName |
getSchemaTypeName() |
javax.xml.namespace.QName |
getSubstitutionGroup() |
javax.xml.namespace.QName |
getTargetQName() |
javax.xml.namespace.QName |
getWireName()
The name of this item as it is sent 'over the wire' or stored
in an XML file.
|
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isAbstractElement() |
boolean |
isAnonymous() |
boolean |
isFormSpecified()
True if this item has a specified form, false if it inherits from
the parent schema.
|
boolean |
isNillable() |
boolean |
isRef() |
boolean |
isTopLevel() |
void |
setAbstract(boolean isAbstract) |
void |
setAbstractElement(boolean abstractElement)
Set the 'abstract' attribute of this element.
|
void |
setBlock(XmlSchemaDerivationMethod block) |
void |
setDefaultValue(java.lang.String defaultValue) |
void |
setFinal(XmlSchemaDerivationMethod finalDerivationValue) |
void |
setFinalDerivation(XmlSchemaDerivationMethod finalDerivation) |
void |
setFixedValue(java.lang.String fixedValue) |
void |
setForm(XmlSchemaForm form)
Set the schema form.
|
void |
setName(java.lang.String name)
Set the name.
|
void |
setNillable(boolean isNillable) |
void |
setSchemaType(XmlSchemaType schemaType) |
void |
setSchemaTypeName(javax.xml.namespace.QName schemaTypeName) |
void |
setSubstitutionGroup(javax.xml.namespace.QName substitutionGroup) |
void |
setType(XmlSchemaType type) |
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccursgetAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toStringaddMetaInfo, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURIprivate XmlSchemaDerivationMethod block
private java.util.List<XmlSchemaIdentityConstraint> constraints
private java.lang.String defaultValue
private java.lang.String fixedValue
private XmlSchemaDerivationMethod finalDerivation
private boolean abstractElement
private boolean nillable
private XmlSchemaRef<XmlSchemaElement> ref
private XmlSchemaType schemaType
private javax.xml.namespace.QName schemaTypeName
private javax.xml.namespace.QName substitutionGroup
private XmlSchemaNamedWithFormImpl namedDelegate
public XmlSchemaElement(XmlSchema parentSchema, boolean topLevel)
public boolean equals(java.lang.Object what)
equals in class XmlSchemaObjectpublic int hashCode()
hashCode in class XmlSchemaObjectpublic java.util.List<XmlSchemaIdentityConstraint> getConstraints()
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
public XmlSchemaDerivationMethod getBlock()
public void setBlock(XmlSchemaDerivationMethod block)
public XmlSchemaDerivationMethod getFinal()
public void setFinal(XmlSchemaDerivationMethod finalDerivationValue)
public java.lang.String getFixedValue()
public void setFixedValue(java.lang.String fixedValue)
public boolean isAbstract()
public void setAbstract(boolean isAbstract)
public boolean isNillable()
public void setNillable(boolean isNillable)
public XmlSchemaRef<XmlSchemaElement> getRef()
getRef in interface XmlSchemaItemWithRef<XmlSchemaElement>public XmlSchemaType getSchemaType()
public void setSchemaType(XmlSchemaType schemaType)
public javax.xml.namespace.QName getSchemaTypeName()
public void setSchemaTypeName(javax.xml.namespace.QName schemaTypeName)
public javax.xml.namespace.QName getSubstitutionGroup()
public void setSubstitutionGroup(javax.xml.namespace.QName substitutionGroup)
public void setType(XmlSchemaType type)
setType in interface TypeReceiverpublic java.lang.String getName()
XmlSchemaNamedgetName in interface XmlSchemaNamedpublic XmlSchema getParent()
XmlSchemaNamedgetParent in interface XmlSchemaNamedpublic javax.xml.namespace.QName getQName()
getQName in interface XmlSchemaNamedXmlSchemaNamedWithForm.getWireName()public boolean isAnonymous()
isAnonymous in interface XmlSchemaNamedpublic boolean isTopLevel()
isTopLevel in interface XmlSchemaNamedpublic void setName(java.lang.String name)
XmlSchemaNamedsetName in interface XmlSchemaNamedname - the name.public XmlSchemaForm getForm()
XmlSchemaNamedWithFormgetForm in interface XmlSchemaNamedWithFormpublic boolean isFormSpecified()
XmlSchemaNamedWithFormisFormSpecified in interface XmlSchemaNamedWithFormpublic void setForm(XmlSchemaForm form)
XmlSchemaNamedWithFormsetForm in interface XmlSchemaNamedWithFormform - Schema form. Pass in XmlSchemaForm.NONE to inherit
from the parent schema.public javax.xml.namespace.QName getWireName()
XmlSchemaNamedWithFormgetWireName in interface XmlSchemaNamedWithFormpublic void setFinalDerivation(XmlSchemaDerivationMethod finalDerivation)
finalDerivation - The finalDerivation to set.public XmlSchemaDerivationMethod getFinalDerivation()
public void setAbstractElement(boolean abstractElement)
abstractElement - public boolean isAbstractElement()
public boolean isRef()
isRef in interface XmlSchemaItemWithRefBasepublic javax.xml.namespace.QName getTargetQName()
getTargetQName in interface XmlSchemaItemWithRefBasepublic XmlSchemaRefBase getRefBase()
getRefBase in interface XmlSchemaItemWithRefBase