net.sf.saxon.om

Class StrippedDocument

public class StrippedDocument extends StrippedNode implements DocumentInfo

A StrippedDocument represents a view of a real Document in which selected whitespace text nodes are treated as having been stripped.
Constructor Summary
StrippedDocument(DocumentInfo doc, Stripper stripper)
Method Summary
booleancontainsPreserveSpace()
Does the stripped document contain any xml:space="preserve" attributes?
ConfigurationgetConfiguration()
Get the configuration previously set using setConfiguration
intgetDocumentNumber()
Get the unique document number
NamePoolgetNamePool()
Get the name pool used for the names in this document
StrippergetStripper()
Get the document's stripper
String[]getUnparsedEntity(String name)
Get the unparsed entity with a given name
NodeInfoselectID(String id)
Get the element with a given ID, if any
StrippedNodewrap(NodeInfo node)
Create a wrapped node within this document

Constructor Detail

StrippedDocument

public StrippedDocument(DocumentInfo doc, Stripper stripper)

Method Detail

containsPreserveSpace

public boolean containsPreserveSpace()
Does the stripped document contain any xml:space="preserve" attributes?

getConfiguration

public Configuration getConfiguration()
Get the configuration previously set using setConfiguration

getDocumentNumber

public int getDocumentNumber()
Get the unique document number

getNamePool

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

getStripper

public Stripper getStripper()
Get the document's stripper

getUnparsedEntity

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

Parameters: name the name of the entity

selectID

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

Parameters: id the required ID value

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

wrap

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