copy
public void copy(Outputter out)
throws TransformerException
Copy this node to a given outputter
- copy in interface NodeInfo
generateId
public String generateId()
Get a character string that uniquely identifies this node within the document
- generateId in interface NodeInfo
- generateId in interface NodeImpl
- the empty string
getAllElements
protected AxisEnumeration getAllElements(int fingerprint)
Get a list of all elements with a given name fingerprint
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 NodeImpl
getCharacterBuffer
public final StringBuffer getCharacterBuffer()
Get the character buffer
getDocumentElement
public Element getDocumentElement()
Get the root (outermost) element.
- getDocumentElement in interface NodeImpl
- the Element node for the outermost element of the 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 keyfingerprint
- The fingerprint of the name of the key (unique with the key manager)
- The index, if one has been built, in the form of a Hashtable that
maps the key value to a Vector 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 NodeImpl
- 0 always
getLineNumber
protected int getLineNumber(int sequence)
Get the line number for an element. Return -1 if line numbering is off.
getNextSibling
public final Node getNextSibling()
Get next sibling - always null
- getNextSibling in interface NodeImpl
- null
getNodeFactory
public NodeFactory getNodeFactory()
Get the node factory that was used to build this document
getNodeType
public final short getNodeType()
Return the type of node.
- getNodeType in interface NodeInfo
- NodeInfo.ROOT (always)
getPreviousSibling
public final Node getPreviousSibling()
Get previous sibling - always null
- getPreviousSibling in interface NodeImpl
- null
getSystemId
public String getSystemId()
Get the system id of this root node
- getSystemId in interface NodeInfo
- getSystemId in interface NodeImpl
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
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 for the given ID if one has been registered, otherwise null.
setCharacterBuffer
protected void setCharacterBuffer(StringBuffer buffer)
Set the character buffer
setDocumentElement
protected void setDocumentElement(ElementImpl e)
Set the top-level element of the document (variously called the root element or the
document element). Note that a DocumentImpl may represent the root of a result tree
fragment, in which case there is no document element.
e
- the top-level element
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 Vector 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
setNodeFactory
public void setNodeFactory(NodeFactory factory)
Set the node factory that was used to build this document
setSystemId
public void setSystemId(String uri)
Set the system id of this node
- setSystemId in interface NodeImpl
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.