Java org.jdom2 Text fields, constructors, methods, implement or subclass

Example usage for Java org.jdom2 Text fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jdom2 Text.

The text is from its open source code.

Constructor

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.

Method

voidappend(String str)
This will append character content to whatever content already exists within this Text node.
voidappend(Text text)
This will append the content of another Text node to this node.
Textclone()
ElementgetParent()
StringgetText()
This returns the value of this Text node as a Java String.
StringgetTextNormalize()
This returns the textual content with all surrounding whitespace removed and internal whitespace normalized to a single space.
StringgetTextTrim()
This returns the textual content with all surrounding whitespace removed.
StringgetValue()
Returns the XPath 1.0 string value of this element, which is the text itself.
StringnormalizeString(String str)
This returns a new string with all surrounding whitespace removed and internal whitespace normalized to a single space.
TextsetText(String str)
This will set the value of this Text node.