|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractProcessingInstruction
org.dom4j.tree.FlyweightProcessingInstruction
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.
| 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 |
| Fields inherited from class org.dom4j.tree.AbstractNode |
NODE_TYPE_NAMES |
| Fields inherited from interface org.dom4j.Node |
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE |
| 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()
This method is the equivalent to the AbstractProcessingInstruction.getName()method. |
String |
getText()
DOCUMENT ME! |
String |
getValue(String name)
Returns the value of a specific name in the PI. |
Map |
getValues()
DOCUMENT ME! |
void |
setTarget(String target)
This method is the equivalent to the AbstractProcessingInstruction.setName(java.lang.String)method. |
| Methods inherited from class org.dom4j.tree.AbstractProcessingInstruction |
accept, asXML, getName, getNodeType, getPath, getUniquePath, parseValues, removeValue, setName, setValue, setValues, toString, toString, write |
| Methods inherited from class org.dom4j.tree.AbstractNode |
asXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.dom4j.Node |
asXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf |
| Field Detail |
protected String target
protected String text
protected Map values
| Constructor Detail |
public FlyweightProcessingInstruction()
public FlyweightProcessingInstruction(String target,
Map values)
This will create a new PI with the given target and values
target - is the name of the PIvalues - is the Map of the values for the PI
public FlyweightProcessingInstruction(String target,
String text)
This will create a new PI with the given target and values
target - is the name of the PItext - is the values for the PI as text| Method Detail |
public String getTarget()
ProcessingInstructionNode.getName()method. It is added
for clarity.
public void setTarget(String target)
ProcessingInstructionNode.setName(java.lang.String)method. It is added
for clarity.
target - DOCUMENT ME!public String getText()
ProcessingInstruction
getText in interface ProcessingInstructiongetText in class AbstractNodepublic String getValue(String name)
ProcessingInstructionReturns the value of a specific name in the PI.
name - is the name of the attribute to lookup.
public Map getValues()
ProcessingInstruction
protected Node createXPathResult(Element parent)
createXPathResult in class AbstractNode
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||