Constructor and Description |
---|
Text(String text) |
Text(Token token) |
Text(XMLTokenizer.Type type,
String text) |
Modifier and Type | Method and Description |
---|---|
Text |
copy()
Simulate clone()
|
BasicNode |
copy(Node orig)
Copy all data from
orig into this |
Text |
createClone()
Simulate clone()
|
String |
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.
|
String |
getText()
Get the text from the node
|
String |
getTrimmedText()
Get the contents of this text node without all whitespace before and after
|
boolean |
isCDATA() |
boolean |
isWhitespace()
True, if this text node contains only whitespace
|
Text |
setText(String text)
Change the text of the node.
|
public Text(Token token)
public Text(XMLTokenizer.Type type, String text)
public Text(String text)
public boolean isCDATA()
public String getText()
TextNode
public Text setText(String text)
TextNode
public String getTrimmedText()
public String getNormalizedText()
public boolean isWhitespace()
public Text createClone()
Node
createClone
in interface Node
createClone
in class BasicNode
public BasicNode copy(Node orig)
Node
orig
into this
Copyright © 2008–2021. All rights reserved.