Package org.geotools.xsd.impl
Class ElementImpl
Object
InstanceComponentImpl
ElementImpl
- All Implemented Interfaces:
ElementInstance
,InstanceComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionXSDNamedComponent
XSDElementDeclaration
XSDTypeDefinition
void
setAttributes
(AttributeInstance[] atts) Sets the attributes of the element.toString()
By default indicate the elements nameMethods inherited from class InstanceComponentImpl
addText, addText, getName, getNamespace, getText, setName, setNamespace, setText
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface InstanceComponent
getName, getNamespace, getText, setName, setNamespace, setText
-
Constructor Details
-
ElementImpl
public ElementImpl(XSDElementDeclaration declaration)
-
-
Method Details
-
getTypeDefinition
public XSDTypeDefinition getTypeDefinition()- Specified by:
getTypeDefinition
in interfaceInstanceComponent
- Returns:
- The object containing the type definiton of the instance.
-
getDeclaration
public XSDNamedComponent getDeclaration()- Specified by:
getDeclaration
in interfaceInstanceComponent
- Overrides:
getDeclaration
in classInstanceComponentImpl
- Returns:
- The feature describing the component instance.
-
getElementDeclaration
public XSDElementDeclaration getElementDeclaration()- Specified by:
getElementDeclaration
in interfaceElementInstance
- Returns:
- The declaration of the element in the schema.
-
getAttributes
- Specified by:
getAttributes
in interfaceElementInstance
- Returns:
- The attributes of the element.
-
setAttributes
Description copied from interface:ElementInstance
Sets the attributes of the element.- Specified by:
setAttributes
in interfaceElementInstance
- Parameters:
atts
- The new attributes.
-
toString
Description copied from class:InstanceComponentImpl
By default indicate the elements name- Overrides:
toString
in classInstanceComponentImpl
-