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 fromorigintothisSimulate 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 afterbooleanisCDATA()booleanTrue, 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:TextNodeGet the text from the node -
setText
Description copied from interface:TextNodeChange 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:NodeSimulate clone()- Specified by:
createClonein interfaceNode- Overrides:
createClonein classBasicNode
-
copy
Description copied from interface:NodeCopy all data fromorigintothis -
copy
Description copied from interface:NodeSimulate clone()
-