summaryrefslogtreecommitdiff
path: root/javax/xml
diff options
context:
space:
mode:
authorChris Burdess <dog@bluezoo.org>2006-03-30 19:12:51 +0000
committerChris Burdess <dog@bluezoo.org>2006-03-30 19:12:51 +0000
commit25027fd3f7f618b032570fde7638d4b9270bdc86 (patch)
treee020897e108e567dbae184bb01af99437e6193cc /javax/xml
parent77807b16fa39d66cded79fc66f482e582d4d1d44 (diff)
downloadclasspath-25027fd3f7f618b032570fde7638d4b9270bdc86.tar.gz
2006-03-30 Chris Burdess <dog@gnu.org>
* javax/xml/datatype/DatatypeFactory.java (newDurationDayTime): Fix method signature. * javax/xml/validation/SchemaFactoryLoader.java: New file.
Diffstat (limited to 'javax/xml')
-rw-r--r--javax/xml/datatype/DatatypeFactory.java8
-rw-r--r--javax/xml/validation/SchemaFactoryLoader.java52
2 files changed, 56 insertions, 4 deletions
diff --git a/javax/xml/datatype/DatatypeFactory.java b/javax/xml/datatype/DatatypeFactory.java
index 98a5690e8..c5bc96ed2 100644
--- a/javax/xml/datatype/DatatypeFactory.java
+++ b/javax/xml/datatype/DatatypeFactory.java
@@ -1,5 +1,5 @@
/* DatatypeFactory.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.
@@ -46,7 +46,7 @@ import java.util.GregorianCalendar;
* objects.
*
* @author (a href='mailto:dog@gnu.org'>Chris Burdess</a)
- * @since 1.3
+ * @since 1.5
*/
public abstract class DatatypeFactory
{
@@ -172,7 +172,7 @@ public abstract class DatatypeFactory
BigInteger days,
BigInteger hours,
BigInteger minutes,
- BigDecimal seconds)
+ BigInteger seconds)
{
return newDuration(isPositive,
null,
@@ -180,7 +180,7 @@ public abstract class DatatypeFactory
days,
hours,
minutes,
- seconds);
+ new BigDecimal(seconds));
}
/**
diff --git a/javax/xml/validation/SchemaFactoryLoader.java b/javax/xml/validation/SchemaFactoryLoader.java
new file mode 100644
index 000000000..dc80a33cc
--- /dev/null
+++ b/javax/xml/validation/SchemaFactoryLoader.java
@@ -0,0 +1,52 @@
+/* SchemaFactory.java --
+ Copyright (C) 2006 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.xml.validation;
+
+/**
+ * API compatibility class. Do not use.
+ */
+public abstract class SchemaFactoryLoader
+{
+
+ protected SchemaFactoryLoader()
+ {
+ }
+
+ public abstract SchemaFactory newFactory(String schemaLanguage);
+
+}