Package de.pdark.decentxml
Class Comment
- java.lang.Object
-
- de.pdark.decentxml.BasicNode
-
- de.pdark.decentxml.Comment
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
text
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comment
copy()
Simulate clone()Comment
createClone()
Simulate clone()java.lang.String
getText()
Get the text from the nodeComment
setText(java.lang.String text)
Change the text of the node.
-
-
-
Constructor Detail
-
Comment
public Comment(Token token)
-
Comment
public Comment(java.lang.String text)
-
-
Method Detail
-
setText
public Comment setText(java.lang.String text)
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.
-
getText
public java.lang.String getText()
Description copied from interface:TextNode
Get the text from the node
-
createClone
public Comment createClone()
Description copied from interface:Node
Simulate clone()- Specified by:
createClone
in interfaceNode
- Overrides:
createClone
in classBasicNode
-
-