Package de.pdark.decentxml
Class ProcessingInstruction
- java.lang.Object
-
- de.pdark.decentxml.BasicNode
-
- de.pdark.decentxml.ProcessingInstruction
-
- Direct Known Subclasses:
XMLDeclaration
public class ProcessingInstruction extends BasicNode implements TextNode
-
-
Constructor Summary
Constructors Constructor Description ProcessingInstruction(Token token)ProcessingInstruction(String target)ProcessingInstruction(String target, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessingInstructioncopy()Simulate clone()ProcessingInstructioncopy(Node orig)Copy all data fromorigintothisProcessingInstructioncreateClone()Simulate clone()StringgetTarget()StringgetText()Get the text from the nodevoidsetTarget(String target)ProcessingInstructionsetText(String text)Change the text of the node.protected voidupdateValue()
-
-
-
Method Detail
-
updateValue
protected void updateValue()
-
getTarget
public String getTarget()
-
setTarget
public void setTarget(String target)
-
getText
public String getText()
Description copied from interface:TextNodeGet the text from the node
-
setText
public ProcessingInstruction setText(String text)
Description copied from interface:TextNodeChange the text of the node. When necessary, the text will be escaped before writing it to the output stream.
-
createClone
public ProcessingInstruction createClone()
Description copied from interface:NodeSimulate clone()- Specified by:
createClonein interfaceNode- Overrides:
createClonein classBasicNode
-
copy
public ProcessingInstruction copy(Node orig)
Description copied from interface:NodeCopy all data fromorigintothis
-
-