You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by jk...@apache.org on 2005/10/25 19:42:11 UTC
svn commit: r328435 - in /incubator/woden/java/src/org/apache/woden:
WSDLReader.java internal/BaseWSDLReader.java
Author: jkaputin
Date: Tue Oct 25 10:42:05 2005
New Revision: 328435
URL: http://svn.apache.org/viewcvs?rev=328435&view=rev
Log:
ErrorReporter is now public on the API, so removed
the set/getErrorHandler and set/getLocale methods
from the WSDLReader interface, added a getErrorReporter
method to WSDLReader and in BaseWSDLReader changed
the getErrorReporter modifier from protected to public.
Modified:
incubator/woden/java/src/org/apache/woden/WSDLReader.java
incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java
Modified: incubator/woden/java/src/org/apache/woden/WSDLReader.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/WSDLReader.java?rev=328435&r1=328434&r2=328435&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/WSDLReader.java (original)
+++ incubator/woden/java/src/org/apache/woden/WSDLReader.java Tue Oct 25 10:42:05 2005
@@ -15,8 +15,6 @@
*/
package org.apache.woden;
-import java.util.Locale;
-// TODO: this import is WSDL 2.0 specific. May be refactored.
import org.apache.woden.wsdl20.xml.DescriptionElement;
/**
@@ -125,17 +123,10 @@
//TODO - a readWSDL method that returns a Description (eg a component)
/**
- * Set an error handler to be used to report WSDL parsing errors.
- *
- * @param errorHandler the custom error handler
- */
- public void setErrorHandler(ErrorHandler errorHandler);
-
- /**
- * @return the ErrorHandler used to report WSDL parsing errors
+ * @return the ErrorReporter used by this reader
*/
- public ErrorHandler getErrorHandler();
-
+ public ErrorReporter getErrorReporter();
+
/**
* Store the name of the WSDLFactory implementation class to be used for
* any subsequent WSDLFactory requests (i.e. this will replace any
@@ -150,18 +141,6 @@
*/
public String getFactoryImplName();
- /**
- * Set the Locale to use for localization of error messages.
- *
- * @param locale the Locale object
- */
- public void setLocale(Locale locale);
-
- /**
- * @return the Locale used for localization of error messages
- */
- public Locale getLocale();
-
/**
* Set a named feature on or off with a boolean. Note, this relates to
* features of the Woden framework, not to WSDL-specific features such
Modified: incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java?rev=328435&r1=328434&r2=328435&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java Tue Oct 25 10:42:05 2005
@@ -52,7 +52,7 @@
/**
* @return Returns the fErrorReporter.
*/
- protected ErrorReporter getErrorReporter() {
+ public ErrorReporter getErrorReporter() {
return fErrorReporter;
}
@@ -74,28 +74,6 @@
}
/**
- * Sets an error handler to be used to report WSDL parsing errors.
- * Does this by delegating to the ErrorReporter object in
- * <code>fErrorReporter</code>
- *
- * @param errorHandler the ErrorHandler for reporting parsing errors
- */
- public void setErrorHandler(ErrorHandler errorHandler) {
- fErrorReporter.setErrorHandler(errorHandler);
- }
-
- /**
- * Returns the ErrorHandler used to report WSDL parsing errors.
- * Does this by delegating to the ErrorReporter object in
- * <code>fErrorReporter</code>.
- *
- * @return the ErrorHandler for reporting parsing errors
- */
- public ErrorHandler getErrorHandler() {
- return fErrorReporter.getErrorHandler();
- }
-
- /**
* Stores the name of the WSDLFactory implementation class to be used for
* any subsequent WSDLFactory requests, first discarding any cached factory
* object.
@@ -114,28 +92,6 @@
*/
public String getFactoryImplName() {
return fFactoryImplName;
- }
-
- /**
- * Sets the Locale to use for the localization of error messages.
- * Does this by delegating to the ErrorReporter object in
- * <code>fErrorReporter</code>.
- *
- * @param locale the Locale object
- */
- public void setLocale(Locale locale) {
- fErrorReporter.setLocale(locale);
- }
-
- /**
- * Returns the Locale used for the localization of error messages.
- * Does this by delegating to the ErrorReporter object in
- * <code>fErrorReporter</code>.
- *
- * @return the Locale object
- */
- public Locale getLocale() {
- return fErrorReporter.getLocale();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org