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 -
Constructor Summary
ConstructorsConstructorDescriptionCreate a type-stripped view of a document -
Method Summary
Modifier and TypeMethodDescriptionbooleanisTyped()Ask whether the document contains any nodes whose type annotation is anything other than UNTYPEDGet 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, isStreamed, setConfiguration, setDocumentNumber, setRootNode, setSpaceStrippingRule, setSystemId, setUserData
-
Field Details
-
underlyingTree
TreeInfo underlyingTree
-
-
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 -
isTyped
public boolean isTyped()Ask whether the document contains any nodes whose type annotation is anything other than UNTYPED- Specified by:
isTypedin interfaceTreeInfo- Overrides:
isTypedin classGenericTreeInfo- Returns:
- true if the document contains elements whose type is other than UNTYPED
-
selectID
Get the element with a given ID, if any- Specified by:
selectIDin interfaceTreeInfo- Overrides:
selectIDin classGenericTreeInfo- Parameters:
id- the required ID valuegetParent-- Returns:
- the element with the given ID value, or null if there is none.
-