com.icl.saxon.tree

Class ProcInstImpl

class ProcInstImpl extends NodeImpl implements ProcessingInstruction

ProcInstImpl is an implementation of ProcInstInfo used by the Propagator to construct its trees.

Author: Michael H. Kay

Field Summary
Stringcontent
intlineNumber
intnameCode
StringsystemId
Constructor Summary
ProcInstImpl(int nameCode, String content)
Method Summary
voidcopy(Outputter out)
Copy this node to a given outputter
StringgetData()
The content of this processing instruction.
intgetLineNumber()
Get the line number of the node within its source entity
intgetNameCode()
Get the nameCode of the node.
shortgetNodeType()
StringgetStringValue()
StringgetSystemId()
Get the system ID for the entity containing this node.
StringgetTarget()
The target of this processing instruction.
voidsetData(String data)
Set the content of this PI.
voidsetLocation(String uri, int lineNumber)
Set the system ID and line number

Field Detail

content

String content

lineNumber

int lineNumber

nameCode

int nameCode

systemId

String systemId

Constructor Detail

ProcInstImpl

public ProcInstImpl(int nameCode, String content)

Method Detail

copy

public void copy(Outputter out)
Copy this node to a given outputter

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 ?> .

getLineNumber

public int getLineNumber()
Get the line number of the node within its source entity

getNameCode

public int getNameCode()
Get the nameCode of the node. This is used to locate the name in the NamePool

getNodeType

public final short getNodeType()

getStringValue

public String getStringValue()

getSystemId

public String getSystemId()
Get the system ID for the entity containing this node.

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.

setData

public void setData(String data)
Set the content of this PI. Always fails.

Throws: DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

setLocation

public void setLocation(String uri, int lineNumber)
Set the system ID and line number