public class JDOM2DocumentWrapper extends GenericTreeInfo implements ActiveSource
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config |
protected long |
documentNumber |
root| Constructor and Description |
|---|
JDOM2DocumentWrapper(org.jdom2.Document doc,
Configuration config)
Create a Saxon wrapper for a JDOM document
|
| Modifier and Type | Method and Description |
|---|---|
void |
deliver(Receiver receiver,
ParseOptions options)
Implement the ActiveSource interface
|
NodeInfo |
selectID(java.lang.String id,
boolean getParent)
Get the element with a given ID, if any
|
JDOM2NodeWrapper |
wrap(java.lang.Object node)
Wrap a node in the JDOM document.
|
getConfiguration, getDocumentNumber, getPublicId, getRootNode, getSpaceStrippingRule, getSystemId, getUnparsedEntity, getUnparsedEntityNames, getUserData, isStreamed, setConfiguration, setDocumentNumber, setRootNode, setSpaceStrippingRule, setSystemId, setUserDataprotected Configuration config
protected long documentNumber
public JDOM2DocumentWrapper(org.jdom2.Document doc,
Configuration config)
doc - The JDOM documentconfig - The Saxon Configurationpublic void deliver(Receiver receiver, ParseOptions options) throws XPathException
deliver in interface ActiveSourcereceiver - the receiver to which events representing the parsed XML document will be sentoptions - options for parsing the sourceXPathException - if parsing fails for any reason. The detailed diagnostics will
have been sent to the error reporter.public JDOM2NodeWrapper wrap(java.lang.Object node)
node - The node to be wrapped. This must be a node in the same document
(the system does not check for this).public NodeInfo selectID(java.lang.String id, boolean getParent)
selectID in interface TreeInfoselectID in class GenericTreeInfoid - the required ID valuegetParent - true if requesting the parent element of an ID-valued elementCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.