public class JDOMDocumentWrapper extends GenericTreeInfo
Constructor and Description |
---|
JDOMDocumentWrapper(org.jdom.Document doc,
Configuration config)
Create a Saxon wrapper for a JDOM document
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTyped()
Ask whether the document contains any nodes whose type annotation is anything other than
UNTYPED
|
NodeInfo |
selectID(String id,
boolean getParent)
Get the element with a given ID, if any
|
JDOMNodeWrapper |
wrap(Object node)
Wrap a node in the JDOM document.
|
getConfiguration, getDocumentNumber, getPublicId, getRootNode, getSystemId, getUnparsedEntity, getUnparsedEntityNames, getUserData, setConfiguration, setDocumentNumber, setRootNode, setSystemId, setUserData
public JDOMDocumentWrapper(org.jdom.Document doc, Configuration config)
doc
- The JDOM documentconfig
- The Saxon Configurationpublic JDOMNodeWrapper 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 boolean isTyped()
isTyped
in interface TreeInfo
isTyped
in class GenericTreeInfo
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.