PatchSet 5358 Date: 2004/10/24 19:23:31 Author: robilad Branch: HEAD Tag: (none) Log: Resynced with GNU JAXP: support for JAXP 1.3
2004-10-24 Dalibor Topic <[EMAIL PROTECTED]> * libraries/javalib/Makefile.am, libraries/javalib/Makefile.in, libraries/javalib/all.files: Regenerated. * libraries/javalib/javax/xml/XMLConstants.java, libraries/javalib/javax/xml/datatype/DatatypeConfigurationException.java, libraries/javalib/javax/xml/datatype/DatatypeConstants.java, libraries/javalib/javax/xml/datatype/DatatypeFactory.java, libraries/javalib/javax/xml/datatype/Duration.java, libraries/javalib/javax/xml/datatype/XMLGregorianCalendar.java, libraries/javalib/javax/xml/datatype/package.html, libraries/javalib/javax/xml/namespace/NamespaceContext.java, libraries/javalib/javax/xml/namespace/QName.java, libraries/javalib/javax/xml/namespace/package.html, libraries/javalib/javax/xml/validation/Schema.java, libraries/javalib/javax/xml/validation/SchemaFactory.java, libraries/javalib/javax/xml/validation/TypeInfoProvider.java, libraries/javalib/javax/xml/validation/Validator.java, libraries/javalib/javax/xml/validation/ValidatorHandler.java, libraries/javalib/javax/xml/validation/package.html, libraries/javalib/javax/xml/xpath/XPath.java, libraries/javalib/javax/xml/xpath/XPathConstants.java, libraries/javalib/javax/xml/xpath/XPathException.java, libraries/javalib/javax/xml/xpath/XPathExpression.java, libraries/javalib/javax/xml/xpath/XPathExpressionException.java, libraries/javalib/javax/xml/xpath/XPathFactory.java, libraries/javalib/javax/xml/xpath/XPathFactoryConfigurationException.java, libraries/javalib/javax/xml/xpath/XPathFunction.java, libraries/javalib/javax/xml/xpath/XPathFunctionException.java, libraries/javalib/javax/xml/xpath/XPathFunctionResolver.java, libraries/javalib/javax/xml/xpath/XPathVariableResolver.java, libraries/javalib/javax/xml/xpath/package.html: New files taken from GNU JAXP. * libraries/javalib/gnu/xml/dom/DomImpl.java, libraries/javalib/gnu/xml/libxmlj/transform/GnomeTransformer.java, libraries/javalib/javax/xml/parsers/ClassStuff.java, libraries/javalib/javax/xml/parsers/DocumentBuilder.java, libraries/javalib/javax/xml/parsers/DocumentBuilderFactory.java, libraries/javalib/javax/xml/parsers/FactoryConfigurationError.java, libraries/javalib/javax/xml/parsers/ParserConfigurationException.java, libraries/javalib/javax/xml/parsers/SAXParser.java, libraries/javalib/javax/xml/parsers/SAXParserFactory.java, libraries/javalib/javax/xml/transform/ClassStuff.java, libraries/javalib/javax/xml/transform/ErrorListener.java, libraries/javalib/javax/xml/transform/OutputKeys.java, libraries/javalib/javax/xml/transform/Result.java, libraries/javalib/javax/xml/transform/Source.java, libraries/javalib/javax/xml/transform/SourceLocator.java, libraries/javalib/javax/xml/transform/Templates.java, libraries/javalib/javax/xml/transform/Transformer.java, libraries/javalib/javax/xml/transform/TransformerException.java, libraries/javalib/javax/xml/transform/TransformerFactory.java, libraries/javalib/javax/xml/transform/TransformerFactoryConfigurationError.java, libraries/javalib/javax/xml/transform/URIResolver.java, libraries/javalib/javax/xml/transform/dom/DOMLocator.java, libraries/javalib/javax/xml/transform/dom/DOMResult.java, libraries/javalib/javax/xml/transform/dom/DOMSource.java, libraries/javalib/javax/xml/transform/sax/SAXResult.java, libraries/javalib/javax/xml/transform/sax/SAXSource.java, libraries/javalib/javax/xml/transform/sax/TemplatesHandler.java, libraries/javalib/javax/xml/transform/sax/TransformerHandler.java, libraries/javalib/javax/xml/transform/stream/StreamResult.java, libraries/javalib/javax/xml/transform/stream/StreamSource.java: Resynced with GNU JAXP. 2004-10-20 Chris Burdess <[EMAIL PROTECTED]> * all: Updates to bring API in line with JAXP 1.3: introduction of datatype, namespace, validation, and xpath JAXP packages and miscellaneous updates to other packages. Style corrections. Members: ChangeLog:1.2910->1.2911 libraries/javalib/Makefile.am:1.253->1.254 libraries/javalib/Makefile.in:1.333->1.334 libraries/javalib/all.files:1.41->1.42 libraries/javalib/gnu/xml/dom/DomImpl.java:1.6->1.7 libraries/javalib/gnu/xml/libxmlj/transform/GnomeTransformer.java:1.3->1.4 libraries/javalib/javax/xml/XMLConstants.java:INITIAL->1.1 libraries/javalib/javax/xml/datatype/DatatypeConfigurationException.java:INITIAL->1.1 libraries/javalib/javax/xml/datatype/DatatypeConstants.java:INITIAL->1.1 libraries/javalib/javax/xml/datatype/DatatypeFactory.java:INITIAL->1.1 libraries/javalib/javax/xml/datatype/Duration.java:INITIAL->1.1 libraries/javalib/javax/xml/datatype/XMLGregorianCalendar.java:INITIAL->1.1 libraries/javalib/javax/xml/datatype/package.html:INITIAL->1.1 libraries/javalib/javax/xml/namespace/NamespaceContext.java:INITIAL->1.1 libraries/javalib/javax/xml/namespace/QName.java:INITIAL->1.1 libraries/javalib/javax/xml/namespace/package.html:INITIAL->1.1 libraries/javalib/javax/xml/parsers/ClassStuff.java:1.5->1.6 libraries/javalib/javax/xml/parsers/DocumentBuilder.java:1.6->1.7 libraries/javalib/javax/xml/parsers/DocumentBuilderFactory.java:1.6->1.7 libraries/javalib/javax/xml/parsers/FactoryConfigurationError.java:1.4->1.5 libraries/javalib/javax/xml/parsers/ParserConfigurationException.java:1.4->1.5 libraries/javalib/javax/xml/parsers/SAXParser.java:1.6->1.7 libraries/javalib/javax/xml/parsers/SAXParserFactory.java:1.5->1.6 libraries/javalib/javax/xml/transform/ClassStuff.java:1.4->1.5 libraries/javalib/javax/xml/transform/ErrorListener.java:1.4->1.5 libraries/javalib/javax/xml/transform/OutputKeys.java:1.4->1.5 libraries/javalib/javax/xml/transform/Result.java:1.4->1.5 libraries/javalib/javax/xml/transform/Source.java:1.4->1.5 libraries/javalib/javax/xml/transform/SourceLocator.java:1.4->1.5 libraries/javalib/javax/xml/transform/Templates.java:1.4->1.5 libraries/javalib/javax/xml/transform/Transformer.java:1.4->1.5 libraries/javalib/javax/xml/transform/TransformerException.java:1.6->1.7 libraries/javalib/javax/xml/transform/TransformerFactory.java:1.6->1.7 libraries/javalib/javax/xml/transform/TransformerFactoryConfigurationError.java:1.4->1.5 libraries/javalib/javax/xml/transform/URIResolver.java:1.3->1.4 libraries/javalib/javax/xml/transform/dom/DOMLocator.java:1.5->1.6 libraries/javalib/javax/xml/transform/dom/DOMResult.java:1.5->1.6 libraries/javalib/javax/xml/transform/dom/DOMSource.java:1.5->1.6 libraries/javalib/javax/xml/transform/sax/SAXResult.java:1.5->1.6 libraries/javalib/javax/xml/transform/sax/SAXSource.java:1.7->1.8 libraries/javalib/javax/xml/transform/sax/TemplatesHandler.java:1.5->1.6 libraries/javalib/javax/xml/transform/sax/TransformerHandler.java:1.5->1.6 libraries/javalib/javax/xml/transform/stream/StreamResult.java:1.5->1.6 libraries/javalib/javax/xml/transform/stream/StreamSource.java:1.5->1.6 libraries/javalib/javax/xml/validation/Schema.java:INITIAL->1.1 libraries/javalib/javax/xml/validation/SchemaFactory.java:INITIAL->1.1 libraries/javalib/javax/xml/validation/TypeInfoProvider.java:INITIAL->1.1 libraries/javalib/javax/xml/validation/Validator.java:INITIAL->1.1 libraries/javalib/javax/xml/validation/ValidatorHandler.java:INITIAL->1.1 libraries/javalib/javax/xml/validation/package.html:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPath.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathConstants.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathException.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathExpression.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathExpressionException.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathFactory.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathFactoryConfigurationException.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathFunction.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathFunctionException.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathFunctionResolver.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/XPathVariableResolver.java:INITIAL->1.1 libraries/javalib/javax/xml/xpath/package.html:INITIAL->1.1 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.2910 kaffe/ChangeLog:1.2911 --- kaffe/ChangeLog:1.2910 Sun Oct 24 18:25:53 2004 +++ kaffe/ChangeLog Sun Oct 24 19:23:31 2004 @@ -1,5 +1,80 @@ 2004-10-24 Dalibor Topic <[EMAIL PROTECTED]> + * libraries/javalib/Makefile.am, + libraries/javalib/Makefile.in, + libraries/javalib/all.files: + Regenerated. + + * libraries/javalib/javax/xml/XMLConstants.java, + libraries/javalib/javax/xml/datatype/DatatypeConfigurationException.java, + libraries/javalib/javax/xml/datatype/DatatypeConstants.java, + libraries/javalib/javax/xml/datatype/DatatypeFactory.java, + libraries/javalib/javax/xml/datatype/Duration.java, + libraries/javalib/javax/xml/datatype/XMLGregorianCalendar.java, + libraries/javalib/javax/xml/datatype/package.html, + libraries/javalib/javax/xml/namespace/NamespaceContext.java, + libraries/javalib/javax/xml/namespace/QName.java, + libraries/javalib/javax/xml/namespace/package.html, + libraries/javalib/javax/xml/validation/Schema.java, + libraries/javalib/javax/xml/validation/SchemaFactory.java, + libraries/javalib/javax/xml/validation/TypeInfoProvider.java, + libraries/javalib/javax/xml/validation/Validator.java, + libraries/javalib/javax/xml/validation/ValidatorHandler.java, + libraries/javalib/javax/xml/validation/package.html, + libraries/javalib/javax/xml/xpath/XPath.java, + libraries/javalib/javax/xml/xpath/XPathConstants.java, + libraries/javalib/javax/xml/xpath/XPathException.java, + libraries/javalib/javax/xml/xpath/XPathExpression.java, + libraries/javalib/javax/xml/xpath/XPathExpressionException.java, + libraries/javalib/javax/xml/xpath/XPathFactory.java, + libraries/javalib/javax/xml/xpath/XPathFactoryConfigurationException.java, + libraries/javalib/javax/xml/xpath/XPathFunction.java, + libraries/javalib/javax/xml/xpath/XPathFunctionException.java, + libraries/javalib/javax/xml/xpath/XPathFunctionResolver.java, + libraries/javalib/javax/xml/xpath/XPathVariableResolver.java, + libraries/javalib/javax/xml/xpath/package.html: + New files taken from GNU JAXP. + + * libraries/javalib/gnu/xml/dom/DomImpl.java, + libraries/javalib/gnu/xml/libxmlj/transform/GnomeTransformer.java, + libraries/javalib/javax/xml/parsers/ClassStuff.java, + libraries/javalib/javax/xml/parsers/DocumentBuilder.java, + libraries/javalib/javax/xml/parsers/DocumentBuilderFactory.java, + libraries/javalib/javax/xml/parsers/FactoryConfigurationError.java, + libraries/javalib/javax/xml/parsers/ParserConfigurationException.java, + libraries/javalib/javax/xml/parsers/SAXParser.java, + libraries/javalib/javax/xml/parsers/SAXParserFactory.java, + libraries/javalib/javax/xml/transform/ClassStuff.java, + libraries/javalib/javax/xml/transform/ErrorListener.java, + libraries/javalib/javax/xml/transform/OutputKeys.java, + libraries/javalib/javax/xml/transform/Result.java, + libraries/javalib/javax/xml/transform/Source.java, + libraries/javalib/javax/xml/transform/SourceLocator.java, + libraries/javalib/javax/xml/transform/Templates.java, + libraries/javalib/javax/xml/transform/Transformer.java, + libraries/javalib/javax/xml/transform/TransformerException.java, + libraries/javalib/javax/xml/transform/TransformerFactory.java, + libraries/javalib/javax/xml/transform/TransformerFactoryConfigurationError.java, + libraries/javalib/javax/xml/transform/URIResolver.java, + libraries/javalib/javax/xml/transform/dom/DOMLocator.java, + libraries/javalib/javax/xml/transform/dom/DOMResult.java, + libraries/javalib/javax/xml/transform/dom/DOMSource.java, + libraries/javalib/javax/xml/transform/sax/SAXResult.java, + libraries/javalib/javax/xml/transform/sax/SAXSource.java, + libraries/javalib/javax/xml/transform/sax/TemplatesHandler.java, + libraries/javalib/javax/xml/transform/sax/TransformerHandler.java, + libraries/javalib/javax/xml/transform/stream/StreamResult.java, + libraries/javalib/javax/xml/transform/stream/StreamSource.java: + Resynced with GNU JAXP. + + 2004-10-20 Chris Burdess <[EMAIL PROTECTED]> + + * all: Updates to bring API in line with JAXP 1.3: introduction of + datatype, namespace, validation, and xpath JAXP packages and + miscellaneous updates to other packages. Style corrections. + +2004-10-24 Dalibor Topic <[EMAIL PROTECTED]> + * libraries/javalib/javax/swing/tree/DefaultTreeCellEditor.java, libraries/javalib/javax/swing/tree/DefaultTreeModel.java, libraries/javalib/javax/swing/tree/DefaultTreeSelectionModel.java: Index: kaffe/libraries/javalib/Makefile.am diff -u kaffe/libraries/javalib/Makefile.am:1.253 kaffe/libraries/javalib/Makefile.am:1.254 --- kaffe/libraries/javalib/Makefile.am:1.253 Sat Oct 23 12:08:15 2004 +++ kaffe/libraries/javalib/Makefile.am Sun Oct 24 19:23:35 2004 @@ -258,11 +258,16 @@ $(javax_swing_undo_SRCS) \ $(javax_transaction_SRCS) \ $(javax_transaction_xa_SRCS) \ + $(javax_xml_SRCS) \ + $(javax_xml_datatype_SRCS) \ + $(javax_xml_namespace_SRCS) \ $(javax_xml_parsers_SRCS) \ $(javax_xml_transform_SRCS) \ $(javax_xml_transform_dom_SRCS) \ $(javax_xml_transform_sax_SRCS) \ $(javax_xml_transform_stream_SRCS) \ + $(javax_xml_validation_SRCS) \ + $(javax_xml_xpath_SRCS) \ $(kaffe_beans_editors_SRCS) \ $(kaffe_io_SRCS) \ $(kaffe_jar_SRCS) \ @@ -3491,6 +3496,17 @@ javax/transaction/xa/XAException.java \ javax/transaction/xa/XAResource.java \ javax/transaction/xa/Xid.java +javax_xml_SRCS = \ + javax/xml/XMLConstants.java +javax_xml_datatype_SRCS = \ + javax/xml/datatype/DatatypeConfigurationException.java \ + javax/xml/datatype/DatatypeConstants.java \ + javax/xml/datatype/DatatypeFactory.java \ + javax/xml/datatype/Duration.java \ + javax/xml/datatype/XMLGregorianCalendar.java +javax_xml_namespace_SRCS = \ + javax/xml/namespace/NamespaceContext.java \ + javax/xml/namespace/QName.java javax_xml_parsers_SRCS = \ javax/xml/parsers/ClassStuff.java \ javax/xml/parsers/DocumentBuilder.java \ @@ -3526,6 +3542,24 @@ javax_xml_transform_stream_SRCS = \ javax/xml/transform/stream/StreamResult.java \ javax/xml/transform/stream/StreamSource.java +javax_xml_validation_SRCS = \ + javax/xml/validation/Schema.java \ + javax/xml/validation/SchemaFactory.java \ + javax/xml/validation/TypeInfoProvider.java \ + javax/xml/validation/Validator.java \ + javax/xml/validation/ValidatorHandler.java +javax_xml_xpath_SRCS = \ + javax/xml/xpath/XPath.java \ + javax/xml/xpath/XPathConstants.java \ + javax/xml/xpath/XPathException.java \ + javax/xml/xpath/XPathExpression.java \ + javax/xml/xpath/XPathExpressionException.java \ + javax/xml/xpath/XPathFactory.java \ + javax/xml/xpath/XPathFactoryConfigurationException.java \ + javax/xml/xpath/XPathFunction.java \ + javax/xml/xpath/XPathFunctionException.java \ + javax/xml/xpath/XPathFunctionResolver.java \ + javax/xml/xpath/XPathVariableResolver.java kaffe_beans_editors_SRCS = \ kaffe/beans/editors/BooleanEditor.java \ kaffe/beans/editors/ByteEditor.java \ Index: kaffe/libraries/javalib/Makefile.in diff -u kaffe/libraries/javalib/Makefile.in:1.333 kaffe/libraries/javalib/Makefile.in:1.334 --- kaffe/libraries/javalib/Makefile.in:1.333 Sat Oct 23 12:08:16 2004 +++ kaffe/libraries/javalib/Makefile.in Sun Oct 24 19:23:37 2004 @@ -599,11 +599,16 @@ $(javax_swing_undo_SRCS) \ $(javax_transaction_SRCS) \ $(javax_transaction_xa_SRCS) \ + $(javax_xml_SRCS) \ + $(javax_xml_datatype_SRCS) \ + $(javax_xml_namespace_SRCS) \ $(javax_xml_parsers_SRCS) \ $(javax_xml_transform_SRCS) \ $(javax_xml_transform_dom_SRCS) \ $(javax_xml_transform_sax_SRCS) \ $(javax_xml_transform_stream_SRCS) \ + $(javax_xml_validation_SRCS) \ + $(javax_xml_xpath_SRCS) \ $(kaffe_beans_editors_SRCS) \ $(kaffe_io_SRCS) \ $(kaffe_jar_SRCS) \ @@ -4037,6 +4042,20 @@ javax/transaction/xa/XAResource.java \ javax/transaction/xa/Xid.java +javax_xml_SRCS = \ + javax/xml/XMLConstants.java + +javax_xml_datatype_SRCS = \ + javax/xml/datatype/DatatypeConfigurationException.java \ + javax/xml/datatype/DatatypeConstants.java \ + javax/xml/datatype/DatatypeFactory.java \ + javax/xml/datatype/Duration.java \ + javax/xml/datatype/XMLGregorianCalendar.java + +javax_xml_namespace_SRCS = \ + javax/xml/namespace/NamespaceContext.java \ + javax/xml/namespace/QName.java + javax_xml_parsers_SRCS = \ javax/xml/parsers/ClassStuff.java \ javax/xml/parsers/DocumentBuilder.java \ @@ -4076,6 +4095,26 @@ javax_xml_transform_stream_SRCS = \ javax/xml/transform/stream/StreamResult.java \ javax/xml/transform/stream/StreamSource.java + +javax_xml_validation_SRCS = \ + javax/xml/validation/Schema.java \ + javax/xml/validation/SchemaFactory.java \ + javax/xml/validation/TypeInfoProvider.java \ + javax/xml/validation/Validator.java \ + javax/xml/validation/ValidatorHandler.java + +javax_xml_xpath_SRCS = \ + javax/xml/xpath/XPath.java \ + javax/xml/xpath/XPathConstants.java \ + javax/xml/xpath/XPathException.java \ + javax/xml/xpath/XPathExpression.java \ + javax/xml/xpath/XPathExpressionException.java \ + javax/xml/xpath/XPathFactory.java \ + javax/xml/xpath/XPathFactoryConfigurationException.java \ + javax/xml/xpath/XPathFunction.java \ + javax/xml/xpath/XPathFunctionException.java \ + javax/xml/xpath/XPathFunctionResolver.java \ + javax/xml/xpath/XPathVariableResolver.java kaffe_beans_editors_SRCS = \ kaffe/beans/editors/BooleanEditor.java \ Index: kaffe/libraries/javalib/all.files diff -u kaffe/libraries/javalib/all.files:1.41 kaffe/libraries/javalib/all.files:1.42 --- kaffe/libraries/javalib/all.files:1.41 Sat Oct 23 12:08:19 2004 +++ kaffe/libraries/javalib/all.files Sun Oct 24 19:23:38 2004 @@ -2967,6 +2967,14 @@ javax/transaction/xa/XAException.java javax/transaction/xa/XAResource.java javax/transaction/xa/Xid.java +javax/xml/XMLConstants.java +javax/xml/datatype/DatatypeConfigurationException.java +javax/xml/datatype/DatatypeConstants.java +javax/xml/datatype/DatatypeFactory.java +javax/xml/datatype/Duration.java +javax/xml/datatype/XMLGregorianCalendar.java +javax/xml/namespace/NamespaceContext.java +javax/xml/namespace/QName.java javax/xml/parsers/ClassStuff.java javax/xml/parsers/DocumentBuilder.java javax/xml/parsers/DocumentBuilderFactory.java @@ -2997,6 +3005,22 @@ javax/xml/transform/sax/TransformerHandler.java javax/xml/transform/stream/StreamResult.java javax/xml/transform/stream/StreamSource.java +javax/xml/validation/Schema.java +javax/xml/validation/SchemaFactory.java +javax/xml/validation/TypeInfoProvider.java +javax/xml/validation/Validator.java +javax/xml/validation/ValidatorHandler.java +javax/xml/xpath/XPath.java +javax/xml/xpath/XPathConstants.java +javax/xml/xpath/XPathException.java +javax/xml/xpath/XPathExpression.java +javax/xml/xpath/XPathExpressionException.java +javax/xml/xpath/XPathFactory.java +javax/xml/xpath/XPathFactoryConfigurationException.java +javax/xml/xpath/XPathFunction.java +javax/xml/xpath/XPathFunctionException.java +javax/xml/xpath/XPathFunctionResolver.java +javax/xml/xpath/XPathVariableResolver.java kaffe/beans/editors/BooleanEditor.java kaffe/beans/editors/ByteEditor.java kaffe/beans/editors/DoubleEditor.java Index: kaffe/libraries/javalib/gnu/xml/dom/DomImpl.java diff -u kaffe/libraries/javalib/gnu/xml/dom/DomImpl.java:1.6 kaffe/libraries/javalib/gnu/xml/dom/DomImpl.java:1.7 --- kaffe/libraries/javalib/gnu/xml/dom/DomImpl.java:1.6 Mon Oct 18 20:19:46 2004 +++ kaffe/libraries/javalib/gnu/xml/dom/DomImpl.java Sun Oct 24 19:23:39 2004 @@ -117,7 +117,7 @@ } else if ("xpath".equals (name)) { if (version == null || version.equals ("")) return true; - if ("1.0".equals (version)) + if ("3.0".equals (version)) return true; } Index: kaffe/libraries/javalib/gnu/xml/libxmlj/transform/GnomeTransformer.java diff -u kaffe/libraries/javalib/gnu/xml/libxmlj/transform/GnomeTransformer.java:1.3 kaffe/libraries/javalib/gnu/xml/libxmlj/transform/GnomeTransformer.java:1.4 --- kaffe/libraries/javalib/gnu/xml/libxmlj/transform/GnomeTransformer.java:1.3 Fri Sep 17 21:02:05 2004 +++ kaffe/libraries/javalib/gnu/xml/libxmlj/transform/GnomeTransformer.java Sun Oct 24 19:23:40 2004 @@ -1,5 +1,5 @@ /* - * $Id: GnomeTransformer.java,v 1.3 2004/09/17 21:02:05 dalibor Exp $ + * $Id: GnomeTransformer.java,v 1.4 2004/10/24 19:23:40 robilad Exp $ * Copyright (C) 2003, 2004 Free Software Foundation, Inc. * * This file is part of GNU Classpathx/jaxp. =================================================================== Checking out kaffe/libraries/javalib/javax/xml/XMLConstants.java RCS: /home/cvs/kaffe/kaffe/libraries/javalib/javax/xml/XMLConstants.java,v VERS: 1.1 *************** --- /dev/null Sun Aug 4 19:57:58 2002 +++ kaffe/libraries/javalib/javax/xml/XMLConstants.java Sun Oct 24 19:27:44 2004 @@ -0,0 +1,118 @@ +/* + * XMLConstants.java + * Copyright (C) 2004 Chris Burdess + * + * This file is part of GNU JAXP, a library. + * + * GNU JAXP 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 of the License, or + * (at your option) any later version. + * + * GNU JAXP 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 + * obliged to do so. If you do not wish to do so, delete this + * exception statement from your version. + */ + +package javax.xml; + +/** + * Repository for well-known XML constants. + * @since 1.3 + */ +public final class XMLConstants +{ + + /** + * Dummy namespace URI indicating that there is no namespace. + * @see http://www.w3.org/TR/REC-xml-names/#defaulting + */ + public static final String NULL_NS_URI = ""; + + /** + * Dummy namespace prefix indicating that there is no namespace. + * @see http://www.w3.org/TR/REC-xml-names/#ns-qualnames + */ + public static final String DEFAULT_NS_PREFIX = ""; + + /** + * The XML Namespace URI. + * @see http://www.w3.org/TR/REC-xml-names/#ns-qualnames + */ + public static final String XML_NS_URI = "http://www.w3.org/XML/1998/namespace"; + + /** + * The XML Namespace prefix. + * @see http://www.w3.org/TR/REC-xml-names/#ns-qualnames + */ + public static final String XML_NS_PREFIX = "xml"; + + /** + * The XML Namespace declaration URI. + * @see http://www.w3.org/TR/REC-xml-names/#ns-qualnames + */ + public static final String XMLNS_ATTRIBUTE_NS_URI = "http://www.w3.org/2000/xmlns/"; + + /** + * The XML Namespace declaration attribute. + * @see http://www.w3.org/TR/REC-xml-names/#ns-qualnames + */ + public static final String XMLNS_ATTRIBUTE = "xmlns"; + + /** + * The XML Schema (XSD) namespace URI. + * @see http://www.w3.org/TR/xmlschema-1/#Instance_Document_Constructions + */ + public static final String W3C_XML_SCHEMA_NS_URI = "http://www.w3.org/2001/XMLSchema"; + + /** + * The XML Schema Instance (XSI) namespace URI. + * @see http://www.w3.org/TR/xmlschema-1/#Instance_Document_Constructions + */ + public static final String W3C_XML_SCHEMA_INSTANCE_NS_URI = "http://www.w3.org/2001/XMLSchema-instance"; + + /** + * The XPath 2.0 datatypes namespace URI. + * @see http://www.w3.org/TR/xpath-datamodel + */ + public static final String W3C_XPATH_DATATYPE_NS_URI = "http://www.w3.org/2003/11/xpath-datatypes"; + + /** + * The XML DTD namespace URI. + */ + public static final String XML_DTD_NS_URI = "http://www.w3.org/TR/REC-xml"; + + /** + * The RELAX NG Namespace URI. + * @see http://relaxng.org/spec-20011203.html + */ + public static final String RELAXNG_NS_URI = "http://relaxng.org/ns/structure/1.0"; + + /** + * DOM feature for secure processing. + */ + public static final String FEATURE_SECURE_PROCESSING = "TODO"; + +} =================================================================== Checking out kaffe/libraries/javalib/javax/xml/datatype/DatatypeConfigurationException.java RCS: /home/cvs/kaffe/kaffe/libraries/javalib/javax/xml/datatype/DatatypeConfigurationException.java,v VERS: 1.1 *************** --- /dev/null Sun Aug 4 19:57:58 2002 +++ kaffe/libraries/javalib/javax/xml/datatype/DatatypeConfigurationException.java Sun Oct 24 19:27:44 2004 @@ -0,0 +1,69 @@ +/* + * DatatypeConfigurationException.java + * Copyright (C) 2004 Chris Burdess + * + * This file is part of GNU JAXP, a library. + * + * GNU JAXP 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 of the License, or + * (at your option) any later version. + * + * GNU JAXP 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 + * obliged to do so. If you do not wish to do so, delete this + * exception statement from your version. + */ + +package javax.xml.datatype; + +/** + * A serious error during datatype configuration. + * @since 1.3 + */ +public class DatatypeConfigurationException + extends Exception +{ + + public DatatypeConfigurationException() + { + super(); + } + + public DatatypeConfigurationException(String message) + { + super(message); + } + + public DatatypeConfigurationException(String message, Throwable cause) + { + super(message, cause); + } + + public DatatypeConfigurationException(Throwable cause) + { + super(cause); + } + +} =================================================================== Checking out kaffe/libraries/javalib/javax/xml/datatype/DatatypeConstants.java RCS: /home/cvs/kaffe/kaffe/libraries/javalib/javax/xml/datatype/DatatypeConstants.java,v VERS: 1.1 *************** --- /dev/null Sun Aug 4 19:57:58 2002 +++ kaffe/libraries/javalib/javax/xml/datatype/DatatypeConstants.java Sun Oct 24 19:27:44 2004 @@ -0,0 +1,258 @@ +/* + * DatatypeConstants.java + * Copyright (C) 2004 Chris Burdess + * + * This file is part of GNU JAXP, a library. + * + * GNU JAXP 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 of the License, or + * (at your option) any later version. + * + * GNU JAXP 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 + * obliged to do so. If you do not wish to do so, delete this + * exception statement from your version. + */ + +package javax.xml.datatype; + +import javax.xml.namespace.QName; + +/** + * Basic data type constants. + * @since 1.3 + */ +public final class DatatypeConstants +{ + + /** + * Typesafe enumerated class representing the six fields of the + * <a href='Duration.html'>Duration</a> class. + */ + public static final class Field + { + + final int id; + final String name; + + Field(int id, String name) + { + this.id = id; + this.name = name; + } + + public int getId() + { + return id; + } + + public String toString() + { + return name; + } + + } + + /** + * Value for January. + */ + public static final int JANUARY = 1; + + /** + * Value for February. + */ + public static final int FEBRUARY = 2; + + /** + * Value for March. + */ + public static final int MARCH = 3; + + /** + * Value for April. + */ + public static final int APRIL = 4; + + /** + * Value for May. + */ + public static final int MAY = 5; + + /** + * Value for June. + */ + public static final int JUNE = 6; + + /** + * Value for July. + */ + public static final int JULY = 7; + + /** + * Value for August. + */ + public static final int AUGUST = 8; + + /** + * Value for September. + */ + public static final int SEPTEMBER = 9; + + /** + * Value for October. + */ + public static final int OCTOBER = 10; + + /** + * Value for November. + */ + public static final int NOVEMBER = 11; + + /** + * Value for December. + */ + public static final int DECEMBER = 12; + + /** + * Comparison result. + */ + public static final int LESSER = -1; + + /** + * Comparison result. + */ + public static final int EQUAL = 0; + + /** + * Comparison result. + */ + public static final int GREATER = 1; + + /** + * Comparison result. + */ + public static final int INDETERMINATE = -2; + + /** + * Comparison result. + */ + public static final int FIELD_UNDEFINED = -3; + + /** + * Constant that represents the years field. + */ + public static final Field YEARS = new Field(1, "YEARS"); + + /** + * Constant that represents the months field. + */ + public static final Field MONTHS = new Field(2, "MONTHS"); + + /** + * Constant that represents the days field. + */ + public static final Field DAYS = new Field(3, "DAYS"); + + /** + * Constant that represents the hours field. + */ + public static final Field HOURS = new Field(4, "HOURS"); + + /** + * Constant that represents the minutes field. + */ + public static final Field MINUTES = new Field(5, "MINUTES"); + + /** + * Constant that represents the seconds field. + */ + public static final Field SECONDS = new Field(6, "SECONDS"); + + /** + * The qualified-name for the <code>dateTime</code> data type. + */ + public static final QName DATETIME = new QName ("http://www.w3.org/2001/XMLSchema#dateTime", ""); + + /** + * The qualified-name for the <code>time</code> data type. + */ + public static final QName TIME = new QName ("http://www.w3.org/2001/XMLSchema#time", ""); + + /** + * The qualified-name for the <code>date</code> data type. + */ + public static final QName DATE = new QName ("http://www.w3.org/2001/XMLSchema#date", ""); + + /** + * The qualified-name for the <code>gYearMonth</code> data type. + */ + public static final QName GYEARMONTH = new QName ("http://www.w3.org/2001/XMLSchema#gYearMonth", ""); + + /** + * The qualified-name for the <code>gMonthDay</code> data type. + */ + public static final QName GMONTHDAY = new QName ("http://www.w3.org/2001/XMLSchema#gMonthDay", ""); + + /** + * The qualified-name for the <code>gYear</code> data type. + */ + public static final QName GYEAR = new QName ("http://www.w3.org/2001/XMLSchema#gYear", ""); + + /** + * The qualified-name for the <code>gMonth</code> data type. + */ + public static final QName GMONTH = new QName ("http://www.w3.org/2001/XMLSchema#gMonth", ""); + + /** + * The qualified-name for the <code>gDay</code> data type. + */ + public static final QName GDAY = new QName ("http://www.w3.org/2001/XMLSchema#gDay", ""); + + /** + * The qualified-name for the <code>duration</code> data type. + */ + public static final QName DURATION = new QName ("http://www.w3.org/2001/XMLSchema#duration", ""); + + /** + * The qualified-name for the <code>dayTimeDuration</code> data type. + */ + public static final QName DURATION_DAYTIME = new QName ("http://www.w3.org/2001/XMLSchema#dayTimeDuration", ""); + + /** + * The qualified-name for the <code>yearMonthDuration</code> data type. + */ + public static final QName DURATION_YEARMONTH = new QName ("http://www.w3.org/2001/XMLSchema#yearMonthDuration", ""); + + /** + * XML Schema maximum timezone offset, in minutes. + */ + public static final int MAX_TIMEZONE_OFFSET = -840; + + /** + * XML Schema minimum timezone offset, in minutes. + */ + public static final int MIN_TIMEZONE_OFFSET = 840; + +} =================================================================== Checking out kaffe/libraries/javalib/javax/xml/datatype/DatatypeFactory.java RCS: /home/cvs/kaffe/kaffe/libraries/javalib/javax/xml/datatype/DatatypeFactory.java,v VERS: 1.1 *************** --- /dev/null Sun Aug 4 19:57:58 2002 +++ kaffe/libraries/javalib/javax/xml/datatype/DatatypeFactory.java Sun Oct 24 19:27:44 2004 @@ -0,0 +1,400 @@ +/* + * DatatypeFactory.java + * Copyright (C) 2004 Chris Burdess + * + * This file is part of GNU JAXP, a library. + * + * GNU JAXP 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 of the License, or + * (at your option) any later version. + * + * GNU JAXP 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 + * obliged to do so. If you do not wish to do so, delete this + * exception statement from your version. + */ + +package javax.xml.datatype; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.GregorianCalendar; + +/** + * Factory class to create new datatype objects mapping XML to and from Java + * objects. + * @since 1.3 + */ +public abstract class DatatypeFactory +{ + + /** + * JAXP 1.3 default property name. + */ + public static final String DATATYPEFACTORY_PROPERTY = "javax.xml.datatype.DatatypeFactory"; + + /** + * JAXP 1.3 default implementation class name. + */ + public static final java.lang.String DATATYPEFACTORY_IMPLEMENTATION_CLASS = "gnu.xml.datatype.JAXPDatatypeFactory"; + + protected DatatypeFactory() + { + } + + /** + * Returns a new factory instance. + */ + public static DatatypeFactory newInstance() + throws DatatypeConfigurationException + { + try + { + Class t = Class.forName(DATATYPEFACTORY_IMPLEMENTATION_CLASS); + return (DatatypeFactory) t.newInstance(); + } + catch (Exception e) + { + throw new DatatypeConfigurationException (e); + } + } + + /** + * Returns a new duration from its string representation. + * @param lexicalRepresentation the lexical representation of the + * duration, as specified in XML Schema 1.0 section 3.2.6.1. + */ + public abstract Duration newDuration(String lexicalRepresentation); + + /** + * Returns a new duration. *** Patch too long, truncated *** _______________________________________________ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe