Package org.geotools.xsd.impl
Class ElementImpl
- Object
-
- InstanceComponentImpl
-
- ElementImpl
-
- All Implemented Interfaces:
ElementInstance
,InstanceComponent
public class ElementImpl extends InstanceComponentImpl implements ElementInstance
-
-
Constructor Summary
Constructors Constructor Description ElementImpl(XSDElementDeclaration declaration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeInstance[]
getAttributes()
XSDNamedComponent
getDeclaration()
XSDElementDeclaration
getElementDeclaration()
XSDTypeDefinition
getTypeDefinition()
void
setAttributes(AttributeInstance[] atts)
Sets the attributes of the element.String
toString()
By default indicate the elements name-
Methods 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
-
-
-
-
Method Detail
-
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
public AttributeInstance[] getAttributes()
- Specified by:
getAttributes
in interfaceElementInstance
- Returns:
- The attributes of the element.
-
setAttributes
public void setAttributes(AttributeInstance[] atts)
Description copied from interface:ElementInstance
Sets the attributes of the element.- Specified by:
setAttributes
in interfaceElementInstance
- Parameters:
atts
- The new attributes.
-
toString
public String toString()
Description copied from class:InstanceComponentImpl
By default indicate the elements name- Overrides:
toString
in classInstanceComponentImpl
-
-