Package net.sf.saxon.tree.wrapper
Class TypeStrippedDocument
- java.lang.Object
-
- net.sf.saxon.om.GenericTreeInfo
-
- net.sf.saxon.tree.wrapper.TypeStrippedDocument
-
public class TypeStrippedDocument extends GenericTreeInfo
A TypeStrippedDocument represents a view of a real Document in which all nodes are untyped
-
-
Field Summary
Fields Modifier and Type Field Description (package private) TreeInfounderlyingTree-
Fields inherited from class net.sf.saxon.om.GenericTreeInfo
root
-
-
Constructor Summary
Constructors Constructor Description TypeStrippedDocument(TreeInfo doc)Create a type-stripped view of a document
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTyped()Ask whether the document contains any nodes whose type annotation is anything other than UNTYPEDNodeInfoselectID(String id, boolean getParent)Get the element with a given ID, if anyTypeStrippedNodewrap(NodeInfo node)Create a wrapped node within this document-
Methods 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 Detail
-
underlyingTree
TreeInfo underlyingTree
-
-
Constructor Detail
-
TypeStrippedDocument
public TypeStrippedDocument(TreeInfo doc)
Create a type-stripped view of a document- Parameters:
doc- the underlying document
-
-
Method Detail
-
wrap
public TypeStrippedNode wrap(NodeInfo node)
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
public NodeInfo selectID(String id, boolean getParent)
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.
-
-