nu.staldal.xmltree
Class ProcessingInstruction

java.lang.Object
  extended by nu.staldal.xmltree.Node
      extended by nu.staldal.xmltree.ProcessingInstruction
All Implemented Interfaces:
java.io.Serializable, org.xml.sax.Locator

public class ProcessingInstruction
extends Node

An XML processing instruction. This class is immutable.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class nu.staldal.xmltree.Node
parent
 
Constructor Summary
ProcessingInstruction(java.lang.String target, java.lang.String value)
          Constructs a processing instruction.
 
Method Summary
 java.lang.String getTarget()
          Get the target.
 java.lang.String getValue()
          Get the value.
 void toSAX(org.xml.sax.ContentHandler sax)
          Serialize this node, and recursively the (sub)tree beneath, into SAX2 events.
 
Methods inherited from class nu.staldal.xmltree.Node
getBaseURI, getColumnNumber, getInheritedAttribute, getLineNumber, getParent, getPreserveSpace, getPublicId, getSystemId, isWhitespaceNode, lookupNamespacePrefix, lookupNamespaceURI, setColumn, setLine, setPublicId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingInstruction

public ProcessingInstruction(java.lang.String target,
                             java.lang.String value)
Constructs a processing instruction.

Parameters:
target - the target
value - the value
Method Detail

getTarget

public java.lang.String getTarget()
Get the target.

Returns:
the target

getValue

public java.lang.String getValue()
Get the value.

Returns:
the value

toSAX

public void toSAX(org.xml.sax.ContentHandler sax)
           throws org.xml.sax.SAXException
Description copied from class: Node
Serialize this node, and recursively the (sub)tree beneath, into SAX2 events.

Specified by:
toSAX in class Node
Parameters:
sax - the SAX2 ContentHander to fire events on.
Throws:
org.xml.sax.SAXException - if any of the ContentHandler methods throw it