org.geotools.xml.impl
Class ElementImpl

java.lang.Object
  extended by org.geotools.xml.impl.InstanceComponentImpl
      extended by 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)
           
 
Method Summary
 AttributeInstance[] getAttributes()
           
 org.eclipse.xsd.XSDNamedComponent getDeclaration()
           
 org.eclipse.xsd.XSDElementDeclaration getElementDeclaration()
           
 org.eclipse.xsd.XSDTypeDefinition getTypeDefinition()
           
 void setAttributes(AttributeInstance[] atts)
          Sets the attributes of the element.
 java.lang.String toString()
          By default indicate the elements name
 
Methods inherited from class org.geotools.xml.impl.InstanceComponentImpl
addText, addText, getName, getNamespace, getText, setName, setNamespace, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.xml.InstanceComponent
getName, getNamespace, getText, setName, setNamespace, setText
 

Constructor Detail

ElementImpl

public ElementImpl(org.eclipse.xsd.XSDElementDeclaration declaration)
Method Detail

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.