tmiller 01/06/05 07:42:46
Modified: java/src/org/apache/xalan/xsltc/runtime
TransformerFactoryImpl.java
Log:
Transformer factory's setErrorListener() now throws
IllegalArgumentException is listener is null
Revision Changes Path
1.5 +7 -8
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.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TransformerFactoryImpl.java 2001/06/05 13:02:10 1.4
+++ TransformerFactoryImpl.java 2001/06/05 14:42:46 1.5
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: TransformerFactoryImpl.java,v 1.4 2001/06/05 13:02:10 tmiller
Exp $
+ * @(#)$Id: TransformerFactoryImpl.java,v 1.5 2001/06/05 14:42:46 tmiller
Exp $
*
* The Apache Software License, Version 1.1
*
@@ -157,20 +157,19 @@
// TransformerFactory
//
public ErrorListener getErrorListener() {
- /*TBD*/
- /* return null; */
return _errorListener;
}
+
public void setErrorListener(ErrorListener listener)
throws IllegalArgumentException
{
+ if (listener == null) {
+ throw new IllegalArgumentException(
+ "Error: setErrorListener() call where ErrorListener is null");
+ }
_errorListener = listener;
- /*TBD*/
- /*throw new IllegalArgumentException(
- "TransformerFactoryImpl:setErrorListener(ErrorListener) " +
- "not implemented yet.");
- */
}
+
public Object getAttribute(String name)
throws IllegalArgumentException
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]