Save This Page
Home » dom4j-1.6.1 » org.dom4j.tree » [javadoc | source]
org.dom4j.tree
public class: FlyweightProcessingInstruction [javadoc | source]
java.lang.Object
   org.dom4j.tree.AbstractNode
      org.dom4j.tree.AbstractProcessingInstruction
         org.dom4j.tree.FlyweightProcessingInstruction

All Implemented Interfaces:
    ProcessingInstruction, Cloneable, Node, Serializable

Direct Known Subclasses:
    DefaultProcessingInstruction, DOMProcessingInstruction

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 org.dom4j.tree.AbstractNode:
NODE_TYPE_NAMES
Constructor:
 public FlyweightProcessingInstruction() 
 public FlyweightProcessingInstruction(String target,
    Map values) 

    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
 public FlyweightProcessingInstruction(String target,
    String text) 

    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
Method from org.dom4j.tree.FlyweightProcessingInstruction Summary:
createXPathResult,   getTarget,   getText,   getValue,   getValues,   setTarget
Methods from org.dom4j.tree.AbstractProcessingInstruction:
accept,   asXML,   getName,   getNodeType,   getPath,   getUniquePath,   parseValues,   removeValue,   setName,   setValue,   setValues,   toString,   toString,   write
Methods from org.dom4j.tree.AbstractNode:
asXPathResult,   clone,   createPattern,   createXPath,   createXPathFilter,   createXPathResult,   detach,   getDocument,   getDocumentFactory,   getName,   getNodeType,   getNodeTypeName,   getParent,   getPath,   getStringValue,   getText,   getUniquePath,   hasContent,   isReadOnly,   matches,   numberValueOf,   selectNodes,   selectNodes,   selectNodes,   selectObject,   selectSingleNode,   setDocument,   setName,   setParent,   setText,   supportsParent,   valueOf,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.tree.FlyweightProcessingInstruction Detail:
 protected Node createXPathResult(Element parent) 
 public String getTarget() 
 public String getText() 
 public String getValue(String name) 
 public Map getValues() 
 public  void setTarget(String target)