de.pdark.decentxml
Class ProcessingInstruction

java.lang.Object
  extended by de.pdark.decentxml.BasicNode
      extended by de.pdark.decentxml.ProcessingInstruction
All Implemented Interfaces:
Node, TextNode
Direct Known Subclasses:
XMLDeclaration

public class ProcessingInstruction
extends BasicNode
implements TextNode


Constructor Summary
ProcessingInstruction(java.lang.String target)
           
ProcessingInstruction(java.lang.String target, java.lang.String text)
           
ProcessingInstruction(Token token)
           
 
Method Summary
 ProcessingInstruction copy()
          Simulate clone()
 ProcessingInstruction copy(Node orig)
          Copy all data from orig into this
 ProcessingInstruction createClone()
          Simulate clone()
 java.lang.String getTarget()
           
 java.lang.String getText()
          Get the text from the node
 void setTarget(java.lang.String target)
           
 ProcessingInstruction setText(java.lang.String text)
          Change the text of the node.
protected  void updateValue()
           
 
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

ProcessingInstruction

public ProcessingInstruction(Token token)

ProcessingInstruction

public ProcessingInstruction(java.lang.String target)

ProcessingInstruction

public ProcessingInstruction(java.lang.String target,
                             java.lang.String text)
Method Detail

updateValue

protected void updateValue()

getTarget

public java.lang.String getTarget()

setTarget

public void setTarget(java.lang.String target)

getText

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

Specified by:
getText in interface TextNode

setText

public ProcessingInstruction 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

createClone

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

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

copy

public ProcessingInstruction copy(Node orig)
Description copied from interface: Node
Copy all data from orig into this

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

copy

public ProcessingInstruction 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.