|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.commons.schema.XmlSchemaObject org.apache.ws.commons.schema.XmlSchemaAnnotated org.apache.ws.commons.schema.XmlSchemaParticle org.apache.ws.commons.schema.XmlSchemaElement
public class XmlSchemaElement
Class for elements, representing xs:element. This class represents both global elements and elements nested inside of types.
Field Summary |
---|
Fields inherited from class org.apache.ws.commons.schema.XmlSchemaParticle |
---|
DEFAULT_MAX_OCCURS, DEFAULT_MIN_OCCURS |
Constructor Summary | |
---|---|
XmlSchemaElement(XmlSchema parentSchema,
boolean topLevel)
Creates new XmlSchemaElement |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaParticle |
---|
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs |
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated |
---|
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toString |
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaObject |
---|
addMetaInfo, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlSchemaElement(XmlSchema parentSchema, boolean topLevel)
Method Detail |
---|
public boolean equals(Object what)
equals
in class XmlSchemaObject
public int hashCode()
hashCode
in class XmlSchemaObject
public 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 TypeReceiver
public 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(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |