Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
net.sf.saxon.tree.NodeImpl
net.sf.saxon.tree.ParentNodeImpl
net.sf.saxon.tree.DocumentImpl
Field Summary |
Fields inherited from class net.sf.saxon.tree.ParentNodeImpl | |
sequence |
Fields inherited from class net.sf.saxon.tree.NodeImpl | |
NODE_LETTER , index , parent |
Fields inherited from interface net.sf.saxon.om.NodeInfo | |
ALL_NAMESPACES , EMPTY_NAMESPACE_LIST , IS_DTD_TYPE , IS_NILLED , LOCAL_NAMESPACES , NO_NAMESPACES |
Fields inherited from interface net.sf.saxon.om.NodeInfo | |
ALL_NAMESPACES , EMPTY_NAMESPACE_LIST , IS_DTD_TYPE , IS_NILLED , LOCAL_NAMESPACES , NO_NAMESPACES |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation | |
EMPTY_VALUE_ARRAY |
Constructor Summary | |
Method Summary | |
void | |
void |
|
String |
|
Configuration |
|
ElementImpl |
|
int |
|
DocumentInfo |
|
int |
|
NamePool |
|
NodeInfo |
|
int |
|
NodeInfo |
|
NodeInfo |
|
String |
|
String[] |
|
NodeInfo |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class net.sf.saxon.tree.ParentNodeImpl | |
addChild , compact , enumerateChildren , getFirstChild , getLastChild , getNthChild , getSequenceNumber , getStringValue , getStringValueCS , hasChildNodes , useChildrenArray |
public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException
Copy this node to a given outputter
public void generateId(FastStringBuffer buffer)
Get a character string that uniquely identifies this node
- Specified by:
- generateId in interface NodeInfo
- Overrides:
- generateId in interface NodeImpl
- Parameters:
buffer
- a buffer into which will be placed a string based on the document number
public String getBaseURI()
Get the base URI of this root node.
- Specified by:
- getBaseURI in interface NodeInfo
- Overrides:
- getBaseURI in interface NodeImpl
public Configuration getConfiguration()
Get the configuration previously set using setConfiguration
- Specified by:
- getConfiguration in interface NodeInfo
- Overrides:
- getConfiguration in interface NodeImpl
public ElementImpl getDocumentElement()
Get the root (outermost) element.
- Returns:
- the Element node for the outermost element of the document.
public int getDocumentNumber()
Get the unique document number
- Specified by:
- getDocumentNumber in interface NodeInfo
- Overrides:
- getDocumentNumber in interface NodeImpl
public DocumentInfo getDocumentRoot()
Get the root (document) node
- Specified by:
- getDocumentRoot in interface NodeInfo
- Overrides:
- getDocumentRoot in interface NodeImpl
- Returns:
- the DocumentInfo representing this document
public int getLineNumber()
Get the line number of this root node.
- Specified by:
- getLineNumber in interface NodeInfo
- Overrides:
- getLineNumber in interface NodeImpl
- Returns:
- 0 always
public NamePool getNamePool()
Get the name pool used for the names in this document
- Specified by:
- getNamePool in interface NodeInfo
- Overrides:
- getNamePool in interface NodeImpl
public final NodeInfo getNextSibling()
Get next sibling - always null
- Overrides:
- getNextSibling in interface NodeImpl
- Returns:
- null
public final int getNodeKind()
Return the type of node.
- Specified by:
- getNodeKind in interface NodeInfo
- Returns:
- Type.DOCUMENT (always)
public final NodeInfo getPreviousSibling()
Get previous sibling - always null
- Overrides:
- getPreviousSibling in interface NodeImpl
- Returns:
- null
public NodeInfo getRoot()
Get the root node
- Returns:
- the NodeInfo representing the root of this tree
public String getSystemId()
Get the system id of this root node
- Specified by:
- getSystemId in interface NodeInfo
- Overrides:
- getSystemId in interface NodeImpl
public String[] getUnparsedEntity(String name)
Get the unparsed entity with a given name
- Specified by:
- getUnparsedEntity in interface DocumentInfo
- 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
public NodeInfo selectID(String id)
Get the element with a given ID.
- Specified by:
- selectID in interface DocumentInfo
- 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.
public void setBaseURI(String uri)
Set the base URI of this document node
public void setConfiguration(Configuration config)
Set the Configuration that contains this document
public void setLineNumbering()
Set line numbering on
public void setSystemId(String uri)
Set the system id of this node
- Overrides:
- setSystemId in interface NodeImpl