Example usage for Java org.jdom2 Text fields, constructors, methods, implement or subclass
The text is from its open source code.
Text(CType ctype) CData type extends Text, and it needs to be able to change the Content type of this Content. | |
Text(String str) This constructor creates a new Text node, with the supplied string value as its character content. |
void | append(String str) This will append character content to whatever content already exists within this Text node. |
void | append(Text text) This will append the content of another Text node to this node. |
Text | clone() |
Element | getParent() |
String | getText() This returns the value of this Text node as a Java String . |
String | getTextNormalize() This returns the textual content with all surrounding whitespace removed and internal whitespace normalized to a single space. |
String | getTextTrim() This returns the textual content with all surrounding whitespace removed. |
String | getValue() Returns the XPath 1.0 string value of this element, which is the text itself. |
String | normalizeString(String str) This returns a new string with all surrounding whitespace removed and internal whitespace normalized to a single space. |
Text | setText(String str) This will set the value of this Text node. |