Hi,
subject says it all.
2006-04-06 Wolfgang Baer <[EMAIL PROTECTED]>
* javax/xml/validation/SchemaFactory.java: Corrected since tag.
(getErrorHandler): Made method abstract.
(setErrorHanlder): Likewise.
* gnu/xml/validation/relaxng/RELAXNGSchemaFactory.java
(getErrorHandler): Implement abstract method from superclass.
(setErrorHandler): Likewise.
(errorHandler): New field.
* gnu/xml/validation/xmlschema/XMLSchemaSchemaFactory.java:
(getErrorHandler): Implement abstract method from superclass.
(setErrorHandler): Likewise.
(errorHandler): New field.
* javax/xml/XMLConstants.java: Corrected since tag.
(XMLConstants): Added private constructor.
* javax/xml/datatype/Duration.java: Corrected since tag.
(multiply): Made method abstract.
* javax/xml/datatype/DatatypeConstants.java: Corrected since tag.
(DatatypeConstants): Added private constructor.
* javax/xml/xpath/XPathConstants.java: Corrected since tag.
(XPathConstants): Added private constructor.
Wolfgang
Index: javax/xml/XMLConstants.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/xml/XMLConstants.java,v
retrieving revision 1.3
diff -u -r1.3 XMLConstants.java
--- javax/xml/XMLConstants.java 2 Jul 2005 20:32:52 -0000 1.3
+++ javax/xml/XMLConstants.java 3 Apr 2006 13:43:07 -0000
@@ -1,5 +1,5 @@
/* XMLConstants.java --
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -41,10 +41,15 @@
* Repository for well-known XML constants.
*
* @author (a href='mailto:[EMAIL PROTECTED]'>Chris Burdess</a)
- * @since 1.3
+ * @since 1.5
*/
public final class XMLConstants
{
+
+ private XMLConstants()
+ {
+ // to prevent instantiation
+ }
/**
* Dummy namespace URI indicating that there is no namespace.
Index: javax/xml/xpath/XPathConstants.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/xml/xpath/XPathConstants.java,v
retrieving revision 1.3
diff -u -r1.3 XPathConstants.java
--- javax/xml/xpath/XPathConstants.java 2 Jul 2005 20:32:52 -0000 1.3
+++ javax/xml/xpath/XPathConstants.java 3 Apr 2006 13:43:07 -0000
@@ -1,5 +1,5 @@
/* XPathConstants.java --
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -43,10 +43,14 @@
* XPath constants.
*
* @author (a href='mailto:[EMAIL PROTECTED]'>Chris Burdess</a)
- * @since 1.3
+ * @since 1.5
*/
public class XPathConstants
{
+ private XPathConstants()
+ {
+ // to prevent instantiation
+ }
/**
* The XPath 1.0 number data type.
Index: javax/xml/validation/SchemaFactory.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/xml/validation/SchemaFactory.java,v
retrieving revision 1.4
diff -u -r1.4 SchemaFactory.java
--- javax/xml/validation/SchemaFactory.java 3 Mar 2006 19:19:02 -0000 1.4
+++ javax/xml/validation/SchemaFactory.java 3 Apr 2006 13:43:07 -0000
@@ -1,5 +1,5 @@
/* SchemaFactory.java --
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -52,13 +52,10 @@
* Factory for obtaining schemata.
*
* @author Chris Burdess ([EMAIL PROTECTED])
- * @since 1.3
+ * @since 1.5
*/
public abstract class SchemaFactory
{
-
- ErrorHandler errorHandler;
-
protected SchemaFactory()
{
}
@@ -109,15 +106,9 @@
throw new SAXNotRecognizedException(name);
}
- public ErrorHandler getErrorHandler()
- {
- return errorHandler;
- }
+ public abstract ErrorHandler getErrorHandler();
- public void setErrorHandler(ErrorHandler errorHandler)
- {
- this.errorHandler = errorHandler;
- }
+ public abstract void setErrorHandler(ErrorHandler errorHandler);
public abstract LSResourceResolver getResourceResolver();
Index: javax/xml/datatype/DatatypeConstants.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/xml/datatype/DatatypeConstants.java,v
retrieving revision 1.3
diff -u -r1.3 DatatypeConstants.java
--- javax/xml/datatype/DatatypeConstants.java 2 Jul 2005 20:32:52 -0000 1.3
+++ javax/xml/datatype/DatatypeConstants.java 3 Apr 2006 13:43:07 -0000
@@ -1,5 +1,5 @@
/* DatatypeConstants.java --
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -43,11 +43,16 @@
* Basic data type constants.
*
* @author (a href='mailto:[EMAIL PROTECTED]'>Chris Burdess</a)
- * @since 1.3
+ * @since 1.5
*/
public final class DatatypeConstants
{
+ private DatatypeConstants()
+ {
+ // to prevent instantiation
+ }
+
/**
* Typesafe enumerated class representing the six fields of the
* <a href='Duration.html'>Duration</a> class.
Index: javax/xml/datatype/Duration.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/xml/datatype/Duration.java,v
retrieving revision 1.3
diff -u -r1.3 Duration.java
--- javax/xml/datatype/Duration.java 2 Jul 2005 20:32:52 -0000 1.3
+++ javax/xml/datatype/Duration.java 3 Apr 2006 13:43:07 -0000
@@ -1,5 +1,5 @@
/* Duration.java --
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -48,7 +48,7 @@
* An immutable time space as specified in XML Schema 1.0.
*
* @author (a href='mailto:[EMAIL PROTECTED]'>Chris Burdess</a)
- * @since 1.3
+ * @since 1.5
*/
public abstract class Duration
{
@@ -240,11 +240,7 @@
/**
* Returns the result of multiplying this duration by the given factor.
*/
- public Duration multiply(BigDecimal factor)
- {
- // TODO
- throw new UnsupportedOperationException();
- }
+ public abstract Duration multiply(BigDecimal factor);
/**
* Returns the unary negative of this duration.
Index: gnu/xml/validation/relaxng/RELAXNGSchemaFactory.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/xml/validation/relaxng/RELAXNGSchemaFactory.java,v
retrieving revision 1.1
diff -u -r1.1 RELAXNGSchemaFactory.java
--- gnu/xml/validation/relaxng/RELAXNGSchemaFactory.java 3 Mar 2006 19:19:02 -0000 1.1
+++ gnu/xml/validation/relaxng/RELAXNGSchemaFactory.java 3 Apr 2006 13:43:07 -0000
@@ -51,6 +51,7 @@
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.ls.LSResourceResolver;
+import org.xml.sax.ErrorHandler;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
@@ -64,6 +65,7 @@
{
LSResourceResolver resourceResolver;
+ ErrorHandler errorHandler;
public LSResourceResolver getResourceResolver()
{
@@ -73,6 +75,16 @@
public void setResourceResolver(LSResourceResolver resourceResolver)
{
this.resourceResolver = resourceResolver;
+ }
+
+ public ErrorHandler getErrorHandler()
+ {
+ return this.errorHandler;
+ }
+
+ public void setErrorHandler(ErrorHandler errorHandler)
+ {
+ this.errorHandler = errorHandler;
}
public boolean isSchemaLanguageSupported(String schemaLanguage)
Index: gnu/xml/validation/xmlschema/XMLSchemaSchemaFactory.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/xml/validation/xmlschema/XMLSchemaSchemaFactory.java,v
retrieving revision 1.1
diff -u -r1.1 XMLSchemaSchemaFactory.java
--- gnu/xml/validation/xmlschema/XMLSchemaSchemaFactory.java 3 Mar 2006 19:19:02 -0000 1.1
+++ gnu/xml/validation/xmlschema/XMLSchemaSchemaFactory.java 3 Apr 2006 13:43:07 -0000
@@ -52,6 +52,7 @@
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.ls.LSResourceResolver;
+import org.xml.sax.ErrorHandler;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
@@ -65,6 +66,7 @@
{
LSResourceResolver resourceResolver;
+ ErrorHandler errorHandler;
public LSResourceResolver getResourceResolver()
{
@@ -75,6 +77,17 @@
{
this.resourceResolver = resourceResolver;
}
+
+ public ErrorHandler getErrorHandler()
+ {
+ return this.errorHandler;
+ }
+
+ public void setErrorHandler(ErrorHandler errorHandler)
+ {
+ this.errorHandler = errorHandler;
+ }
+
public boolean isSchemaLanguageSupported(String schemaLanguage)
{