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 ProcessingInstruction
copy()
Simulate clone()ProcessingInstruction
copy(Node orig)
Copy all data fromorig
intothis
ProcessingInstruction
createClone()
Simulate clone()java.lang.String
getTarget()
java.lang.String
getText()
Get the text from the nodevoid
setTarget(java.lang.String target)
ProcessingInstruction
setText(java.lang.String text)
Change the text of the node.protected void
updateValue()
-
-
-
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
-
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.
-
createClone
public ProcessingInstruction createClone()
Description copied from interface:Node
Simulate clone()- Specified by:
createClone
in interfaceNode
- Overrides:
createClone
in classBasicNode
-
copy
public ProcessingInstruction copy(Node orig)
Description copied from interface:Node
Copy all data fromorig
intothis
-
-