org.exolab.adaptx.xslt.dom

Class ProcessingInstruction

public class ProcessingInstruction extends BaseNode

A class representing a Processing Instruction

Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $

Author: Keith Visco

Constructor Summary
ProcessingInstruction(String target, String value)
Creates a new ProcessingInstruction
Method Summary
intgetNodeType()
Returns the type of this node.
StringgetStringValue()
Returns the string value of the node.
voidsetTarget(String target)
Sets the target for this XPathNode
voidsetValue(String value)
Sets the value for this XPathNode

Constructor Detail

ProcessingInstruction

public ProcessingInstruction(String target, String value)
Creates a new ProcessingInstruction

Parameters: target the target for this PI. [May be null] value the value of this PI. [May be null]

Method Detail

getNodeType

public int getNodeType()
Returns the type of this node.

Returns: The type of this node

getStringValue

public String getStringValue()
Returns the string value of the node. The string value of a text node or an attribute node is it's text value. The string value of an element or a root node is the concatenation of the string value of all its child nodes. The string value of a namespace node is its namespace URI. The string value of a processing instruction is the instruction, and the string value of a comment is the comment text.

Returns: The string value of the node

setTarget

public void setTarget(String target)
Sets the target for this XPathNode

setValue

public void setValue(String value)
Sets the value for this XPathNode