Package net.sf.saxon.tree.wrapper
Class TypeStrippedDocument
- java.lang.Object
-
- net.sf.saxon.om.GenericTreeInfo
-
- net.sf.saxon.tree.wrapper.TypeStrippedDocument
-
- All Implemented Interfaces:
javax.xml.transform.Source
,TreeInfo
public class TypeStrippedDocument extends GenericTreeInfo
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
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 NodeInfo
selectID(java.lang.String id, boolean getParent)
Get the element with a given ID, if anyTypeStrippedNode
wrap(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
-
-
-
-
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- Parameters:
node
- the node to be wrapped- Returns:
- the wrapped node
-
selectID
public NodeInfo selectID(java.lang.String id, boolean getParent)
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.
-
-