de.pdark.decentxml
Class Comment

java.lang.Object
  extended by de.pdark.decentxml.BasicNode
      extended by de.pdark.decentxml.Comment
All Implemented Interfaces:
Node, TextNode

public class Comment
extends BasicNode
implements TextNode


Constructor Summary
Comment(java.lang.String text)
           
Comment(Token token)
           
 
Method Summary
 Comment copy()
          Simulate clone()
 Comment createClone()
          Simulate clone()
 java.lang.String getText()
          Get the text from the node
 Comment setText(java.lang.String text)
          Change the text of the node.
 
Methods inherited from class de.pdark.decentxml.BasicNode
copy, 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

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.

Specified by:
setText in interface TextNode

getText

public java.lang.String getText()
Description copied from interface: TextNode
Get the text from the node

Specified by:
getText in interface TextNode

createClone

public Comment createClone()
Description copied from interface: Node
Simulate clone()

Specified by:
createClone in interface Node
Overrides:
createClone in class BasicNode

copy

public Comment copy()
Description copied from interface: Node
Simulate clone()

Specified by:
copy in interface Node
Overrides:
copy in class BasicNode


Copyright © 2008-2011. All Rights Reserved.