|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.om.AbstractNode | +--com.icl.saxon.tinytree.TinyNodeImpl | +--com.icl.saxon.tinytree.TinyParentNodeImpl | +--com.icl.saxon.tinytree.TinyDocumentImpl
A node in the XML parse tree representing the Document itself (or equivalently, the root node of the Document).
Field Summary | |
protected int[] |
attCode
|
protected int[] |
attParent
|
protected java.lang.String[] |
attValue
|
protected char[] |
charBuffer
|
protected int |
charBufferLength
|
protected java.lang.StringBuffer |
commentBuffer
|
protected short[] |
depth
|
protected int |
lastLevelOneNode
|
protected int[] |
length
|
protected int[] |
nameCode
|
protected int[] |
namespaceCode
|
protected int[] |
namespaceParent
|
protected int[] |
next
|
protected byte[] |
nodeType
|
protected int |
numberOfAttributes
|
protected int |
numberOfNamespaces
|
protected int |
numberOfNodes
|
protected int[] |
offset
|
protected int[] |
prior
|
Fields inherited from class com.icl.saxon.tinytree.TinyNodeImpl |
document, nodeNr, 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 |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
TinyDocumentImpl()
|
Method Summary | |
protected void |
addAttribute(int parent0,
int code0,
java.lang.String type0,
java.lang.String value0)
|
protected void |
addNamespace(int parent0,
int nscode0)
|
protected void |
addNode(short type0,
int depth0,
int offset0,
int length0,
int nameCode0)
|
protected void |
appendChars(char[] chars,
int start,
int length)
|
void |
copy(Outputter out)
Copy this node to a given outputter |
void |
diagnosticDump()
Produce diagnostic print of main tree arrays |
protected void |
ensureAttributeCapacity()
|
protected void |
ensureNamespaceCapacity()
|
protected void |
ensureNodeCapacity()
|
protected void |
ensurePriorIndex()
On demand, make an index for quick access to preceding-sibling nodes |
java.lang.String |
generateId()
Get a character string that uniquely identifies this node within the document |
protected AxisEnumeration |
getAllElements(int fingerprint)
Get a list of all elements with a given name. |
protected TinyAttributeImpl |
getAttributeNode(int nr)
Make a (transient) attribute node from the array of attributes |
java.lang.String |
getBaseURI()
Get the base URI of this root node. |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
java.util.Hashtable |
getKeyIndex(KeyManager keymanager,
int fingerprint)
Get the index for a given key |
int |
getLineNumber()
Get the line number of this root node. |
protected int |
getLineNumber(int sequence)
Get the line number for an element. |
NamePool |
getNamePool()
Get the name pool used for the names in this document |
protected TinyNamespaceImpl |
getNamespaceNode(int nr)
Make a (transient) namespace node from the array of namespace declarations |
TinyNodeImpl |
getNode(int nr)
|
short |
getNodeType()
Return the type of node. |
NodeInfo |
getParent()
Find the parent node of this node. |
long |
getSequenceNumber()
Get the node sequence number (in document order). |
java.lang.String |
getSystemId()
Get the system id of this root node |
protected java.lang.String |
getSystemId(int seq)
Get the system id of an element in the document |
java.lang.String |
getUnparsedEntity(java.lang.String name)
Get the unparsed entity with a given name |
protected boolean |
isUsingNamespaces()
determine whether this document uses namespaces |
NodeInfo |
selectID(java.lang.String id)
Get the element with a given ID. |
void |
setKeyIndex(KeyManager keymanager,
int fingerprint,
java.util.Hashtable keyindex)
Set the index for a given key. |
protected void |
setLineNumber(int sequence,
int line)
Set the line number for an element. |
void |
setLineNumbering()
Set line numbering on |
void |
setNamePool(NamePool pool)
Set the name pool used for all names in this document |
protected void |
setSystemId(int seq,
java.lang.String uri)
Set the system id of an element in the document |
void |
setSystemId(java.lang.String uri)
Set the system id of this node |
protected void |
setUnparsedEntity(java.lang.String name,
java.lang.String uri)
Set an unparsed entity URI associated with this document. |
protected void |
truncate(int nodes)
Truncate the tree: used in preview mode to delete an element after it has been processed |
Methods inherited from class com.icl.saxon.tinytree.TinyParentNodeImpl |
copyStringValue, getStringValue, hasChildNodes |
Methods inherited from class com.icl.saxon.tinytree.TinyNodeImpl |
compareOrder, getAttributeValue, getAttributeValue, getDisplayName, getEnumeration, getFingerprint, getLocalName, getNameCode, getOriginatingNode, getPrefix, getURI, hasAttributes, isSameNode, outputNamespaceNodes, setLineNumber, setParentNode |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface com.icl.saxon.om.NodeInfo |
compareOrder, copyStringValue, getAttributeValue, getAttributeValue, getDisplayName, getEnumeration, getFingerprint, getLocalName, getNameCode, getPrefix, getStringValue, getURI, hasChildNodes, isSameNode, outputNamespaceNodes |
Methods inherited from interface org.w3c.dom.Document |
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Field Detail |
protected char[] charBuffer
protected int charBufferLength
protected java.lang.StringBuffer commentBuffer
protected int numberOfNodes
protected int lastLevelOneNode
protected byte[] nodeType
protected short[] depth
protected int[] next
protected int[] offset
protected int[] length
protected int[] nameCode
protected int[] prior
protected int numberOfAttributes
protected int[] attParent
protected int[] attCode
protected java.lang.String[] attValue
protected int numberOfNamespaces
protected int[] namespaceParent
protected int[] namespaceCode
Constructor Detail |
public TinyDocumentImpl()
Method Detail |
public void setNamePool(NamePool pool)
setNamePool
in interface DocumentInfo
public NamePool getNamePool()
getNamePool
in interface DocumentInfo
protected void ensureNodeCapacity()
protected void ensureAttributeCapacity()
protected void ensureNamespaceCapacity()
protected void addNode(short type0, int depth0, int offset0, int length0, int nameCode0)
protected void appendChars(char[] chars, int start, int length)
protected void truncate(int nodes)
protected void ensurePriorIndex()
protected void addAttribute(int parent0, int code0, java.lang.String type0, java.lang.String value0)
protected void addNamespace(int parent0, int nscode0)
public TinyNodeImpl getNode(int nr)
public long getSequenceNumber()
getSequenceNumber
in class TinyNodeImpl
protected TinyAttributeImpl getAttributeNode(int nr)
protected boolean isUsingNamespaces()
protected TinyNamespaceImpl getNamespaceNode(int nr)
public void setSystemId(java.lang.String uri)
setSystemId
in interface javax.xml.transform.Source
setSystemId
in class TinyNodeImpl
public java.lang.String getSystemId()
getSystemId
in interface NodeInfo
getSystemId
in class TinyNodeImpl
com.icl.saxon.om.NodeInfo
public java.lang.String getBaseURI()
getBaseURI
in interface NodeInfo
getBaseURI
in class TinyNodeImpl
protected void setSystemId(int seq, java.lang.String uri)
protected java.lang.String getSystemId(int seq)
public void setLineNumbering()
protected void setLineNumber(int sequence, int line)
protected int getLineNumber(int sequence)
public int getLineNumber()
getLineNumber
in interface NodeInfo
getLineNumber
in class TinyNodeImpl
public final short getNodeType()
getNodeType
in interface NodeInfo
public NodeInfo getParent()
getParent
in interface NodeInfo
getParent
in class TinyNodeImpl
public DocumentInfo getDocumentRoot()
getDocumentRoot
in interface NodeInfo
getDocumentRoot
in class TinyNodeImpl
public java.lang.String generateId()
generateId
in interface NodeInfo
generateId
in class TinyNodeImpl
protected AxisEnumeration getAllElements(int fingerprint)
public NodeInfo selectID(java.lang.String id)
selectID
in interface DocumentInfo
id
- The unique ID of the required element, previously registered using registerID()public java.util.Hashtable getKeyIndex(KeyManager keymanager, int fingerprint)
getKeyIndex
in interface DocumentInfo
keymanager
- The key manager managing this keypublic void setKeyIndex(KeyManager keymanager, int fingerprint, java.util.Hashtable keyindex)
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.protected void setUnparsedEntity(java.lang.String name, java.lang.String uri)
public java.lang.String getUnparsedEntity(java.lang.String name)
getUnparsedEntity
in interface DocumentInfo
name
- the name of the entitypublic void copy(Outputter out) throws javax.xml.transform.TransformerException
copy
in interface NodeInfo
public void diagnosticDump()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |