Package org.geotools.xsd.impl
Class InstanceComponentImpl
Object
InstanceComponentImpl
- All Implemented Interfaces:
InstanceComponent
- Direct Known Subclasses:
AttributeImpl,ElementImpl,TextInstance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddText(char[] ch, int start, int length) voidXSDNamedComponentgetName()getText()voidSets the name of the element.voidsetNamespace(String namespace) Sets the namespace of the element.voidSets the text of the element.toString()By default indicate the elements nameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface InstanceComponent
getTypeDefinition
-
Constructor Details
-
InstanceComponentImpl
public InstanceComponentImpl()
-
-
Method Details
-
getDeclaration
public XSDNamedComponent getDeclaration()- Specified by:
getDeclarationin interfaceInstanceComponent- Returns:
- The feature describing the component instance.
-
getNamespace
- Specified by:
getNamespacein interfaceInstanceComponent- Returns:
- The namespace of the element;
-
setNamespace
Description copied from interface:InstanceComponentSets the namespace of the element.- Specified by:
setNamespacein interfaceInstanceComponent- Parameters:
namespace- The new namespace.
-
getName
- Specified by:
getNamein interfaceInstanceComponent- Returns:
- The name of the element.
-
setName
Description copied from interface:InstanceComponentSets the name of the element.- Specified by:
setNamein interfaceInstanceComponent- Parameters:
name- The new name.
-
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
Description copied from interface:InstanceComponentSets the text of the element.- Specified by:
setTextin interfaceInstanceComponent- Parameters:
text- The new text
-
addText
-
addText
public void addText(char[] ch, int start, int length) -
toString
By default indicate the elements name
-