|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.pdark.decentxml.BasicNode
de.pdark.decentxml.Text
public class Text
| Constructor Summary | |
|---|---|
Text(java.lang.String text)
|
|
Text(Token token)
|
|
Text(XMLTokenizer.Type type,
java.lang.String text)
|
|
| Method Summary | |
|---|---|
Text |
copy()
Simulate clone() |
BasicNode |
copy(Node orig)
Copy all data from orig into this |
Text |
createClone()
Simulate clone() |
java.lang.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. |
java.lang.String |
getText()
Get the text from the node |
java.lang.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(java.lang.String text)
Change the text of the node. |
| Methods inherited from class de.pdark.decentxml.BasicNode |
|---|
getEndOffset, getStartOffset, getToken, getType, getValue, setType, setValue, toString, toXML, toXML, toXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Text(Token token)
public Text(XMLTokenizer.Type type,
java.lang.String text)
public Text(java.lang.String text)
| Method Detail |
|---|
public boolean isCDATA()
public java.lang.String getText()
TextNode
getText in interface TextNodepublic Text setText(java.lang.String text)
TextNode
setText in interface TextNodepublic java.lang.String getTrimmedText()
public java.lang.String getNormalizedText()
public boolean isWhitespace()
public Text createClone()
Node
createClone in interface NodecreateClone in class BasicNodepublic BasicNode copy(Node orig)
Nodeorig into this
copy in interface Nodecopy in class BasicNodepublic Text copy()
Node
copy in interface Nodecopy in class BasicNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||