public class XmlSchemaElement extends XmlSchemaParticle implements TypeReceiver, XmlSchemaNamedWithForm, XmlSchemaChoiceMember, XmlSchemaSequenceMember, XmlSchemaAllMember, XmlSchemaItemWithRef<XmlSchemaElement>
DEFAULT_MAX_OCCURS, DEFAULT_MIN_OCCURS| Constructor and Description |
|---|
XmlSchemaElement(XmlSchema parentSchema,
boolean topLevel)
Creates new XmlSchemaElement
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object what) |
XmlSchemaDerivationMethod |
getBlock() |
List<XmlSchemaIdentityConstraint> |
getConstraints()
Returns a collection of constraints on the element.
|
String |
getDefaultValue() |
XmlSchemaDerivationMethod |
getFinal() |
XmlSchemaDerivationMethod |
getFinalDerivation() |
String |
getFixedValue() |
XmlSchemaForm |
getForm()
Get the current form, which may be inherited from the parent schema.
|
String |
getName()
Retrieve the name.
|
XmlSchema |
getParent()
Retrieve the parent schema.
|
QName |
getQName()
Get the QName for this object.
|
XmlSchemaRef<XmlSchemaElement> |
getRef() |
XmlSchemaRefBase |
getRefBase() |
XmlSchemaType |
getSchemaType() |
QName |
getSchemaTypeName() |
QName |
getSubstitutionGroup() |
QName |
getTargetQName() |
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(String defaultValue) |
void |
setFinal(XmlSchemaDerivationMethod finalDerivationValue) |
void |
setFinalDerivation(XmlSchemaDerivationMethod finalDerivation) |
void |
setFixedValue(String fixedValue) |
void |
setForm(XmlSchemaForm form)
Set the schema form.
|
void |
setName(String name)
Set the name.
|
void |
setNillable(boolean isNillable) |
void |
setSchemaType(XmlSchemaType schemaType) |
void |
setSchemaTypeName(QName schemaTypeName) |
void |
setSubstitutionGroup(QName substitutionGroup) |
void |
setType(XmlSchemaType type) |
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccursgetAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toStringaddMetaInfo, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURIpublic XmlSchemaElement(XmlSchema parentSchema, boolean topLevel)
public boolean equals(Object what)
equals in class XmlSchemaObjectpublic int hashCode()
hashCode in class XmlSchemaObjectpublic List<XmlSchemaIdentityConstraint> getConstraints()
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public XmlSchemaDerivationMethod getBlock()
public void setBlock(XmlSchemaDerivationMethod block)
public XmlSchemaDerivationMethod getFinal()
public void setFinal(XmlSchemaDerivationMethod finalDerivationValue)
public String getFixedValue()
public void setFixedValue(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 QName getSchemaTypeName()
public void setSchemaTypeName(QName schemaTypeName)
public QName getSubstitutionGroup()
public void setSubstitutionGroup(QName substitutionGroup)
public void setType(XmlSchemaType type)
setType in interface TypeReceiverpublic String getName()
XmlSchemaNamedgetName in interface XmlSchemaNamedpublic XmlSchema getParent()
XmlSchemaNamedgetParent in interface XmlSchemaNamedpublic QName getQName()
getQName in interface XmlSchemaNamedXmlSchemaNamedWithForm.getWireName()public boolean isAnonymous()
isAnonymous in interface XmlSchemaNamedpublic boolean isTopLevel()
isTopLevel in interface XmlSchemaNamedpublic void setName(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 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 QName getTargetQName()
getTargetQName in interface XmlSchemaItemWithRefBasepublic XmlSchemaRefBase getRefBase()
getRefBase in interface XmlSchemaItemWithRefBaseCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.