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(java.lang.String id,
boolean getParent)
Get the element with a given ID, if any
|
JDOMNodeWrapper |
wrap(java.lang.Object node)
Wrap a node in the JDOM document.
|
getConfiguration, getDocumentNumber, getPublicId, getRootNode, getSystemId, getUnparsedEntity, getUnparsedEntityNames, getUserData, isStreamed, setConfiguration, setDocumentNumber, setRootNode, setSystemId, setUserData
public JDOMDocumentWrapper(org.jdom.Document doc, Configuration config)
doc
- The JDOM documentconfig
- The Saxon Configurationpublic JDOMNodeWrapper 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 boolean isTyped()
isTyped
in interface TreeInfo
isTyped
in class GenericTreeInfo
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-2018 Saxonica Limited. All rights reserved.