You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by tm...@apache.org on 2001/05/14 14:52:31 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime TransletTemplates.java AbstractTranslet.java
tmiller 01/05/14 05:52:29
Modified: java/src/org/apache/xalan/xsltc/runtime
TransletTemplates.java AbstractTranslet.java
Log:
stubbed out methods now thrown exception to warn users instead of returning null
Revision Changes Path
1.2 +5 -2 xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TransletTemplates.java
Index: TransletTemplates.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TransletTemplates.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TransletTemplates.java 2001/05/11 17:25:04 1.1
+++ TransletTemplates.java 2001/05/14 12:52:24 1.2
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: TransletTemplates.java,v 1.1 2001/05/11 17:25:04 tmiller Exp $
+ * @(#)$Id: TransletTemplates.java,v 1.2 2001/05/14 12:52:24 tmiller Exp $
*
* The Apache Software License, Version 1.1
*
@@ -77,7 +77,10 @@
_translet = (AbstractTranslet)translet;
}
- public Properties getOutputProperties() { /*TBD*/ return null; }
+ public Properties getOutputProperties() {
+ /*TBD*/
+ return new Properties();
+ }
public Transformer newTransformer() throws
TransformerConfigurationException
1.5 +27 -6 xml-xalan/java/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java
Index: AbstractTranslet.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AbstractTranslet.java 2001/05/11 17:26:13 1.4
+++ AbstractTranslet.java 2001/05/14 12:52:25 1.5
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: AbstractTranslet.java,v 1.4 2001/05/11 17:26:13 tmiller Exp $
+ * @(#)$Id: AbstractTranslet.java,v 1.5 2001/05/14 12:52:25 tmiller Exp $
*
* The Apache Software License, Version 1.1
*
@@ -410,38 +410,59 @@
}
public void setErrorListener(ErrorListener listener) throws
- IllegalArgumentException { /* TBD */ }
+ IllegalArgumentException
+ {
+ /* TBD */
+ throw new IllegalArgumentException(
+ "AbstractTranslet:setErrorListener(ErrorListener) " +
+ "not implemented yet.");
+ }
public Properties getOutputProperties() throws IllegalArgumentException {
/*TBD*/
- return null;
+ throw new IllegalArgumentException(
+ "AbstractTranslet:getOutputProperties() " +
+ "not implemented yet.");
+ //return null;
}
public String getOutputProperty(String name) throws
IllegalArgumentException
{
/*TBD*/
- return "";
+ throw new IllegalArgumentException(
+ "AbstractTranslet:getOutputProperty(String) " +
+ "not implemented yet.");
+ //return "";
}
public void setOutputProperties(Properties props) throws
IllegalArgumentException
{
/*TBD */
+ throw new IllegalArgumentException(
+ "AbstractTranslet:setOutputProperty(Properties) " +
+ "not implemented yet.");
}
public void setOutputProperty(String name, String value) throws
IllegalArgumentException
{
- /*TBD*/
+ /*TBD*/
+ throw new IllegalArgumentException(
+ "AbstractTranslet:setOutputProperty(String,String) " +
+ "not implemented yet.");
}
public URIResolver getURIResolver() { /*TBD*/ return null; }
public void setParameter(String name, Object value) {
addParameter(name, value);
+ }
+
+ public void setURIResolver(URIResolver resolver) {
+ /*TBD*/
}
- public void setURIResolver(URIResolver resolver) { /*TBD*/}
public void transform(Source xmlsrc, Result outputTarget)
throws TransformerException
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org