Package org.w3._2001.schema
Interface Element
- All Known Subinterfaces:
LocalElement
,NarrowMaxMin
,TopLevelElement
- All Known Implementing Classes:
ElementImpl
,LocalElementImpl
,NarrowMaxMinImpl
,TopLevelElementImpl
A representation of the model object '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.
The following features are supported:
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetBlock()
Returns the value of the 'Block' attribute.Returns the value of the 'Complex Type' containment reference.Returns the value of the 'Default' attribute.getFinal()
Returns the value of the 'Final' attribute.getFixed()
Returns the value of the 'Fixed' attribute.getForm()
Returns the value of the 'Form' attribute.FeatureMap
Returns the value of the 'Identity Constraint' attribute list.EList<Keybase>
getKey()
Returns the value of the 'Key' containment reference list.EList<KeyrefType>
Returns the value of the 'Keyref' containment reference list.Returns the value of the 'Max Occurs' attribute.Returns the value of the 'Min Occurs' attribute.getName()
Returns the value of the 'Name' attribute.getRef()
Returns the value of the 'Ref' attribute.Returns the value of the 'Simple Type' containment reference.Returns the value of the 'Substitution Group' attribute.getType()
Returns the value of the 'Type' attribute.EList<Keybase>
Returns the value of the 'Unique' containment reference list.boolean
Returns the value of the 'Abstract' attribute.boolean
Returns the value of the 'Nillable' attribute.boolean
Returns whether the value of the 'Abstract
' attribute is set.boolean
Returns whether the value of the 'Form
' attribute is set.boolean
Returns whether the value of the 'Max Occurs
' attribute is set.boolean
Returns whether the value of the 'Min Occurs
' attribute is set.boolean
Returns whether the value of the 'Nillable
' attribute is set.void
setAbstract
(boolean value) Sets the value of the 'Abstract
' attribute.void
Sets the value of the 'Block
' attribute.void
setComplexType
(LocalComplexType value) Sets the value of the 'Complex Type
' containment reference.void
setDefault
(String value) Sets the value of the 'Default
' attribute.void
Sets the value of the 'Final
' attribute.void
Sets the value of the 'Fixed
' attribute.void
setForm
(FormChoice value) Sets the value of the 'Form
' attribute.void
setMaxOccurs
(Object value) Sets the value of the 'Max Occurs
' attribute.void
setMinOccurs
(BigInteger value) Sets the value of the 'Min Occurs
' attribute.void
Sets the value of the 'Name
' attribute.void
setNillable
(boolean value) Sets the value of the 'Nillable
' attribute.void
Sets the value of the 'Ref
' attribute.void
setSimpleType
(LocalSimpleType value) Sets the value of the 'Simple Type
' containment reference.void
setSubstitutionGroup
(QName value) Sets the value of the 'Substitution Group
' attribute.void
Sets the value of the 'Type
' attribute.void
Unsets the value of the 'Abstract
' attribute.void
Unsets the value of the 'Form
' attribute.void
Unsets the value of the 'Max Occurs
' attribute.void
Unsets the value of the 'Min Occurs
' attribute.void
Unsets the value of the 'Nillable
' attribute.Methods inherited from interface Annotated
getAnnotation, getId, setAnnotation, setId
Methods inherited from interface EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
Methods inherited from interface OpenAttrs
getAnyAttribute
-
Method Details
-
getSimpleType
LocalSimpleType getSimpleType()Returns the value of the 'Simple Type' containment reference.- Returns:
- the value of the 'Simple Type' containment reference.
- See Also:
-
setSimpleType
Sets the value of the 'Simple Type
' containment reference.- Parameters:
value
- the new value of the 'Simple Type' containment reference.- See Also:
-
getComplexType
LocalComplexType getComplexType()Returns the value of the 'Complex Type' containment reference.- Returns:
- the value of the 'Complex Type' containment reference.
- See Also:
-
setComplexType
Sets the value of the 'Complex Type
' containment reference.- Parameters:
value
- the new value of the 'Complex Type' containment reference.- See Also:
-
getIdentityConstraint
FeatureMap getIdentityConstraint()Returns the value of the 'Identity Constraint' attribute list. The list contents are of typeFeatureMap.Entry
.- Returns:
- the value of the 'Identity Constraint' attribute list.
- See Also:
-
getUnique
EList<Keybase> getUnique()Returns the value of the 'Unique' containment reference list. The list contents are of typeKeybase
.- Returns:
- the value of the 'Unique' containment reference list.
- See Also:
-
getKey
EList<Keybase> getKey()Returns the value of the 'Key' containment reference list. The list contents are of typeKeybase
.- Returns:
- the value of the 'Key' containment reference list.
- See Also:
-
getKeyref
EList<KeyrefType> getKeyref()Returns the value of the 'Keyref' containment reference list. The list contents are of typeKeyrefType
.- Returns:
- the value of the 'Keyref' containment reference list.
- See Also:
-
isAbstract
boolean isAbstract()Returns the value of the 'Abstract' attribute. The default value is"false"
.- Returns:
- the value of the 'Abstract' attribute.
- See Also:
-
setAbstract
void setAbstract(boolean value) Sets the value of the 'Abstract
' attribute.- Parameters:
value
- the new value of the 'Abstract' attribute.- See Also:
-
unsetAbstract
void unsetAbstract()Unsets the value of the 'Abstract
' attribute.- See Also:
-
isSetAbstract
boolean isSetAbstract()Returns whether the value of the 'Abstract
' attribute is set.- Returns:
- whether the value of the 'Abstract' attribute is set.
- See Also:
-
getBlock
Object getBlock()Returns the value of the 'Block' attribute.- Returns:
- the value of the 'Block' attribute.
- See Also:
-
setBlock
Sets the value of the 'Block
' attribute.- Parameters:
value
- the new value of the 'Block' attribute.- See Also:
-
getDefault
String getDefault()Returns the value of the 'Default' attribute.- Returns:
- the value of the 'Default' attribute.
- See Also:
-
setDefault
Sets the value of the 'Default
' attribute.- Parameters:
value
- the new value of the 'Default' attribute.- See Also:
-
getFinal
Object getFinal()Returns the value of the 'Final' attribute.- Returns:
- the value of the 'Final' attribute.
- See Also:
-
setFinal
Sets the value of the 'Final
' attribute.- Parameters:
value
- the new value of the 'Final' attribute.- See Also:
-
getFixed
String getFixed()Returns the value of the 'Fixed' attribute.- Returns:
- the value of the 'Fixed' attribute.
- See Also:
-
setFixed
Sets the value of the 'Fixed
' attribute.- Parameters:
value
- the new value of the 'Fixed' attribute.- See Also:
-
getForm
FormChoice getForm()Returns the value of the 'Form' attribute. The literals are from the enumerationFormChoice
.- Returns:
- the value of the 'Form' attribute.
- See Also:
-
setForm
Sets the value of the 'Form
' attribute.- Parameters:
value
- the new value of the 'Form' attribute.- See Also:
-
unsetForm
void unsetForm()Unsets the value of the 'Form
' attribute.- See Also:
-
isSetForm
boolean isSetForm()Returns whether the value of the 'Form
' attribute is set.- Returns:
- whether the value of the 'Form' attribute is set.
- See Also:
-
getMaxOccurs
Object getMaxOccurs()Returns the value of the 'Max Occurs' attribute. The default value is"1"
.- Returns:
- the value of the 'Max Occurs' attribute.
- See Also:
-
setMaxOccurs
Sets the value of the 'Max Occurs
' attribute.- Parameters:
value
- the new value of the 'Max Occurs' attribute.- See Also:
-
unsetMaxOccurs
void unsetMaxOccurs()Unsets the value of the 'Max Occurs
' attribute. -
isSetMaxOccurs
boolean isSetMaxOccurs()Returns whether the value of the 'Max Occurs
' attribute is set.- Returns:
- whether the value of the 'Max Occurs' attribute is set.
- See Also:
-
getMinOccurs
BigInteger getMinOccurs()Returns the value of the 'Min Occurs' attribute. The default value is"1"
.- Returns:
- the value of the 'Min Occurs' attribute.
- See Also:
-
setMinOccurs
Sets the value of the 'Min Occurs
' attribute.- Parameters:
value
- the new value of the 'Min Occurs' attribute.- See Also:
-
unsetMinOccurs
void unsetMinOccurs()Unsets the value of the 'Min Occurs
' attribute. -
isSetMinOccurs
boolean isSetMinOccurs()Returns whether the value of the 'Min Occurs
' attribute is set.- Returns:
- whether the value of the 'Min Occurs' attribute is set.
- See Also:
-
getName
String getName()Returns the value of the 'Name' attribute.- Returns:
- the value of the 'Name' attribute.
- See Also:
-
setName
Sets the value of the 'Name
' attribute.- Parameters:
value
- the new value of the 'Name' attribute.- See Also:
-
isNillable
boolean isNillable()Returns the value of the 'Nillable' attribute. The default value is"false"
.- Returns:
- the value of the 'Nillable' attribute.
- See Also:
-
setNillable
void setNillable(boolean value) Sets the value of the 'Nillable
' attribute.- Parameters:
value
- the new value of the 'Nillable' attribute.- See Also:
-
unsetNillable
void unsetNillable()Unsets the value of the 'Nillable
' attribute.- See Also:
-
isSetNillable
boolean isSetNillable()Returns whether the value of the 'Nillable
' attribute is set.- Returns:
- whether the value of the 'Nillable' attribute is set.
- See Also:
-
getRef
QName getRef()Returns the value of the 'Ref' attribute.- Returns:
- the value of the 'Ref' attribute.
- See Also:
-
setRef
Sets the value of the 'Ref
' attribute.- Parameters:
value
- the new value of the 'Ref' attribute.- See Also:
-
getSubstitutionGroup
QName getSubstitutionGroup()Returns the value of the 'Substitution Group' attribute.- Returns:
- the value of the 'Substitution Group' attribute.
- See Also:
-
setSubstitutionGroup
Sets the value of the 'Substitution Group
' attribute.- Parameters:
value
- the new value of the 'Substitution Group' attribute.- See Also:
-
getType
QName getType()Returns the value of the 'Type' attribute.- Returns:
- the value of the 'Type' attribute.
- See Also:
-
setType
Sets the value of the 'Type
' attribute.- Parameters:
value
- the new value of the 'Type' attribute.- See Also:
-