net.sf.saxon.tinytree

Class TinyProcInstImpl

final class TinyProcInstImpl extends TinyNodeImpl

TProcInstImpl is an implementation of ProcInstInfo

Version: 16 July 1999

Author: Michael H. Kay

Constructor Summary
TinyProcInstImpl(TinyTree tree, int nodeNr)
Method Summary
Valueatomize()
Get the typed value of this node.
voidcopy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId)
Copy this node to a given outputter
StringgetBaseURI()
Get the base URI of this processing instruction node.
StringgetData()
The content of this processing instruction.
intgetNodeKind()
StringgetStringValue()
StringgetTarget()
The target of this processing instruction.
SequenceIteratorgetTypedValue()
Get the typed value of this node.

Constructor Detail

TinyProcInstImpl

public TinyProcInstImpl(TinyTree tree, int nodeNr)

Method Detail

atomize

public Value atomize()
Get the typed value of this node. Returns the string value, as an instance of xs:string

copy

public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId)
Copy this node to a given outputter

getBaseURI

public String getBaseURI()
Get the base URI of this processing instruction node.

getData

public String getData()
The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?> .

Returns: the content of the processing instruction (in XDM this is the same as its string value)

getNodeKind

public final int getNodeKind()

getStringValue

public String getStringValue()

getTarget

public String getTarget()
The target of this processing instruction. XML defines this as being the first token following the markup that begins the processing instruction.

Returns: the "target", or in XDM terms, the name of the processing instruction

getTypedValue

public SequenceIterator getTypedValue()
Get the typed value of this node. Returns the string value, as an instance of xs:string