| java.lang.Object net.sf.saxon.jdom.NodeWrapper net.sf.saxon.jdom.DocumentWrapper
DocumentWrapper | public class DocumentWrapper extends NodeWrapper implements DocumentInfo(Code) | | The root node of an XPath tree. (Or equivalently, the tree itself).
This class should have been named Root; it is used not only for the root of a document,
but also for the root of a result tree fragment, which is not constrained to contain a
single top-level element.
author: Michael H. Kay |
documentNumber | protected int documentNumber(Code) | | |
DocumentWrapper | public DocumentWrapper(Document doc, String baseURI, Configuration config)(Code) | | Create a Saxon wrapper for a JDOM document
Parameters: doc - The JDOM document Parameters: baseURI - The base URI for all the nodes in the document |
getConfiguration | public Configuration getConfiguration()(Code) | | Get the configuration previously set using setConfiguration
(or the default configuraton allocated automatically)
|
getDocumentNumber | public int getDocumentNumber()(Code) | | Get the unique document number
|
getNamePool | public NamePool getNamePool()(Code) | | Get the name pool used for the names in this document
|
getUnparsedEntity | public String[] getUnparsedEntity(String name)(Code) | | Get the unparsed entity with a given name
Parameters: name - the name of the entity null: JDOM does not provide access to unparsed entities |
selectID | public NodeInfo selectID(String id)(Code) | | Get the element with a given ID, if any
Parameters: id - the required ID value null: JDOM does not provide any information about attribute types. |
setConfiguration | public void setConfiguration(Configuration config)(Code) | | Set the configuration (containing the name pool used for all names in this document)
|
wrap | public NodeWrapper wrap(Object node)(Code) | | Wrap a node in the JDOM document.
Parameters: 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 |
|
|