Package org.dom4j

Interface ProcessingInstruction

All Superinterfaces:
Cloneable, Node
All Known Implementing Classes:
AbstractProcessingInstruction, DefaultProcessingInstruction, DOMProcessingInstruction, FlyweightProcessingInstruction

public interface ProcessingInstruction extends Node
ProcessingInstruction defines an XML processing instruction. The Node.getName()method will return the target of the PI and the Node.getText()method will return the data from all of the instructions.
Version:
$Revision: 1.10 $
  • Method Details

    • getTarget

      String getTarget()
      This method is the equivalent to the Node.getName()method. It is added for clarity.
      Returns:
      the target of this PI
    • setTarget

      void setTarget(String target)
      This method is the equivalent to the Node.setName(java.lang.String)method. It is added for clarity.
      Parameters:
      target - DOCUMENT ME!
    • getText

      String getText()
      DOCUMENT ME!
      Specified by:
      getText in interface Node
      Returns:
      the text for all the data associated with the processing instruction
    • getValue

      String getValue(String name)

      Returns the value of a specific name in the PI.

      Parameters:
      name - is the name of the attribute to lookup.
      Returns:
      the value of the named attribute
    • getValues

      Map<String,String> getValues()
      DOCUMENT ME!
      Returns:
      the values for this processing instruction as a Map
    • setValue

      void setValue(String name, String value)
    • setValues

      void setValues(Map<String,String> data)
    • removeValue

      boolean removeValue(String name)