attCode
protected int[] attCode
attParent
protected int[] attParent
attValue
protected String[] attValue
charBuffer
protected char[] charBuffer
charBufferLength
protected int charBufferLength
commentBuffer
protected StringBuffer commentBuffer
depth
protected short[] depth
lastLevelOneNode
protected int lastLevelOneNode
length
protected int[] length
nameCode
protected int[] nameCode
namespaceCode
protected int[] namespaceCode
namespaceParent
protected int[] namespaceParent
nodeType
protected byte[] nodeType
numberOfAttributes
protected int numberOfAttributes
numberOfNamespaces
protected int numberOfNamespaces
numberOfNodes
protected int numberOfNodes
offset
protected int[] offset
prior
protected int[] prior
addAttribute
protected void addAttribute(int parent0,
int code0,
String type0,
String value0)
addNamespace
protected void addNamespace(int parent0,
int nscode0)
addNode
protected void addNode(short type0,
int depth0,
int offset0,
int length0,
int nameCode0)
appendChars
protected void appendChars(char[] chars,
int start,
int length)
copy
public void copy(Outputter out)
throws TransformerException
Copy this node to a given outputter
- copy in interface NodeInfo
diagnosticDump
public void diagnosticDump()
Produce diagnostic print of main tree arrays
ensureAttributeCapacity
protected void ensureAttributeCapacity()
ensureNamespaceCapacity
protected void ensureNamespaceCapacity()
ensureNodeCapacity
protected void ensureNodeCapacity()
ensurePriorIndex
protected void ensurePriorIndex()
On demand, make an index for quick access to preceding-sibling nodes
generateId
public String generateId()
Get a character string that uniquely identifies this node within the document
- generateId in interface NodeInfo
- generateId in interface com.icl.saxon.tinytree.TinyNodeImpl
- the empty string
getAllElements
protected AxisEnumeration getAllElements(int fingerprint)
Get a list of all elements with a given name. This is implemented
as a memo function: the first time it is called for a particular
element type, it remembers the result for next time.
getAttributeNode
protected com.icl.saxon.tinytree.TinyAttributeImpl getAttributeNode(int nr)
Make a (transient) attribute node from the array of attributes
getBaseURI
public String getBaseURI()
Get the base URI of this root node. For a root node the base URI is the same as the
System ID.
- getBaseURI in interface NodeInfo
- getBaseURI in interface com.icl.saxon.tinytree.TinyNodeImpl
getDocumentRoot
public DocumentInfo getDocumentRoot()
Get the root (document) node
- getDocumentRoot in interface NodeInfo
- getDocumentRoot in interface com.icl.saxon.tinytree.TinyNodeImpl
- the DocumentInfo representing this document
getKeyIndex
public Hashtable getKeyIndex(KeyManager keymanager,
int fingerprint)
Get the index for a given key
- getKeyIndex in interface DocumentInfo
keymanager
- The key manager managing this key
- The index, if one has been built, in the form of a Hashtable that
maps the key value to a set of nodes having that key value. If no index
has been built, returns null.
getLineNumber
public int getLineNumber()
Get the line number of this root node.
- getLineNumber in interface NodeInfo
- getLineNumber in interface com.icl.saxon.tinytree.TinyNodeImpl
- 0 always
getLineNumber
protected int getLineNumber(int sequence)
Get the line number for an element. Return -1 if line numbering is off.
getNamespaceNode
protected com.icl.saxon.tinytree.TinyNamespaceImpl getNamespaceNode(int nr)
Make a (transient) namespace node from the array of namespace declarations
getNode
public com.icl.saxon.tinytree.TinyNodeImpl getNode(int nr)
getNodeType
public final short getNodeType()
Return the type of node.
- getNodeType in interface NodeInfo
- NodeInfo.ROOT (always)
getParent
public NodeInfo getParent()
Find the parent node of this node.
- getParent in interface NodeInfo
- getParent in interface com.icl.saxon.tinytree.TinyNodeImpl
- The Node object describing the containing element or root node.
getSequenceNumber
public long getSequenceNumber()
Get the node sequence number (in document order). Sequence numbers are monotonic but not
consecutive.
- getSequenceNumber in interface com.icl.saxon.tinytree.TinyNodeImpl
getSystemId
public String getSystemId()
Get the system id of this root node
- getSystemId in interface NodeInfo
- getSystemId in interface com.icl.saxon.tinytree.TinyNodeImpl
getSystemId
protected String getSystemId(int seq)
Get the system id of an element in the document
getUnparsedEntity
public String getUnparsedEntity(String name)
Get the unparsed entity with a given name
- getUnparsedEntity in interface DocumentInfo
name
- the name of the entity
- the URI of the entity if there is one, or empty string if not
isUsingNamespaces
protected boolean isUsingNamespaces()
determine whether this document uses namespaces
selectID
public NodeInfo selectID(String id)
Get the element with a given ID.
- selectID in interface DocumentInfo
id
- The unique ID of the required element, previously registered using registerID()
- The NodeInfo (always an Element) for the given ID if one has been registered,
otherwise null.
setKeyIndex
public void setKeyIndex(KeyManager keymanager,
int fingerprint,
Hashtable keyindex)
Set the index for a given key. The method is synchronized because the same document
can be used by several stylesheets at the same time.
- setKeyIndex in interface DocumentInfo
keymanager
- The key manager managing this keyfingerprint
- The fingerprint of the name of the key (unique with the key manager)keyindex
- the index, in the form of a Hashtable that
maps the key value to a set of nodes having that key value. Or the String
"under construction", indicating that the index is being built.
setLineNumber
protected void setLineNumber(int sequence,
int line)
Set the line number for an element. Ignored if line numbering is off.
setLineNumbering
public void setLineNumbering()
Set line numbering on
setSystemId
public void setSystemId(String uri)
Set the system id of this node
- setSystemId in interface com.icl.saxon.tinytree.TinyNodeImpl
setSystemId
protected void setSystemId(int seq,
String uri)
Set the system id of an element in the document
setUnparsedEntity
protected void setUnparsedEntity(String name,
String uri)
Set an unparsed entity URI associated with this document. For system use only, while
building the document.
truncate
protected void truncate(int nodes)
Truncate the tree: used in preview mode to delete an element after it has
been processed