org.geotools.xml.impl
Class InstanceComponentImpl
java.lang.Object
org.geotools.xml.impl.InstanceComponentImpl
- All Implemented Interfaces:
- InstanceComponent
- Direct Known Subclasses:
- AttributeImpl, ElementImpl
public abstract class InstanceComponentImpl
- extends java.lang.Object
- implements InstanceComponent
Method Summary |
void |
addText(char[] ch,
int start,
int length)
|
void |
addText(java.lang.String text)
|
org.eclipse.xsd.XSDNamedComponent |
getDeclaration()
|
java.lang.String |
getName()
|
java.lang.String |
getNamespace()
|
java.lang.String |
getText()
|
void |
setName(java.lang.String name)
Sets the name of the element. |
void |
setNamespace(java.lang.String namespace)
Sets the namespace of the element. |
void |
setText(java.lang.String text)
Sets the text of the element. |
java.lang.String |
toString()
By default indicate the elements name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InstanceComponentImpl
public InstanceComponentImpl()
getDeclaration
public org.eclipse.xsd.XSDNamedComponent getDeclaration()
- Specified by:
getDeclaration
in interface InstanceComponent
- Returns:
- The feature describing the component instance.
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interface InstanceComponent
- Returns:
- The namespace of the element;
setNamespace
public void setNamespace(java.lang.String namespace)
- Description copied from interface:
InstanceComponent
- Sets the namespace of the element.
- Specified by:
setNamespace
in interface InstanceComponent
- Parameters:
namespace
- The new namespace.
getName
public java.lang.String getName()
- Specified by:
getName
in interface InstanceComponent
- Returns:
- The name of the element.
setName
public void setName(java.lang.String name)
- Description copied from interface:
InstanceComponent
- Sets the name of the element.
- Specified by:
setName
in interface InstanceComponent
- Parameters:
name
- The new name.
getText
public java.lang.String getText()
- Specified by:
getText
in interface InstanceComponent
- Returns:
- The text inside of the component, or the empty string if the
component does not contain any text.
setText
public void setText(java.lang.String text)
- Description copied from interface:
InstanceComponent
- Sets the text of the element.
- Specified by:
setText
in interface InstanceComponent
- Parameters:
text
- The new text
addText
public void addText(java.lang.String text)
addText
public void addText(char[] ch,
int start,
int length)
toString
public java.lang.String toString()
- By default indicate the elements name
- Overrides:
toString
in class java.lang.Object
Copyright © 1996-2010 Geotools. All Rights Reserved.