Package net.sf.saxon.tree.wrapper
Class TypeStrippedDocument
java.lang.Object
net.sf.saxon.om.GenericTreeInfo
net.sf.saxon.tree.wrapper.TypeStrippedDocument
A TypeStrippedDocument represents a view of a real Document in which all nodes are
untyped
-
Field Summary
Fields inherited from class net.sf.saxon.om.GenericTreeInfo
root
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a type-stripped view of a document -
Method Summary
Modifier and TypeMethodDescriptionGet the durability of nodes in the tree.Get the element with a given ID, if anyCreate a wrapped node within this documentMethods inherited from class net.sf.saxon.om.GenericTreeInfo
getConfiguration, getDocumentNumber, getPublicId, getRootNode, getSpaceStrippingRule, getSystemId, getUnparsedEntity, getUnparsedEntityNames, getUserData, isMutable, isStreamed, setConfiguration, setDocumentNumber, setDurability, setRootNode, setSpaceStrippingRule, setSystemId, setUserData
-
Constructor Details
-
TypeStrippedDocument
Create a type-stripped view of a document- Parameters:
doc
- the underlying document
-
-
Method Details
-
wrap
Create a wrapped node within this document- Parameters:
node
- the node to be wrapped- Returns:
- the wrapped node
-
getDurability
Description copied from interface:TreeInfo
Get the durability of nodes in the tree. This affects how they are handled in a memo function cache, to optimize memory and garbage collection. By default, all nodes are considered durable unless otherwise specified- Specified by:
getDurability
in interfaceTreeInfo
- Overrides:
getDurability
in classGenericTreeInfo
- Returns:
- the durability property of this node tree
-
selectID
Get the element with a given ID, if any- Specified by:
selectID
in interfaceTreeInfo
- Overrides:
selectID
in classGenericTreeInfo
- Parameters:
id
- the required ID valuegetParent
- true if running the element-with-id() function rather than the id() function; the difference is that in the case of an element of type xs:ID, the parent of the element should be returned, not the element itself.- Returns:
- the element with the given ID value, or null if there is none.
-