net.sf.saxon.om

Class TypeStrippedDocument

public class TypeStrippedDocument extends TypeStrippedNode implements DocumentInfo

A TypeStrippedDocument represents a view of a real Document in which all nodes are untyped
Constructor Summary
TypeStrippedDocument(DocumentInfo doc)
Create a type-stripped view of a document
Method Summary
ConfigurationgetConfiguration()
Get the configuration
longgetDocumentNumber()
Get the unique document number
NamePoolgetNamePool()
Get the name pool used for the names in this document
intgetTypeAnnotation()
Get the type annotation of this node.
String[]getUnparsedEntity(String name)
Get the unparsed entity with a given name
Iterator<String>getUnparsedEntityNames()
Get the list of unparsed entities defined in this document
NodeInfoselectID(String id, boolean getParent)
Get the element with a given ID, if any
TypeStrippedNodewrap(NodeInfo node)
Create a wrapped node within this document

Constructor Detail

TypeStrippedDocument

public TypeStrippedDocument(DocumentInfo doc)
Create a type-stripped view of a document

Parameters: doc the underlying document

Method Detail

getConfiguration

public Configuration getConfiguration()
Get the configuration

getDocumentNumber

public long getDocumentNumber()
Get the unique document number

getNamePool

public NamePool getNamePool()
Get the name pool used for the names in this document

getTypeAnnotation

public int getTypeAnnotation()
Get the type annotation of this node. This implementation always returns XS_UNTYPED.

Returns: XS_UNTYPED

getUnparsedEntity

public String[] getUnparsedEntity(String name)
Get the unparsed entity with a given name

Parameters: name the name of the entity

getUnparsedEntityNames

public Iterator<String> getUnparsedEntityNames()
Get the list of unparsed entities defined in this document

Returns: an Iterator, whose items are of type String, containing the names of all unparsed entities defined in this document. If there are no unparsed entities or if the information is not available then an empty iterator is returned

selectID

public NodeInfo selectID(String id, boolean getParent)
Get the element with a given ID, if any

Parameters: id the required ID value getParent

Returns: the element with the given ID value, or null if there is none.

wrap

public TypeStrippedNode wrap(NodeInfo node)
Create a wrapped node within this document