tmiller     01/05/14 07:25:26

  Modified:    java/src/org/apache/xalan/xsltc/runtime
                        TransformerFactoryImpl.java
  Log:
  stubbed out methods now thrown exception to warn users instead of returning 
null
  
  Revision  Changes    Path
  1.2       +94 -14    
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TransformerFactoryImpl.java
  
  Index: TransformerFactoryImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TransformerFactoryImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransformerFactoryImpl.java       2001/05/11 17:25:05     1.1
  +++ TransformerFactoryImpl.java       2001/05/14 14:25:19     1.2
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: TransformerFactoryImpl.java,v 1.1 2001/05/11 17:25:05 tmiller 
Exp $
  + * @(#)$Id: TransformerFactoryImpl.java,v 1.2 2001/05/14 14:25:19 tmiller 
Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -104,16 +104,60 @@
       ////////////////////////////////////////////////////// 
       // SAXTransformerFactory (subclass of TransformerFactory)
       //
  -    public TemplatesHandler newTemplatesHandler() { /*TBD*/ return null; }
  -    public TransformerHandler newTransformerHandler() { /*TBD*/ return null; 
}
  -    public TransformerHandler newTransformerHandler(Source src) { 
  -        /*TBD*/ return null; 
  +    public TemplatesHandler newTemplatesHandler() 
  +     throws TransformerConfigurationException 
  +    { 
  +     /*TBD*/
  +     throw new TransformerConfigurationException(
  +         "TransformerFactoryImpl:newTemplatesHandler() " +
  +         "not implemented yet."); 
  +     //return null; 
       }
  -    public TransformerHandler newTransformerHandler(Templates templates) { 
  -        /*TBD*/ return null; 
  +    public TransformerHandler newTransformerHandler() 
  +     throws TransformerConfigurationException 
  +    {
  +     /*TBD*/ 
  +        throw new TransformerConfigurationException(
  +            "TransformerFactoryImpl:newTransformerHandler() " +
  +            "not implemented yet."); 
  +     // return null; 
       }
  -    public XMLFilter newXMLFilter(Source src) { /*TBD*/ return null; }
  -    public XMLFilter newXMLFilter(Templates templates) { /*TBD*/ return 
null; }
  +    public TransformerHandler newTransformerHandler(Source src) 
  +     throws TransformerConfigurationException 
  +    { 
  +        /*TBD*/ 
  +        throw new TransformerConfigurationException(
  +            "TransformerFactoryImpl:newTransformerHandler(Source) " +
  +            "not implemented yet."); 
  +     // return null; 
  +    }
  +    public TransformerHandler newTransformerHandler(Templates templates) 
  +     throws TransformerConfigurationException 
  +    { 
  +        /*TBD*/ 
  +        throw new TransformerConfigurationException(
  +            "TransformerFactoryImpl:newTransformerHandler(Templates) " +
  +            "not implemented yet."); 
  +     //return null; 
  +    }
  +    public XMLFilter newXMLFilter(Source src) 
  +     throws TransformerConfigurationException 
  +    { 
  +     /*TBD*/ 
  +        throw new TransformerConfigurationException(
  +            "TransformerFactoryImpl:newXMLFilter(Source) " +
  +            "not implemented yet."); 
  +     //return null; 
  +    }
  +    public XMLFilter newXMLFilter(Templates templates) 
  +     throws TransformerConfigurationException 
  +    { 
  +     /*TBD*/ 
  +        throw new TransformerConfigurationException(
  +            "TransformerFactoryImpl:newXMLFilter(Templates) " +
  +            "not implemented yet."); 
  +     //return null; 
  +    }
       //
       // End SAXTransformerFactory methods 
       ////////////////////////////////////////////////////// 
  @@ -122,9 +166,31 @@
       // TransformerFactory
       //
       public ErrorListener getErrorListener() { /*TBD*/ return null; }
  -    public void setErrorListener(ErrorListener listener) {/*TBD*/   }
  -    public Object getAttribute(String name) { /*TBD*/ return null; }
  -    public void setAttribute(String name, Object value) { /*TBD*/  }
  +    public void setErrorListener(ErrorListener listener) 
  +     throws IllegalArgumentException
  +    {
  +     /*TBD*/   
  +        throw new IllegalArgumentException(
  +            "TransformerFactoryImpl:setErrorListener(ErrorListener) " +
  +            "not implemented yet.");
  +    }
  +    public Object getAttribute(String name) 
  +     throws IllegalArgumentException
  +    { 
  +     /*TBD*/ 
  +        throw new IllegalArgumentException(
  +            "TransformerFactoryImpl:getAttribute(String) " +
  +            "not implemented yet.");
  +     //return null; 
  +    }
  +    public void setAttribute(String name, Object value) 
  +     throws IllegalArgumentException
  +    { 
  +     /*TBD*/  
  +        throw new IllegalArgumentException(
  +            "TransformerFactoryImpl:getAttribute(String) " +
  +            "not implemented yet.");
  +    }
       public boolean getFeature(String name) { 
        if ((StreamSource.FEATURE == name) ||
            (StreamResult.FEATURE == name) ||
  @@ -141,9 +207,23 @@
       public URIResolver getURIResolver() { /*TBD*/ return null; } 
       public void setURIResolver(URIResolver resolver) {/*TBD*/   } 
       public Source getAssociatedStylesheet(Source src, String media,
  -     String title, String charset) { /*TBD*/ return null; }
  +     String title, String charset)  throws TransformerConfigurationException
  +    { 
  +     /*TBD*/ 
  +        throw new TransformerConfigurationException(
  +            "TransformerFactoryImpl:getAssociatedStylesheet(Source,String," +
  +            "String, String) not implemented yet.");
  +     //return null; 
  +    }
       public Transformer newTransformer() throws
  -     TransformerConfigurationException { /*TBD*/ return null; }
  +     TransformerConfigurationException 
  +    { 
  +     /*TBD*/ 
  +        throw new TransformerConfigurationException(
  +            "TransformerFactoryImpl:newTransformer() " +
  +            " not implemented yet.");
  +     //return null; 
  +    }
       //
       // End TransformerFactory methods 
       ////////////////////////////////////////////////////// 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to