TYPE_COMMENT, TYPE_ELEMENT, TYPE_PROCESSING_INSTRUCTION, TYPE_TEXT
Constructor and Description |
---|
XmlText() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Return the text value.
|
int |
getType()
Return XmlNode.TYPE_TEXT.
|
void |
setText(java.lang.String value)
Set the text value.
|
java.lang.String |
toString() |
static XmlText |
withText(java.lang.String text)
Convenience function for constructing a text node with specified text.
|
public java.lang.String getText()
Return the text value.
public int getType()
Return XmlNode.TYPE_TEXT.
public void setText(java.lang.String value)
Set the text value.
value
- The text value.public java.lang.String toString()
toString
in class java.lang.Object
public static XmlText withText(java.lang.String text)
Convenience function for constructing a text node with specified text.
text
- The text value.