public class TextData extends AbstractXmlBuilder implements TypedData
| Modifier and Type | Field and Description |
|---|---|
static Type |
type
The static type associated with this typed data.
|
| Constructor and Description |
|---|
TextData()
Construct a text data that contains an empty string.
|
TextData(String text)
Construct a text data that contains the given string.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
build(XmlElement in,
String type)
Given an XmlElement, create and return an internal representtion
of it.
|
boolean |
equals(Object o)
Equality test: are the strings identical?
|
XmlElement |
generate(Object in)
Unable to generate XML by default.
|
String |
getText()
Return the text string contained by this data.
|
Type |
getType()
Return the type of this data, implementing the TypedData
interface.
|
void |
setText(String text)
Set the text string contained by this data.
|
String |
toString()
Return a string representation of this data for debugging.
|
getDelegate, setDelegateclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetDelegatepublic static final Type type
public TextData()
public TextData(String text)
public Type getType()
public String getText()
public void setText(String text)
public boolean equals(Object o)
public Object build(XmlElement in, String type)
AbstractXmlBuilderpublic Graph build (XmlELement elt, String type);
build in interface XmlBuilderbuild in class AbstractXmlBuilderpublic XmlElement generate(Object in)
AbstractXmlBuildergenerate in interface XmlBuildergenerate in class AbstractXmlBuilderCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.