public class TypeStrippedDocument extends GenericTreeInfo
Constructor and Description |
---|
TypeStrippedDocument(TreeInfo doc)
Create a type-stripped view of a 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
|
TypeStrippedNode |
wrap(NodeInfo node)
Create a wrapped node within this document
|
getConfiguration, getDocumentNumber, getPublicId, getRootNode, getSystemId, getUnparsedEntity, getUnparsedEntityNames, getUserData, isStreamed, setConfiguration, setDocumentNumber, setRootNode, setSystemId, setUserData
public TypeStrippedDocument(TreeInfo doc)
doc
- the underlying documentpublic TypeStrippedNode wrap(NodeInfo node)
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.