nu.validator.saxtree
Class ProcessingInstruction

java.lang.Object
  extended by nu.validator.saxtree.Node
      extended by nu.validator.saxtree.ProcessingInstruction
All Implemented Interfaces:
Locator

public final class ProcessingInstruction
extends Node

A processing instruction.

Version:
$Id: ProcessingInstruction.java 367 2008-07-02 18:27:22Z hsivonen $
Author:
hsivonen

Field Summary
private  String data
          PI data.
private  String target
          PI target.
 
Constructor Summary
ProcessingInstruction(Locator locator, String target, String data)
          Constructor.
 
Method Summary
 String getData()
          Returns the data.
 NodeType getNodeType()
          Return the node type.
 String getTarget()
          Returns the target.
(package private)  void visit(TreeParser treeParser)
          Visit the node.
 
Methods inherited from class nu.validator.saxtree.Node
detach, getAttributes, getColumnNumber, getFirstChild, getLineNumber, getLocalName, getName, getNextSibling, getParentNode, getPrefixMappings, getPreviousSibling, getPublicId, getPublicIdentifier, getQName, getSystemId, getSystemIdentifier, getUri, revisit, setNextSibling, setParentNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private final String target
PI target.


data

private final String data
PI data.

Constructor Detail

ProcessingInstruction

public ProcessingInstruction(Locator locator,
                             String target,
                             String data)
Constructor.

Parameters:
locator - the locator
target - PI target
data - PI data
Method Detail

visit

void visit(TreeParser treeParser)
     throws SAXException
Description copied from class: Node
Visit the node.

Specified by:
visit in class Node
Parameters:
treeParser - the visitor
Throws:
SAXException - if stuff goes wrong
See Also:
Node.visit(nu.validator.saxtree.TreeParser)

getNodeType

public NodeType getNodeType()
Description copied from class: Node
Return the node type.

Specified by:
getNodeType in class Node
Returns:
the node type
See Also:
Node.getNodeType()

getData

public String getData()
Returns the data.

Overrides:
getData in class Node
Returns:
the data

getTarget

public String getTarget()
Returns the target.

Overrides:
getTarget in class Node
Returns:
the target