net.sf.saxon.jdom
Class DocumentWrapper
- DocumentInfo, Item, NodeInfo, Source, Item, NodeInfo, PullEvent, SiblingCountingNode, ValueRepresentation, VirtualNode
public class DocumentWrapper
The root node of an XPath tree that wraps a JDOM document node.
atomize , compareOrder , copy , equals , generateId , getAttributeValue , getBaseURI , getConfiguration , getDeclaredNamespaces , getDisplayName , getDocumentNumber , getDocumentRoot , getFingerprint , getLineNumber , getLocalPart , getNameCode , getNamePool , getNodeKind , getParent , getPrefix , getRoot , getSiblingPosition , getStringValue , getStringValueCS , getSystemId , getTypeAnnotation , getTypedValue , getURI , getUnderlyingNode , hasChildNodes , hashCode , isSameNodeInfo , iterateAxis , iterateAxis , makeWrapper , makeWrapper , setSystemId |
baseURI
protected String baseURI
documentNumber
protected int documentNumber
DocumentWrapper
public DocumentWrapper(Document doc,
String baseURI,
Configuration config)
Create a Saxon wrapper for a JDOM document
doc
- The JDOM documentbaseURI
- The base URI for all the nodes 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
- null: JDOM does not provide access to unparsed entities
selectID
public NodeInfo selectID(String id)
Get the element with a given ID, if any
- selectID in interface DocumentInfo
id
- the required ID value
- null: JDOM does not provide any information about attribute types.
setConfiguration
public void setConfiguration(Configuration config)
Set the configuration (containing the name pool used for all names in this document)
wrap
public NodeWrapper wrap(Object node)
Wrap a node in the JDOM document.
node
- The node to be wrapped. This must be a node in the same document
(the system does not check for this).
- the wrapping NodeInfo object