| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| private static final long | serialVersionUID
JDOM2 Serialization.
|
| protected String | value
The actual character content |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Text | |
| public Text | detach()
Overrides org. |
| public Element | getParent()
Overrides org. |
| public String | Returns: String - character content of this node.This returns the value of this |
| public String | Returns: normalized text content or empty stringThis returns the textual content with all surrounding whitespace removed and internal whitespace normalized to a single space. |
| public String | Returns: trimmed text content or empty stringThis returns the textual content with all surrounding whitespace removed. |
| public String | Returns: the textImplements abstract org. |
| public static String | Returns: normalized string or empty stringstring to be normalized. str)This returns a new string with all surrounding whitespace removed and internal whitespace normalized to a single space. |
| protected Text | setParent(Parent
new parent element parent)Overrides org. |
| public Text | |
| public String | Returns: String - information about this node.Overrides java. String representation of the
Text node, suitable for debugging.
|
| EMPTY_STRING | back to summary |
|---|---|
| pack-priv static final String EMPTY_STRING | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. JDOM2 Serialization. In this case, Text is simple. | |
| value | back to summary |
|---|---|
| protected String value The actual character content | |
| Text | back to summary |
|---|---|
| protected Text(Content. CData type extends Text, and it needs to be able to change the Content type of this Content. | |
| Text | back to summary |
|---|---|
| protected Text() This is the protected, no-args constructor standard in all JDOM classes. It allows subclassers to get a raw instance with no initialization. | |
| Text | back to summary |
|---|---|
| public Text(String str) This constructor creates a new
| |
| append | back to summary |
|---|---|
| public void append(String str) This will append character content to whatever content already
exists within this
| |
| append | back to summary |
|---|---|
| public void append(Text text) This will append the content of another
| |
| clone | back to summary |
|---|---|
| public Text clone() Overrides org. Doc from org. Return a deep clone of this instance. Even if this instance has a parent, the returned clone will not. All JDOM core classes are Cloneable, and never throw CloneNotSupportedException. Additionally all Cloneable JDOM classes return the correct type of instance from this method and there is no need to cast the result (co-variant return value). Subclasses of this should still call super.clone() in their clone method.
| |
| detach | back to summary |
|---|---|
| public Text detach() Overrides org. Doc from org. Detaches this child from its parent or does nothing if the child has no parent.
This method can be overridden by particular Content subclasses to return
a specific type of Content (co-variant return type). All overriding
subclasses must call | |
| getParent | back to summary |
|---|---|
| public Element getParent() Overrides org. Doc from org. Return this child's parent, or null if this child is currently
not attached. The parent can be either an
This method can be overridden by particular Content subclasses to return
a specific type of Parent (co-variant return type). All overriding
subclasses must call | |
| getText | back to summary |
|---|---|
| public String getText() This returns the value of this
| |
| getTextNormalize | back to summary |
|---|---|
| public String getTextNormalize() This returns the textual content with all surrounding whitespace removed and internal whitespace normalized to a single space. If only whitespace exists, the empty string is returned.
| |
| getTextTrim | back to summary |
|---|---|
| public String getTextTrim() This returns the textual content with all surrounding whitespace removed. If only whitespace exists, the empty string is returned.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements abstract org. Returns the XPath 1.0 string value of this element, which is the text itself. | |
| normalizeString | back to summary |
|---|---|
| public static String normalizeString(String str) This returns a new string with all surrounding whitespace removed and internal whitespace normalized to a single space. If only whitespace exists, the empty string is returned. Per XML 1.0 Production 3 whitespace includes: #x20, #x9, #xD, #xA | |
| setParent | back to summary |
|---|---|
| protected Text setParent(Parent parent) Overrides org. Doc from org. Sets the parent of this Content. The caller is responsible for removing any pre-existing parentage.
This method can be overridden by particular Content subclasses to return
a specific type of Content (co-variant return type). All overriding
subclasses must call | |
| setText | back to summary |
|---|---|
| public Text setText(String str) This will set the value of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This returns a | |