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/01 00:22:22 UTC

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

sboag       01/03/31 14:22:22

  Modified:    java/src/org/apache/xml/utils Tag: DTM_EXP DTM.java
  Log:
  Added supportsPreStripping, isSupported, getNodeType, and NULL.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +25 -1     xml-xalan/java/src/org/apache/xml/utils/DTM.java
  
  Index: DTM.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/DTM.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- DTM.java	2001/03/29 19:17:53	1.2
  +++ DTM.java	2001/03/31 22:22:22	1.2.2.1
  @@ -91,6 +91,10 @@
    */
   public interface DTM
   {
  +  /**
  +   * Null node handles are represented by this value.
  +   */
  +  public static final int NULL = -1;
   
     // These are the same as the DOM on purpose.
     /**
  @@ -433,7 +437,7 @@
      * @param nodeHandle The node id.
      * @return int Node type, as per the DOM's Node._NODE constants.
      */
  -  public int getNodeType(int nodeHandle);
  +  public short getNodeType(int nodeHandle);
     
     /**
      * <meta name="usage" content="internal"/>
  @@ -444,6 +448,20 @@
      * @return the number of ancestors, plus one
      */
     public short getLevel(int nodeHandle);
  +    
  +  /**
  +   * Tests whether DTM DOM implementation implements a specific feature and 
  +   * that feature is supported by this node.
  +   * @param feature The name of the feature to test.
  +   * @param versionThis is the version number of the feature to test.
  +   *   If the version is not 
  +   *   specified, supporting any version of the feature will cause the 
  +   *   method to return <code>true</code>.
  +   * @return Returns <code>true</code> if the specified feature is 
  +   *   supported on this node, <code>false</code> otherwise.
  +   */
  +  public boolean isSupported(String feature, 
  +                             String version);
     
     // ============== Document query functions ============== 
     
  @@ -534,6 +552,12 @@
     public int getDocumentTypeDeclarationPublicIdentifier();
   
     // ============== Boolean methods ================
  +  
  +  /**
  +   * Return true if the xsl:strip-space or xsl:preserve-space was processed 
  +   * at the construction level.
  +   */
  +  boolean supportsPreStripping();
     
     /**
      * Figure out whether nodeHandle2 should be considered as being later
  
  
  

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