You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/04/03 23:10:00 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/utils DTMManager.java

sboag       01/04/03 14:10:00

  Modified:    java/src/org/apache/xml/utils Tag: DTM_EXP DTMManager.java
  Log:
  Added createDocumentFragment() (for creating RTFs in Xalan),
  added experimental release method, and added createDTMIterator
  for creating simple iterators that only represent one node.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +29 -2     xml-xalan/java/src/org/apache/xml/utils/DTMManager.java
  
  Index: DTMManager.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/DTMManager.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- DTMManager.java	2001/03/29 19:17:54	1.1
  +++ DTMManager.java	2001/04/03 21:10:00	1.1.2.1
  @@ -109,7 +109,24 @@
      * @return a non-null DTM reference.
      */
     public abstract DTM getDTM(int nodeHandle);
  -
  +  
  +  /**
  +   * Creates an empty <code>DocumentFragment</code> object. 
  +   * @return a non-null DTM reference.
  +   */
  +  public abstract DTM createDocumentFragment();
  +  
  +  /**
  +   * Release a DTM either to a lru pool, or completely remove reference.
  +   * DTMs without system IDs are always hard deleted.
  +   * State: experimental.
  +   * 
  +   * @param dtm The DTM to be released.
  +   * @param shouldHardDelete True if the DTM should be removed no matter what.
  +   * @return true if the DTM was removed, false if it was put back in a lru pool.
  +   */
  +  public abstract boolean release(DTM dtm, boolean shouldHardDelete);
  +  
   
     /**
      * Create a new <code>DTMIterator</code> based on an XPath
  @@ -157,8 +174,18 @@
      * @param entityReferenceExpansion The value of this flag determines
      *   whether entity reference nodes are expanded.
      *
  -   * @return The newly created <code>NodeIterator</code>.
  +   * @return The newly created <code>DTMIterator</code>.
      */
     public abstract DTMIterator createDTMIterator(int whatToShow,
             DTMFilter filter, boolean entityReferenceExpansion);
  +          
  +  /**
  +   * Create a new <code>DTMIterator</code> that holds exactly one node.
  +   *
  +   * @param node The node handle that the DTMIterator will iterate to.
  +   *
  +   * @return The newly created <code>DTMIterator</code>.
  +   */
  +  public abstract DTMIterator createDTMIterator(int node);
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org