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, setDelegate
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setDelegate
public 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)
AbstractXmlBuilder
public Graph build (XmlELement elt, String type);
build
in interface XmlBuilder
build
in class AbstractXmlBuilder
public XmlElement generate(Object in)
AbstractXmlBuilder
generate
in interface XmlBuilder
generate
in class AbstractXmlBuilder
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.