Item
, NodeInfo
, PullEvent
, javax.xml.transform.Source
, ValueRepresentation
DocumentImpl
, DocumentWrapper
, DocumentWrapper
, DocumentWrapper
, DocumentWrapper
, StrippedDocument
, TextFragmentValue
, TinyDocumentImpl
, UnconstructedDocument
, VirtualDocumentCopy
public interface DocumentInfo extends NodeInfo
The interface supports two methods in addition to those for NodeInfo: one to find
elements given their ID value, and one to locate unparsed entities. In addition,
document nodes have an important property that is not true of nodes in general:
two distinct Java DocumentInfo objects never represent the same document node.
So the Java "==" operator returns the same result as the NodeInfo.isSameNodeInfo(net.sf.saxon.om.NodeInfo)
method.
This interface is part of the Saxon public API, and as such (from Saxon8.4 onwards) those methods that form part of the stable public API are labelled with a JavaDoc "since" tag to indicate when they were added to the product.
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
EMPTY_VALUE_ARRAY
Modifier and Type | Method | Description |
---|---|---|
java.lang.String[] |
getUnparsedEntity(java.lang.String name) |
Get the unparsed entity with a given name
|
java.util.Iterator |
getUnparsedEntityNames() |
Get the list of unparsed entities defined in this document
|
NodeInfo |
selectID(java.lang.String id) |
Get the element with a given ID, if any
|
getStringValueCS, getTypedValue
atomize, compareOrder, copy, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeKind, getParent, getPrefix, getRoot, getStringValue, getSystemId, getTypeAnnotation, getURI, hasChildNodes, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, iterateAxis
NodeInfo selectID(java.lang.String id)
id
- the required ID valuejava.util.Iterator getUnparsedEntityNames()
java.lang.String[] getUnparsedEntity(java.lang.String name)
name
- the name of the entity