org.geotools.xml
Interface InstanceComponent

All Known Subinterfaces:
AttributeInstance, ElementInstance
All Known Implementing Classes:
AttributeImpl, ElementImpl, InstanceComponentImpl

public interface InstanceComponent


Method Summary
 XSDNamedComponent getDeclaration()
           
 String getName()
           
 String getNamespace()
           
 String getText()
           
 XSDTypeDefinition getTypeDefinition()
           
 void setName(String name)
          Sets the name of the element.
 void setNamespace(String namespace)
          Sets the namespace of the element.
 void setText(String text)
          Sets the text of the element.
 

Method Detail

getTypeDefinition

XSDTypeDefinition getTypeDefinition()
Returns:
The object containing the type definiton of the instance.

getDeclaration

XSDNamedComponent getDeclaration()
Returns:
The feature describing the component instance.

getNamespace

String getNamespace()
Returns:
The namespace of the element;

setNamespace

void setNamespace(String namespace)
Sets the namespace of the element.

Parameters:
namespace - The new namespace.

getName

String getName()
Returns:
The name of the element.

setName

void setName(String name)
Sets the name of the element.

Parameters:
name - The new name.

getText

String getText()
Returns:
The text inside of the component, or the empty string if the component does not contain any text.

setText

void setText(String text)
Sets the text of the element.

Parameters:
text - The new text


Copyright © 1996-2010 Geotools. All Rights Reserved.