xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mm...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/processor TransformerFactoryImpl.java
Date Wed, 19 Sep 2001 17:41:38 GMT
mmidy       01/09/19 10:41:38

  Modified:    java/src/org/apache/xalan/processor
                        TransformerFactoryImpl.java
  Log:
  Bugzilla 2332: Implement getAttribute() method to return the values for incremental and
optimize
  
  Revision  Changes    Path
  1.40      +6 -3      xml-xalan/java/src/org/apache/xalan/processor/TransformerFactoryImpl.java
  
  Index: TransformerFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/TransformerFactoryImpl.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- TransformerFactoryImpl.java	2001/08/09 18:32:55	1.39
  +++ TransformerFactoryImpl.java	2001/09/19 17:41:38	1.40
  @@ -571,11 +571,14 @@
      */
     public Object getAttribute(String name) throws IllegalArgumentException
     {
  -    // Please implement this method for testing purposes 25-Jun-01 -sc
       if (name.equals(FEATURE_INCREMENTAL))
  -      throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_ATTRIB_VALUE_NOT_FOUND,
new Object[]{name})); //name + " attribute value not found");
  +    {
  +      return new Boolean(org.apache.xml.dtm.DTMManager.getIncremental());            
  +    }
       else if (name.equals(FEATURE_OPTIMIZE))
  -      throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_ATTRIB_VALUE_NOT_FOUND,
new Object[]{name})); //name + " attribute value not found");
  +    {
  +      return new Boolean(m_optimize);
  +    }
       else
         throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_ATTRIB_VALUE_NOT_RECOGNIZED,
new Object[]{name})); //name + " attribute not recognized");
     }
  
  
  

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


Mime
View raw message