Top Description Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.dom

public Class XSLTCDTMManager

extends DTMManagerDefault
Class Inheritance
Imports
javax.xml.stream.XMLEventReader, .XMLStreamReader, javax.xml.transform.Source, javax.xml.transform.dom.DOMSource, javax.xml.transform.sax.SAXSource, javax.xml.transform.stream.StreamSource, javax.xml.transform.stax.StAXSource, com.sun.org.apache.xml.internal.dtm.DTM, .DTMException, .DTMWSFilter, com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase, .DTMManagerDefault, com.sun.org.apache.xml.internal.res.XMLErrorResources, .XMLMessages, com.sun.org.apache.xml.internal.utils.SystemIDResolver, com.sun.org.apache.xalan.internal.xsltc.trax.DOM2SAX, .StAXEvent2SAX, .StAXStream2SAX, org.xml.sax.InputSource, .SAXNotRecognizedException, .SAXNotSupportedException, .XMLReader

The default implementation for the DTMManager.

Field Summary

Modifier and TypeField and Description
private static final boolean
DEBUG

Hides com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.DEBUG.

Set this to true if you want basic diagnostics
private static final boolean
DUMPTREE

Hides com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.DUMPTREE.

Set this to true if you want a dump of the DTM after creation
Inherited from com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault:
m_defaultHandlerm_dtmsm_readerManager

Constructor Summary

AccessConstructor and Description
public
XSLTCDTMManager()

Constructor DTMManagerDefault

Method Summary

Modifier and TypeMethod and Description
public static XSLTCDTMManager
createNewDTMManagerInstance()

Creates a new instance of the XSLTC DTM Manager service.

public DTM

Returns:

a non-null DTM reference.
getDTM
(Source
the specification of the source object.
source
,
boolean
true if the returned DTM must be unique, probably because it is going to be mutated.
unique
,
DTMWSFilter
Enables filtering of whitespace nodes, and may be null.
whiteSpaceFilter
,
boolean
true if the DTM should be built incrementally, if possible.
incremental
,
boolean
true if the caller considers it worth it to use indexing schemes.
doIndexing
)

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTM.

Get an instance of a DTM, loaded with the content from the specified source.

public DTM

Returns:

a non-null DTM reference.
getDTM
(Source
the specification of the source object.
source
,
boolean
true if the returned DTM must be unique, probably because it is going to be mutated.
unique
,
DTMWSFilter
Enables filtering of whitespace nodes, and may be null.
whiteSpaceFilter
,
boolean
true if the DTM should be built incrementally, if possible.
incremental
,
boolean
true if the caller considers it worth it to use indexing schemes.
doIndexing
,
boolean
true if the id index table should be built.
buildIdIndex
)

Get an instance of a DTM, loaded with the content from the specified source.

public DTM

Returns:

a non-null DTM reference.
getDTM
(Source
the specification of the source object.
source
,
boolean
true if the returned DTM must be unique, probably because it is going to be mutated.
unique
,
DTMWSFilter
Enables filtering of whitespace nodes, and may be null.
whiteSpaceFilter
,
boolean
true if the DTM should be built incrementally, if possible.
incremental
,
boolean
true if the caller considers it worth it to use indexing schemes.
doIndexing
,
boolean
true if the id index table should be built.
buildIdIndex
,
boolean
true if we want to use a separate ExpandedNameTable for this DTM.
newNameTable
)

Get an instance of a DTM, loaded with the content from the specified source.

public DTM

Returns:

a non-null DTM reference.
getDTM
(Source
the specification of the source object.
source
,
boolean
true if the returned DTM must be unique, probably because it is going to be mutated.
unique
,
DTMWSFilter
Enables filtering of whitespace nodes, and may be null.
whiteSpaceFilter
,
boolean
true if the DTM should be built incrementally, if possible.
incremental
,
boolean
true if the caller considers it worth it to use indexing schemes.
doIndexing
,
boolean
true if source is a SAXSource object that has an XMLReader, that was specified by the user.
hasUserReader
,
int
Specifies initial size of tables that represent the DTM
size
,
boolean
true if the id index table should be built.
buildIdIndex
)

Get an instance of a DTM, loaded with the content from the specified source.

public DTM

Returns:

a non-null DTM reference.
getDTM
(Source
the specification of the source object.
source
,
boolean
true if the returned DTM must be unique, probably because it is going to be mutated.
unique
,
DTMWSFilter
Enables filtering of whitespace nodes, and may be null.
whiteSpaceFilter
,
boolean
true if the DTM should be built incrementally, if possible.
incremental
,
boolean
true if the caller considers it worth it to use indexing schemes.
doIndexing
,
boolean
true if source is a SAXSource object that has an XMLReader, that was specified by the user.
hasUserReader
,
int
Specifies initial size of tables that represent the DTM
size
,
boolean
true if the id index table should be built.
buildIdIndex
,
boolean
true if we want to use a separate ExpandedNameTable for this DTM.
newNameTable
)

Get an instance of a DTM, loaded with the content from the specified source.

public static XSLTCDTMManager
newInstance()

Obtain a new instance of a DTMManager.

Inherited from com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault:
addDTMaddDTMcreateDocumentFragmentcreateDTMIteratorcreateDTMIteratorcreateDTMIteratorcreateDTMIteratorgetDTMgetDTMHandleFromNodegetDTMIdentitygetExpandedNameTablegetFirstFreeDTMIDgetXMLReaderreleasereleaseXMLReader

Field Detail

DEBUGback to summary
private static final boolean DEBUG

Hides com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.DEBUG.

Set this to true if you want basic diagnostics

DUMPTREEback to summary
private static final boolean DUMPTREE

Hides com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.DUMPTREE.

Set this to true if you want a dump of the DTM after creation

Constructor Detail

