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(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.
|
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(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(QName schemaTypeName) |
void |
setSubstitutionGroup(QName substitutionGroup) |
void |
setType(XmlSchemaType type) |
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toString
addMetaInfo, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
public XmlSchemaElement(XmlSchema parentSchema, boolean topLevel)
public boolean equals(java.lang.Object what)
equals
in class XmlSchemaObject
public int hashCode()
hashCode
in class XmlSchemaObject
public 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 QName getSchemaTypeName()
public void setSchemaTypeName(QName schemaTypeName)
public QName getSubstitutionGroup()
public void setSubstitutionGroup(QName substitutionGroup)
public void setType(XmlSchemaType type)
setType
in interface TypeReceiver
public java.lang.String getName()
XmlSchemaNamed
getName
in interface XmlSchemaNamed
public XmlSchema getParent()
XmlSchemaNamed
getParent
in interface XmlSchemaNamed
public QName getQName()
getQName
in interface XmlSchemaNamed
XmlSchemaNamedWithForm.getWireName()
public boolean isAnonymous()
isAnonymous
in interface XmlSchemaNamed
public boolean isTopLevel()
isTopLevel
in interface XmlSchemaNamed
public void setName(java.lang.String name)
XmlSchemaNamed
setName
in interface XmlSchemaNamed
name
- the name.public XmlSchemaForm getForm()
XmlSchemaNamedWithForm
getForm
in interface XmlSchemaNamedWithForm
public boolean isFormSpecified()
XmlSchemaNamedWithForm
isFormSpecified
in interface XmlSchemaNamedWithForm
public void setForm(XmlSchemaForm form)
XmlSchemaNamedWithForm
setForm
in interface XmlSchemaNamedWithForm
form
- Schema form. Pass in XmlSchemaForm.NONE to inherit
from the parent schema.public QName getWireName()
XmlSchemaNamedWithForm
getWireName
in interface XmlSchemaNamedWithForm
public 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 XmlSchemaItemWithRefBase
public QName getTargetQName()
getTargetQName
in interface XmlSchemaItemWithRefBase
public XmlSchemaRefBase getRefBase()
getRefBase
in interface XmlSchemaItemWithRefBase