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()XSDNamedComponentgetDeclaration()XSDElementDeclarationgetElementDeclaration()XSDTypeDefinitiongetTypeDefinition()voidsetAttributes(AttributeInstance[] atts)Sets the attributes of the element.StringtoString()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:
getTypeDefinitionin interfaceInstanceComponent- Returns:
- The object containing the type definiton of the instance.
-
getDeclaration
public XSDNamedComponent getDeclaration()
- Specified by:
getDeclarationin interfaceInstanceComponent- Overrides:
getDeclarationin classInstanceComponentImpl- Returns:
- The feature describing the component instance.
-
getElementDeclaration
public XSDElementDeclaration getElementDeclaration()
- Specified by:
getElementDeclarationin interfaceElementInstance- Returns:
- The declaration of the element in the schema.
-
getAttributes
public AttributeInstance[] getAttributes()
- Specified by:
getAttributesin interfaceElementInstance- Returns:
- The attributes of the element.
-
setAttributes
public void setAttributes(AttributeInstance[] atts)
Description copied from interface:ElementInstanceSets the attributes of the element.- Specified by:
setAttributesin interfaceElementInstance- Parameters:
atts- The new attributes.
-
toString
public String toString()
Description copied from class:InstanceComponentImplBy default indicate the elements name- Overrides:
toStringin classInstanceComponentImpl
-
-