public class JDOM2DocumentWrapper extends GenericTreeInfo
Modifier and Type | Field and Description |
---|---|
protected Configuration |
config |
protected long |
documentNumber |
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(String id,
boolean getParent)
Get the element with a given ID, if any
|
JDOM2NodeWrapper |
wrap(Object node)
Wrap a node in the JDOM document.
|
getConfiguration, getDocumentNumber, getPublicId, getRootNode, getSystemId, getUnparsedEntity, getUnparsedEntityNames, getUserData, isTyped, setConfiguration, setDocumentNumber, setRootNode, 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(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(String id, boolean getParent)
selectID
in interface TreeInfo
selectID
in class GenericTreeInfo
id
- the required ID valuegetParent
- Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.