org.geotools.xml.impl
Class ElementImpl

Object
  extended by InstanceComponentImpl
      extended by ElementImpl
All Implemented Interfaces:
ElementInstance, InstanceComponent

public class ElementImpl
extends InstanceComponentImpl
implements ElementInstance


Constructor Summary
ElementImpl(XSDElementDeclaration declaration)
           
 
Method Summary
 AttributeInstance[] getAttributes()
           
 XSDNamedComponent getDeclaration()
           
 XSDElementDeclaration getElementDeclaration()
           
 XSDTypeDefinition getTypeDefinition()
           
 void setAttributes(AttributeInstance[] atts)
          Sets the attributes of the element.
 
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, toString, wait, wait, wait
 
Methods inherited from interface InstanceComponent
getName, getNamespace, getText, setName, setNamespace, setText
 

Constructor Detail

ElementImpl

public ElementImpl(XSDElementDeclaration declaration)
Method Detail

getTypeDefinition

public XSDTypeDefinition getTypeDefinition()
Specified by:
getTypeDefinition in interface InstanceComponent
Returns:
The object containing the type definiton of the instance.

getDeclaration

public XSDNamedComponent getDeclaration()
Specified by:
getDeclaration in interface InstanceComponent
Overrides:
getDeclaration in class InstanceComponentImpl
Returns:
The feature describing the component instance.

getElementDeclaration

public 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.


Copyright © 1996-2009 Geotools. All Rights Reserved.