org.dom4j.tree
public class FlyweightProcessingInstruction extends AbstractProcessingInstruction
FlyweightProcessingInstruction
is a Flyweight pattern
implementation of a singly linked, read-only XML Processing Instruction.
This node could be shared across documents and elements though it does not support the parent relationship.
Version: $Revision: 1.7 $
Field Summary | |
---|---|
protected String | target The target of the PI |
protected String | text The values for the PI as a String |
protected Map | values The values for the PI in name/value pairs |
Constructor Summary | |
---|---|
FlyweightProcessingInstruction()
A default constructor for implementors to use. | |
FlyweightProcessingInstruction(String target, Map values) This will create a new PI with the given target and values | |
FlyweightProcessingInstruction(String target, String text) This will create a new PI with the given target and values |
Method Summary | |
---|---|
protected Node | createXPathResult(Element parent) |
String | getTarget() |
String | getText() |
String | getValue(String name) |
Map | getValues() |
void | setTarget(String target) |
This will create a new PI with the given target and values
Parameters: target
is the name of the PI values
is the Map
of the values for the PI
This will create a new PI with the given target and values
Parameters: target is the name of the PI text is the values for the PI as text