XSLTCDTMManagerback to summary
public XSLTCDTMManager()

Constructor DTMManagerDefault

Method Detail

createNewDTMManagerInstanceback to summary
public static XSLTCDTMManager createNewDTMManagerInstance()

Creates a new instance of the XSLTC DTM Manager service. Creates a new instance of the default class com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.

getDTMback to summary
public DTM getDTM(Source source, boolean unique, DTMWSFilter whiteSpaceFilter, boolean incremental, boolean doIndexing)

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTM.

Get an instance of a DTM, loaded with the content from the specified source. If the unique flag is true, a new instance will always be returned. Otherwise it is up to the DTMManager to return a new instance or an instance that it already created and may be being used by someone else. (I think more parameters will need to be added for error handling, and entity resolution).

Parameters
source:Source

the specification of the source object.

unique:boolean

true if the returned DTM must be unique, probably because it is going to be mutated.

whiteSpaceFilter:DTMWSFilter

Enables filtering of whitespace nodes, and may be null.

incremental:boolean

true if the DTM should be built incrementally, if possible.

doIndexing:boolean

true if the caller considers it worth it to use indexing schemes.

Returns:DTM

a non-null DTM reference.

Annotations
@Override
getDTMback to summary
public DTM getDTM(Source source, boolean unique, DTMWSFilter whiteSpaceFilter, boolean incremental, boolean doIndexing, boolean buildIdIndex)

Get an instance of a DTM, loaded with the content from the specified source. If the unique flag is true, a new instance will always be returned. Otherwise it is up to the DTMManager to return a new instance or an instance that it already created and may be being used by someone else. (I think more parameters will need to be added for error handling, and entity resolution).

Parameters
source:Source

the specification of the source object.

unique:boolean

true if the returned DTM must be unique, probably because it is going to be mutated.

whiteSpaceFilter:DTMWSFilter

Enables filtering of whitespace nodes, and may be null.

incremental:boolean

true if the DTM should be built incrementally, if possible.

doIndexing:boolean

true if the caller considers it worth it to use indexing schemes.

buildIdIndex:boolean

true if the id index table should be built.

Returns:DTM

a non-null DTM reference.

getDTMback to summary
public DTM getDTM(Source source, boolean unique, DTMWSFilter whiteSpaceFilter, boolean incremental, boolean doIndexing, boolean buildIdIndex, boolean newNameTable)

Get an instance of a DTM, loaded with the content from the specified source. If the unique flag is true, a new instance will always be returned. Otherwise it is up to the DTMManager to return a new instance or an instance that it already created and may be being used by someone else. (I think more parameters will need to be added for error handling, and entity resolution).

Parameters
source:Source

the specification of the source object.

unique:boolean

true if the returned DTM must be unique, probably because it is going to be mutated.

whiteSpaceFilter:DTMWSFilter

Enables filtering of whitespace nodes, and may be null.

incremental:boolean

true if the DTM should be built incrementally, if possible.

doIndexing:boolean

true if the caller considers it worth it to use indexing schemes.

buildIdIndex:boolean

true if the id index table should be built.

newNameTable:boolean

true if we want to use a separate ExpandedNameTable for this DTM.

Returns:DTM

a non-null DTM reference.

getDTMback to summary
public DTM getDTM(Source source, boolean unique, DTMWSFilter whiteSpaceFilter, boolean incremental, boolean doIndexing, boolean hasUserReader, int size, boolean buildIdIndex)

Get an instance of a DTM, loaded with the content from the specified source. If the unique flag is true, a new instance will always be returned. Otherwise it is up to the DTMManager to return a new instance or an instance that it already created and may be being used by someone else. (I think more parameters will need to be added for error handling, and entity resolution).

Parameters
source:Source

the specification of the source object.

unique:boolean

true if the returned DTM must be unique, probably because it is going to be mutated.

whiteSpaceFilter:DTMWSFilter

Enables filtering of whitespace nodes, and may be null.

incremental:boolean

true if the DTM should be built incrementally, if possible.

doIndexing:boolean

true if the caller considers it worth it to use indexing schemes.

hasUserReader:boolean

true if source is a SAXSource object that has an XMLReader, that was specified by the user.

size:int

Specifies initial size of tables that represent the DTM

buildIdIndex:boolean

true if the id index table should be built.

Returns:DTM

a non-null DTM reference.

getDTMback to summary
public DTM getDTM(Source source, boolean unique, DTMWSFilter whiteSpaceFilter, boolean incremental, boolean doIndexing, boolean hasUserReader, int size, boolean buildIdIndex, boolean newNameTable)

Get an instance of a DTM, loaded with the content from the specified source. If the unique flag is true, a new instance will always be returned. Otherwise it is up to the DTMManager to return a new instance or an instance that it already created and may be being used by someone else. (I think more parameters will need to be added for error handling, and entity resolution).

Parameters
source:Source

the specification of the source object.

unique:boolean

true if the returned DTM must be unique, probably because it is going to be mutated.

whiteSpaceFilter:DTMWSFilter

Enables filtering of whitespace nodes, and may be null.

incremental:boolean

true if the DTM should be built incrementally, if possible.

doIndexing:boolean

true if the caller considers it worth it to use indexing schemes.

hasUserReader:boolean

true if source is a SAXSource object that has an XMLReader, that was specified by the user.

size:int

Specifies initial size of tables that represent the DTM

buildIdIndex:boolean

true if the id index table should be built.

newNameTable:boolean

true if we want to use a separate ExpandedNameTable for this DTM.

Returns:DTM

a non-null DTM reference.

newInstanceback to summary
public static XSLTCDTMManager newInstance()

Obtain a new instance of a DTMManager. This static method creates a new factory instance. The current implementation just returns a new XSLTCDTMManager instance.