Package org.geotools.xsd.impl
Class InstanceComponentImpl
- Object
-
- InstanceComponentImpl
-
- All Implemented Interfaces:
InstanceComponent
- Direct Known Subclasses:
AttributeImpl,ElementImpl,TextInstance
public abstract class InstanceComponentImpl extends Object implements InstanceComponent
-
-
Constructor Summary
Constructors Constructor Description InstanceComponentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddText(char[] ch, int start, int length)voidaddText(String text)XSDNamedComponentgetDeclaration()StringgetName()StringgetNamespace()StringgetText()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.StringtoString()By default indicate the elements name-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface InstanceComponent
getTypeDefinition
-
-
-
-
Method Detail
-
getDeclaration
public XSDNamedComponent getDeclaration()
- Specified by:
getDeclarationin interfaceInstanceComponent- Returns:
- The feature describing the component instance.
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceInstanceComponent- Returns:
- The namespace of the element;
-
setNamespace
public void setNamespace(String namespace)
Description copied from interface:InstanceComponentSets the namespace of the element.- Specified by:
setNamespacein interfaceInstanceComponent- Parameters:
namespace- The new namespace.
-
getName
public String getName()
- Specified by:
getNamein interfaceInstanceComponent- Returns:
- The name of the element.
-
setName
public void setName(String name)
Description copied from interface:InstanceComponentSets the name of the element.- Specified by:
setNamein interfaceInstanceComponent- Parameters:
name- The new name.
-
getText
public String getText()
- Specified by:
getTextin interfaceInstanceComponent- Returns:
- The text inside of the component, or the empty string if the component does not contain any text.
-
setText
public void setText(String text)
Description copied from interface:InstanceComponentSets the text of the element.- Specified by:
setTextin interfaceInstanceComponent- Parameters:
text- The new text
-
addText
public void addText(String text)
-
addText
public void addText(char[] ch, int start, int length)
-
-