com.icl.saxon.tree

Class ProcInstImpl

Implemented Interfaces:
DOMLocator, Node, ProcessingInstruction, NodeInfo, Source, SourceLocator

(package private) 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

(package private) String
content
(package private) int
lineNumber
(package private) int
nameCode
(package private) String
systemId

Fields inherited from class com.icl.saxon.tree.NodeImpl

emptyArray, index, parent

Fields inherited from class com.icl.saxon.om.AbstractNode

NODE_LETTER

Fields inherited from interface com.icl.saxon.om.NodeInfo

ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT

Constructor Summary

ProcInstImpl(int nameCode, String content)

Method Summary

void
copy(Outputter out)
Copy this node to a given outputter
String
getData()
The content of this processing instruction.
int
getLineNumber()
Get the line number of the node within its source entity
int
getNameCode()
Get the nameCode of the node.
short
getNodeType()
String
getStringValue()
String
getSystemId()
Get the system ID for the entity containing this node.
String
getTarget()
The target of this processing instruction.
void
setData(String data)
Set the content of this PI.
void
setLocation(String uri, int lineNumber)
Set the system ID and line number

Methods inherited from class com.icl.saxon.tree.NodeImpl

compareOrder, generateId, getAttributeValue, getAttributeValue, getAttributes, getBaseURI, getChildNodes, getDisplayName, getDocumentElement, getDocumentRoot, getEnumeration, getFingerprint, getFirstChild, getLastChild, getLineNumber, getLocalName, getNameCode, getNamePool, getNextInDocument, getNextSibling, getOriginatingNode, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getSequenceNumber, getSystemId, getURI, hasAttributes, hasChildNodes, isSameNodeInfo, outputNamespaceNodes, removeNode, setSystemId

Methods inherited from class com.icl.saxon.om.AbstractNode

appendChild, appendData, cloneNode, compareDocumentPosition, compareOrder, copyStringValue, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, disallowUpdate, generateId, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributeValue, getAttributeValue, getAttributes, getBaseURI, getChildNodes, getColumnNumber, getData, getDisplayName, getDoctype, getDocumentElement, getDocumentRoot, getElementById, getElementsByTagName, getElementsByTagNameNS, getEnumeration, getFeature, getFingerprint, getFirstChild, getImplementation, getLastChild, getLength, getLineNumber, getLocalName, getName, getNameCode, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOriginatingNode, getOwnerDocument, getOwnerElement, getParent, getParentNode, getPrefix, getPreviousSibling, getPublicId, getSchemaTypeInfo, getSpecified, getSystemId, getTagName, getTextContent, getURI, getUserData, getValue, getWholeText, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, importNode, insertBefore, insertData, isDefaultNamespace, isElementContentWhitespace, isEqualNode, isId, isSameNode, isSameNodeInfo, isSupported, lookupNamespaceURI, lookupPrefix, normalize, outputNamespaceNodes, removeAttribute, removeAttributeNS, removeAttributeNode, removeChild, replaceChild, replaceData, replaceWholeText, setAttributeNS, setAttributeNode, setAttributeNodeNS, setData, setIdAttribute, setIdAttributeNS, setIdAttributeNode, setNodeValue, setPrefix, setTextContent, setUserData, setValue, splitText, substringData, supports

Field Details

content

(package private)  String content

lineNumber

(package private)  int lineNumber

nameCode

(package private)  int nameCode

systemId

(package private)  String systemId

Constructor Details

ProcInstImpl

public ProcInstImpl(int nameCode,
                    String content)

Method Details

copy

public void copy(Outputter out)
            throws TransformerException
Copy this node to a given outputter
Specified by:
copy in interface NodeInfo

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 ?> .
Overrides:
getData in interface AbstractNode

getLineNumber

public int getLineNumber()
Get the line number of the node within its source entity
Specified by:
getLineNumber in interface NodeInfo
Overrides:
getLineNumber in interface NodeImpl

getNameCode

public int getNameCode()
Get the nameCode of the node. This is used to locate the name in the NamePool
Specified by:
getNameCode in interface NodeInfo
Overrides:
getNameCode in interface NodeImpl

getNodeType

public final short getNodeType()
Specified by:
getNodeType in interface NodeInfo

getStringValue

public String getStringValue()
Specified by:
getStringValue in interface NodeInfo

getSystemId

public String getSystemId()
Get the system ID for the entity containing this node.
Specified by:
getSystemId in interface NodeInfo
Overrides:
getSystemId in interface NodeImpl

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)
            throws DOMException
Set the content of this PI. Always fails.
Overrides:
setData in interface AbstractNode

setLocation

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