org.geotools.xml.impl
Class ElementImpl
java.lang.Object
org.geotools.xml.impl.InstanceComponentImpl
org.geotools.xml.impl.ElementImpl
- All Implemented Interfaces:
- ElementInstance, InstanceComponent
public class ElementImpl
- extends InstanceComponentImpl
- implements ElementInstance
Constructor Summary |
ElementImpl(org.eclipse.xsd.XSDElementDeclaration declaration)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ElementImpl
public ElementImpl(org.eclipse.xsd.XSDElementDeclaration declaration)
getTypeDefinition
public org.eclipse.xsd.XSDTypeDefinition getTypeDefinition()
- Specified by:
getTypeDefinition
in interface InstanceComponent
- Returns:
- The object containing the type definiton of the instance.
getDeclaration
public org.eclipse.xsd.XSDNamedComponent getDeclaration()
- Specified by:
getDeclaration
in interface InstanceComponent
- Overrides:
getDeclaration
in class InstanceComponentImpl
- Returns:
- The feature describing the component instance.
getElementDeclaration
public org.eclipse.xsd.XSDElementDeclaration getElementDeclaration()
- Specified by:
getElementDeclaration
in interface ElementInstance
- Returns:
- The declaration of the element in the schema.
getAttributes
public AttributeInstance[] getAttributes()
- Specified by:
getAttributes
in interface ElementInstance
- 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 interface ElementInstance
- Parameters:
atts
- The new attributes.
toString
public java.lang.String toString()
- Description copied from class:
InstanceComponentImpl
- By default indicate the elements name
- Overrides:
toString
in class InstanceComponentImpl
Copyright © 1996-2010 Geotools. All Rights Reserved.