Package de.pdark.decentxml
Class Text
java.lang.Object
de.pdark.decentxml.BasicNode
de.pdark.decentxml.Text
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Simulate clone()Copy all data fromorig
intothis
Simulate clone()Get the contents of this text node without all whitespace before and after and with all whitespace between the words in the node reduced to a single space.getText()
Get the text from the nodeGet the contents of this text node without all whitespace before and afterboolean
isCDATA()
boolean
True, if this text node contains only whitespaceChange the text of the node.
-
Field Details
-
text
-
-
Constructor Details
-
Text
-
Text
-
Text
-
-
Method Details
-
isCDATA
public boolean isCDATA() -
getText
Description copied from interface:TextNode
Get the text from the node -
setText
Description copied from interface:TextNode
Change the text of the node. When necessary, the text will be escaped before writing it to the output stream. -
getTrimmedText
Get the contents of this text node without all whitespace before and after -
getNormalizedText
Get the contents of this text node without all whitespace before and after and with all whitespace between the words in the node reduced to a single space. -
isWhitespace
public boolean isWhitespace()True, if this text node contains only whitespace -
createClone
Description copied from interface:Node
Simulate clone()- Specified by:
createClone
in interfaceNode
- Overrides:
createClone
in classBasicNode
-
copy
Description copied from interface:Node
Copy all data fromorig
intothis
-
copy
Description copied from interface:Node
Simulate clone()
-