public class JDOM2DocumentWrapper extends GenericTreeInfo
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 |
---|---|
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, isTyped, setConfiguration, setDocumentNumber, setRootNode, setSpaceStrippingRule, setSystemId, setUserData
protected Configuration config
protected long documentNumber
public JDOM2DocumentWrapper(org.jdom2.Document doc, Configuration config)
doc
- The JDOM documentconfig
- The Saxon Configurationpublic 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 TreeInfo
selectID
in class GenericTreeInfo
id
- the required ID valuegetParent
- Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.