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(java.lang.String target)ProcessingInstruction(java.lang.String target, java.lang.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()java.lang.StringgetTarget()java.lang.StringgetText()Get the text from the nodevoidsetTarget(java.lang.String target)ProcessingInstructionsetText(java.lang.String text)Change the text of the node.protected voidupdateValue()
-
-
-
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:TextNodeGet the text from the node
-
setText
public ProcessingInstruction setText(java.lang.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
-
-