net.sf.saxon.tree
public final class DocumentImpl extends ParentNodeImpl implements DocumentInfo
Constructor Summary | |
---|---|
DocumentImpl() |
Method Summary | |
---|---|
void | copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId)
Copy this node to a given outputter |
void | generateId(FastStringBuffer buffer)
Get a character string that uniquely identifies this node |
AxisIterator | getAllElements(int fingerprint)
Get a list of all elements with a given name fingerprint |
String | getBaseURI()
Get the base URI of this root node. |
Configuration | getConfiguration()
Get the configuration previously set using setConfiguration |
ElementImpl | getDocumentElement()
Get the root (outermost) element. |
int | getDocumentNumber()
Get the unique document number |
DocumentInfo | getDocumentRoot()
Get the root (document) node |
int | getLineNumber(int sequence)
Get the line number for an element. |
int | getLineNumber()
Get the line number of this root node. |
NamePool | getNamePool()
Get the name pool used for the names in this document |
NodeInfo | getNextSibling()
Get next sibling - always null |
int | getNodeKind()
Return the type of node. |
NodeInfo | getPreviousSibling()
Get previous sibling - always null |
NodeInfo | getRoot()
Get the root node |
String | getSystemId()
Get the system id of this root node |
String | getSystemId(int seq)
Get the system id of an element in the document |
String[] | getUnparsedEntity(String name)
Get the unparsed entity with a given name |
NodeInfo | selectID(String id)
Get the element with a given ID. |
void | setConfiguration(Configuration config)
Set the Configuration that contains this document |
void | setDocumentElement(ElementImpl e)
Set the top-level element of the document (variously called the root element or the
document element). |
void | setLineNumber(int sequence, int line)
Set the line number for an element. |
void | setLineNumbering()
Set line numbering on |
void | setSystemId(String uri)
Set the system id of this node |
void | setSystemId(int seq, String uri)
Set the system id of an element in the document |
void | setUnparsedEntity(String name, String uri, String publicId)
Set an unparsed entity URI associated with this document. |
Parameters: buffer a buffer into which will be placed a string based on the document number
Returns: the Element node for the outermost element of the document.
Returns: the DocumentInfo representing this document
Returns: 0 always
Returns: null
Returns: Type.DOCUMENT (always)
Returns: null
Returns: the NodeInfo representing the root of this tree
Parameters: name the name of the entity
Returns: if the entity exists, return an array of two Strings, the first holding the system ID of the entity, the second holding the public ID if there is one, or null if not. If the entity does not exist, return null. * @return the URI of the entity if there is one, or empty string if not
Parameters: id The unique ID of the required element, previously registered using registerID()
Returns: The NodeInfo for the given ID if one has been registered, otherwise null.
Parameters: e the top-level element