fi.hut.tml.xsmiles.mlfc.xforms.xpath.xalan
Class DTMManagerEx

java.lang.Object
  extended byorg.apache.xml.dtm.DTMManager
      extended byorg.apache.xml.dtm.ref.DTMManagerDefault
          extended byfi.hut.tml.xsmiles.mlfc.xforms.xpath.xalan.DTMManagerEx

public class DTMManagerEx
extends org.apache.xml.dtm.ref.DTMManagerDefault


Field Summary
protected  java.util.Vector referantFunctions
           
protected  java.util.Vector referants
          X-SMiles: the referants of XPath expressions are collected here
protected  boolean trackReferants
          should this instance track the referants
 
Fields inherited from class org.apache.xml.dtm.ref.DTMManagerDefault
m_dtms
 
Fields inherited from class org.apache.xml.dtm.DTMManager
IDENT_DTM_DEFAULT, IDENT_DTM_NODE_BITS, IDENT_MAX_DTMS, IDENT_NODE_DEFAULT, m_incremental, m_xsf
 
Constructor Summary
DTMManagerEx()
           
 
Method Summary
 void addReferant(org.w3c.dom.Node n)
          The DOM2DTMEx calls this method to add a new referant
 void addReferantFunction(java.lang.String function)
          The DOM2DTMEx calls this method to add a new referant
 void clearReferants()
           
 void detatchReferants()
           
 org.apache.xml.dtm.DTM getDTM(javax.xml.transform.Source source, boolean unique, org.apache.xml.dtm.DTMWSFilter whiteSpaceFilter, boolean incremental, boolean doIndexing)
          This method is copied from DTMManagerDefault in Xalan 2.5.1, in order to generate DOM2DTMEx objects for referent tracking purposes Get an instance of a DTM, loaded with the content from the specified source.
 java.util.Vector getReferantFunctions()
           
 java.util.Vector getReferants()
           
 boolean getReferantTracking()
           
static org.apache.xml.dtm.DTMManager newInstance(org.apache.xml.utils.XMLStringFactory xsf)
           
 void setReferantTracking(boolean r)
           
 
Methods inherited from class org.apache.xml.dtm.ref.DTMManagerDefault
addDTM, addDTM, createDocumentFragment, createDTMIterator, createDTMIterator, createDTMIterator, createDTMIterator, getDTM, getDTMHandleFromNode, getDTMIdentity, getExpandedNameTable, getFirstFreeDTMID, getXMLReader, release
 
Methods inherited from class org.apache.xml.dtm.DTMManager
getDTMIdentityMask, getIncremental, getNodeIdentityMask, getXMLStringFactory, setIncremental, setXMLStringFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

referants

protected java.util.Vector referants
X-SMiles: the referants of XPath expressions are collected here


trackReferants

protected boolean trackReferants
should this instance track the referants


referantFunctions

protected java.util.Vector referantFunctions
Constructor Detail

DTMManagerEx

public DTMManagerEx()
Method Detail

newInstance

public static org.apache.xml.dtm.DTMManager newInstance(org.apache.xml.utils.XMLStringFactory xsf)
                                                 throws org.apache.xml.dtm.DTMConfigurationException
Throws:
org.apache.xml.dtm.DTMConfigurationException

setReferantTracking

public void setReferantTracking(boolean r)

getReferantTracking

public boolean getReferantTracking()

addReferant

public void addReferant(org.w3c.dom.Node n)
The DOM2DTMEx calls this method to add a new referant


addReferantFunction

public void addReferantFunction(java.lang.String function)
The DOM2DTMEx calls this method to add a new referant


getReferants

public java.util.Vector getReferants()

getReferantFunctions

public java.util.Vector getReferantFunctions()

clearReferants

public void clearReferants()

detatchReferants

public void detatchReferants()

getDTM

public org.apache.xml.dtm.DTM getDTM(javax.xml.transform.Source source,
                                     boolean unique,
                                     org.apache.xml.dtm.DTMWSFilter whiteSpaceFilter,
                                     boolean incremental,
                                     boolean doIndexing)
This method is copied from DTMManagerDefault in Xalan 2.5.1, in order to generate DOM2DTMEx objects for referent tracking purposes 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. A bit of magic in this implementation: If the source is null, unique is true, and incremental and doIndexing are both false, we return an instance of SAX2RTFDTM, which see. (I think more parameters will need to be added for error handling, and entity resolution, and more explicit control of the RTF situation).

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


X-Smiles 1.2