Package org.geotools.xsd
Interface InstanceComponent
-
- All Known Subinterfaces:
AttributeInstance,ElementInstance
- All Known Implementing Classes:
AttributeImpl,ElementImpl,InstanceComponentImpl,TextInstance
public interface InstanceComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XSDNamedComponentgetDeclaration()StringgetName()StringgetNamespace()StringgetText()XSDTypeDefinitiongetTypeDefinition()voidsetName(String name)Sets the name of the element.voidsetNamespace(String namespace)Sets the namespace of the element.voidsetText(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
-
-