mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-29 23:04:12 +08:00
Makefile.am: New file.
* external/w3c_dom/Makefile.am: New file. * external/w3c_dom/Makefile.in: New file. * external/sax/Makefile.am: New file. * external/sax/Makefile.in: New file. * external/Makefile.in: New file. * external/Makefile.am: New file. * external/README: New file from Classpath. * configure, aclocal.m4, Makefile.in: Rebuilt. * configure.ac (AC_CONFIG_FILES): Create new Makefiles. * Makefile.am (SUBDIRS): Added external. (toolexeclib_LTLIBRARIES): Removed lib-org-xml-sax.la, lib-org-w3c-dom.la, lib-org-ietf-gss.la. (BOOTCLASSPATH): New variable. (AM_GCJFLAGS): Use it. (gnu_xml_source_files): New variable. (libgcj_la_SOURCES): Use it. (libgcj_la_LDADD): Include new convenience libraries. (lib_org_ietf_jgss_la_SOURCES): Removed. (lib_org_ietf_jgss_la_DEPENDENCIES): Likewise. (lib_org_ietf_jgss_la_LIBADD): Likewise. (lib_org_w3c_dom_la_SOURCES): Removed. (lib_org_w3c_dom_la_DEPENDENCIES): Likewise. (lib_org_w3c_dom_la_LIBADD): Likewise. (lib_org_xml_sax_la_SOURCES): Removed. (lib_org_xml_sax_la_DEPENDENCIES): Likewise. (lib_org_xml_sax_la_LIBADD): Likewise. (all_java_source_files): Updated. (property_files): Likewise. (libgcj-@gcc_version@.jar): Include classes from external/. (javax_source_files): Updated. (ordinary_java_source_files): Updated. * 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/datatype/package.html, javax/xml/namespace/NamespaceContext.java, javax/xml/namespace/QName.java, javax/xml/namespace/package.html, javax/xml/parsers/DocumentBuilder.java, javax/xml/parsers/DocumentBuilderFactory.java, javax/xml/parsers/FactoryConfigurationError.java, javax/xml/parsers/ParserConfigurationException.java, javax/xml/parsers/SAXParser.java, javax/xml/parsers/SAXParserFactory.java, javax/xml/parsers/package.html, javax/xml/transform/ErrorListener.java, javax/xml/transform/OutputKeys.java, javax/xml/transform/Result.java, javax/xml/transform/Source.java, javax/xml/transform/SourceLocator.java, javax/xml/transform/Templates.java, javax/xml/transform/Transformer.java, javax/xml/transform/TransformerConfigurationException.java, javax/xml/transform/TransformerException.java, javax/xml/transform/TransformerFactory.java, javax/xml/transform/TransformerFactoryConfigurationError.java, javax/xml/transform/URIResolver.java, javax/xml/transform/package.html, javax/xml/transform/dom/DOMLocator.java, javax/xml/transform/dom/DOMResult.java, javax/xml/transform/dom/DOMSource.java, javax/xml/transform/dom/package.html, javax/xml/transform/sax/SAXResult.java, javax/xml/transform/sax/SAXSource.java, javax/xml/transform/sax/SAXTransformerFactory.java, javax/xml/transform/sax/TemplatesHandler.java, javax/xml/transform/sax/TransformerHandler.java, javax/xml/transform/sax/package.html, javax/xml/transform/stream/StreamResult.java, javax/xml/transform/stream/StreamSource.java, javax/xml/transform/stream/package.html, 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/validation/package.html, 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, javax/xml/xpath/package.html: New files, from GNU JAXP. * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java, org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java, org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java, org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java, org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java, org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java, org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java, org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java, org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java, org/w3c/dom/ranges/DocumentRange.java, org/w3c/dom/ranges/Range.java, org/w3c/dom/ranges/RangeException.java, org/w3c/dom/traversal/DocumentTraversal.java, org/w3c/dom/traversal/NodeFilter.java, org/w3c/dom/traversal/NodeIterator.java, org/w3c/dom/traversal/TreeWalker.java, org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java, org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java, org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java, org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java, org/xml/sax/InputSource.java, org/xml/sax/Locator.java, org/xml/sax/Parser.java, org/xml/sax/SAXException.java, org/xml/sax/SAXNotRecognizedException.java, org/xml/sax/SAXNotSupportedException.java, org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java, org/xml/sax/XMLReader.java, org/xml/sax/package.html, org/xml/sax/ext/DeclHandler.java, org/xml/sax/ext/LexicalHandler.java, org/xml/sax/ext/package.html, org/xml/sax/helpers/AttributeListImpl.java, org/xml/sax/helpers/AttributesImpl.java, org/xml/sax/helpers/DefaultHandler.java, org/xml/sax/helpers/LocatorImpl.java, org/xml/sax/helpers/NamespaceSupport.java, org/xml/sax/helpers/NewInstance.java, org/xml/sax/helpers/ParserAdapter.java, org/xml/sax/helpers/ParserFactory.java, org/xml/sax/helpers/XMLFilterImpl.java, org/xml/sax/helpers/XMLReaderAdapter.java, org/xml/sax/helpers/XMLReaderFactory.java, org/xml/sax/helpers/package.html: Moved to external/. * external/sax/README, external/sax/org/xml/sax/AttributeList.java, external/sax/org/xml/sax/Attributes.java, external/sax/org/xml/sax/ContentHandler.java, external/sax/org/xml/sax/DTDHandler.java, external/sax/org/xml/sax/DocumentHandler.java, external/sax/org/xml/sax/EntityResolver.java, external/sax/org/xml/sax/ErrorHandler.java, external/sax/org/xml/sax/HandlerBase.java, external/sax/org/xml/sax/InputSource.java, external/sax/org/xml/sax/Locator.java, external/sax/org/xml/sax/Parser.java, external/sax/org/xml/sax/SAXException.java, external/sax/org/xml/sax/SAXNotRecognizedException.java, external/sax/org/xml/sax/SAXNotSupportedException.java, external/sax/org/xml/sax/SAXParseException.java, external/sax/org/xml/sax/XMLFilter.java, external/sax/org/xml/sax/XMLReader.java, external/sax/org/xml/sax/package.html, external/sax/org/xml/sax/ext/Attributes2.java, external/sax/org/xml/sax/ext/Attributes2Impl.java, external/sax/org/xml/sax/ext/DeclHandler.java, external/sax/org/xml/sax/ext/DefaultHandler2.java, external/sax/org/xml/sax/ext/EntityResolver2.java, external/sax/org/xml/sax/ext/LexicalHandler.java, external/sax/org/xml/sax/ext/Locator2.java, external/sax/org/xml/sax/ext/Locator2Impl.java, external/sax/org/xml/sax/ext/package.html, external/sax/org/xml/sax/helpers/AttributeListImpl.java, external/sax/org/xml/sax/helpers/AttributesImpl.java, external/sax/org/xml/sax/helpers/DefaultHandler.java, external/sax/org/xml/sax/helpers/LocatorImpl.java, external/sax/org/xml/sax/helpers/NamespaceSupport.java, external/sax/org/xml/sax/helpers/NewInstance.java, external/sax/org/xml/sax/helpers/ParserAdapter.java, external/sax/org/xml/sax/helpers/ParserFactory.java, external/sax/org/xml/sax/helpers/XMLFilterImpl.java, external/sax/org/xml/sax/helpers/XMLReaderAdapter.java, external/sax/org/xml/sax/helpers/XMLReaderFactory.java, external/sax/org/xml/sax/helpers/package.html, external/w3c_dom/COPYRIGHT.html, external/w3c_dom/README, external/w3c_dom/org/w3c/dom/Attr.java, external/w3c_dom/org/w3c/dom/CDATASection.java, external/w3c_dom/org/w3c/dom/CharacterData.java, external/w3c_dom/org/w3c/dom/Comment.java, external/w3c_dom/org/w3c/dom/DOMConfiguration.java, external/w3c_dom/org/w3c/dom/DOMError.java, external/w3c_dom/org/w3c/dom/DOMErrorHandler.java, external/w3c_dom/org/w3c/dom/DOMException.java, external/w3c_dom/org/w3c/dom/DOMImplementation.java, external/w3c_dom/org/w3c/dom/DOMImplementationList.java, external/w3c_dom/org/w3c/dom/DOMImplementationSource.java, external/w3c_dom/org/w3c/dom/DOMLocator.java, external/w3c_dom/org/w3c/dom/DOMStringList.java, external/w3c_dom/org/w3c/dom/Document.java, external/w3c_dom/org/w3c/dom/DocumentFragment.java, external/w3c_dom/org/w3c/dom/DocumentType.java, external/w3c_dom/org/w3c/dom/Element.java, external/w3c_dom/org/w3c/dom/Entity.java, external/w3c_dom/org/w3c/dom/EntityReference.java, external/w3c_dom/org/w3c/dom/NameList.java, external/w3c_dom/org/w3c/dom/NamedNodeMap.java, external/w3c_dom/org/w3c/dom/Node.java, external/w3c_dom/org/w3c/dom/NodeList.java, external/w3c_dom/org/w3c/dom/Notation.java, external/w3c_dom/org/w3c/dom/ProcessingInstruction.java, external/w3c_dom/org/w3c/dom/Text.java, external/w3c_dom/org/w3c/dom/TypeInfo.java, external/w3c_dom/org/w3c/dom/UserDataHandler.java, external/w3c_dom/org/w3c/dom/bootstrap/DOMImplementationRegistry.java, external/w3c_dom/org/w3c/dom/css/CSS2Properties.java, external/w3c_dom/org/w3c/dom/css/CSSCharsetRule.java, external/w3c_dom/org/w3c/dom/css/CSSFontFaceRule.java, external/w3c_dom/org/w3c/dom/css/CSSImportRule.java, external/w3c_dom/org/w3c/dom/css/CSSMediaRule.java, external/w3c_dom/org/w3c/dom/css/CSSPageRule.java, external/w3c_dom/org/w3c/dom/css/CSSPrimitiveValue.java, external/w3c_dom/org/w3c/dom/css/CSSRule.java, external/w3c_dom/org/w3c/dom/css/CSSRuleList.java, external/w3c_dom/org/w3c/dom/css/CSSStyleDeclaration.java, external/w3c_dom/org/w3c/dom/css/CSSStyleRule.java, external/w3c_dom/org/w3c/dom/css/CSSStyleSheet.java, external/w3c_dom/org/w3c/dom/css/CSSUnknownRule.java, external/w3c_dom/org/w3c/dom/css/CSSValue.java, external/w3c_dom/org/w3c/dom/css/CSSValueList.java, external/w3c_dom/org/w3c/dom/css/Counter.java, external/w3c_dom/org/w3c/dom/css/DOMImplementationCSS.java, external/w3c_dom/org/w3c/dom/css/DocumentCSS.java, external/w3c_dom/org/w3c/dom/css/ElementCSSInlineStyle.java, external/w3c_dom/org/w3c/dom/css/RGBColor.java, external/w3c_dom/org/w3c/dom/css/Rect.java, external/w3c_dom/org/w3c/dom/css/ViewCSS.java, external/w3c_dom/org/w3c/dom/events/DocumentEvent.java, external/w3c_dom/org/w3c/dom/events/Event.java, external/w3c_dom/org/w3c/dom/events/EventException.java, external/w3c_dom/org/w3c/dom/events/EventListener.java, external/w3c_dom/org/w3c/dom/events/EventTarget.java, external/w3c_dom/org/w3c/dom/events/MouseEvent.java, external/w3c_dom/org/w3c/dom/events/MutationEvent.java, external/w3c_dom/org/w3c/dom/events/UIEvent.java, external/w3c_dom/org/w3c/dom/html2/HTMLAnchorElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLAppletElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLAreaElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLBRElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLBaseElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLBaseFontElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLBodyElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLButtonElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLCollection.java, external/w3c_dom/org/w3c/dom/html2/HTMLDListElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLDirectoryElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLDivElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLDocument.java, external/w3c_dom/org/w3c/dom/html2/HTMLElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLFieldSetElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLFontElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLFormElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLFrameElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLFrameSetElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLHRElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLHeadElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLHeadingElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLHtmlElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLIFrameElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLImageElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLInputElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLIsIndexElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLLIElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLLabelElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLLegendElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLLinkElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLMapElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLMenuElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLMetaElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLModElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLOListElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLObjectElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLOptGroupElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLOptionElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLOptionsCollection.java, external/w3c_dom/org/w3c/dom/html2/HTMLParagraphElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLParamElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLPreElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLQuoteElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLScriptElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLSelectElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLStyleElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLTableCaptionElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLTableCellElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLTableColElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLTableElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLTableRowElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLTableSectionElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLTextAreaElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLTitleElement.java, external/w3c_dom/org/w3c/dom/html2/HTMLUListElement.java, external/w3c_dom/org/w3c/dom/ls/DOMImplementationLS.java, external/w3c_dom/org/w3c/dom/ls/LSException.java, external/w3c_dom/org/w3c/dom/ls/LSInput.java, external/w3c_dom/org/w3c/dom/ls/LSLoadEvent.java, external/w3c_dom/org/w3c/dom/ls/LSOutput.java, external/w3c_dom/org/w3c/dom/ls/LSParser.java, external/w3c_dom/org/w3c/dom/ls/LSParserFilter.java, external/w3c_dom/org/w3c/dom/ls/LSProgressEvent.java, external/w3c_dom/org/w3c/dom/ls/LSResourceResolver.java, external/w3c_dom/org/w3c/dom/ls/LSSerializer.java, external/w3c_dom/org/w3c/dom/ls/LSSerializerFilter.java, external/w3c_dom/org/w3c/dom/ranges/DocumentRange.java, external/w3c_dom/org/w3c/dom/ranges/Range.java, external/w3c_dom/org/w3c/dom/ranges/RangeException.java, external/w3c_dom/org/w3c/dom/stylesheets/DocumentStyle.java, external/w3c_dom/org/w3c/dom/stylesheets/LinkStyle.java, external/w3c_dom/org/w3c/dom/stylesheets/MediaList.java, external/w3c_dom/org/w3c/dom/stylesheets/StyleSheet.java, external/w3c_dom/org/w3c/dom/stylesheets/StyleSheetList.java, external/w3c_dom/org/w3c/dom/traversal/DocumentTraversal.java, external/w3c_dom/org/w3c/dom/traversal/NodeFilter.java, external/w3c_dom/org/w3c/dom/traversal/NodeIterator.java, external/w3c_dom/org/w3c/dom/traversal/TreeWalker.java, external/w3c_dom/org/w3c/dom/views/AbstractView.java, external/w3c_dom/org/w3c/dom/views/DocumentView.java, external/w3c_dom/org/w3c/dom/xpath/XPathEvaluator.java, external/w3c_dom/org/w3c/dom/xpath/XPathException.java, external/w3c_dom/org/w3c/dom/xpath/XPathExpression.java, external/w3c_dom/org/w3c/dom/xpath/XPathNSResolver.java, external/w3c_dom/org/w3c/dom/xpath/XPathNamespace.java, external/w3c_dom/org/w3c/dom/xpath/XPathResult.java: New files from Classpath. From-SVN: r94577
This commit is contained in:
parent
c1c5b5e383
commit
9ecd03471f
@ -1,3 +1,323 @@
|
||||
2005-02-01 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* external/w3c_dom/Makefile.am: New file.
|
||||
* external/w3c_dom/Makefile.in: New file.
|
||||
* external/sax/Makefile.am: New file.
|
||||
* external/sax/Makefile.in: New file.
|
||||
* external/Makefile.in: New file.
|
||||
* external/Makefile.am: New file.
|
||||
* external/README: New file from Classpath.
|
||||
* configure, aclocal.m4, Makefile.in: Rebuilt.
|
||||
* configure.ac (AC_CONFIG_FILES): Create new Makefiles.
|
||||
* Makefile.am (SUBDIRS): Added external.
|
||||
(toolexeclib_LTLIBRARIES): Removed lib-org-xml-sax.la,
|
||||
lib-org-w3c-dom.la, lib-org-ietf-gss.la.
|
||||
(BOOTCLASSPATH): New variable.
|
||||
(AM_GCJFLAGS): Use it.
|
||||
(gnu_xml_source_files): New variable.
|
||||
(libgcj_la_SOURCES): Use it.
|
||||
(libgcj_la_LDADD): Include new convenience libraries.
|
||||
(lib_org_ietf_jgss_la_SOURCES): Removed.
|
||||
(lib_org_ietf_jgss_la_DEPENDENCIES): Likewise.
|
||||
(lib_org_ietf_jgss_la_LIBADD): Likewise.
|
||||
(lib_org_w3c_dom_la_SOURCES): Removed.
|
||||
(lib_org_w3c_dom_la_DEPENDENCIES): Likewise.
|
||||
(lib_org_w3c_dom_la_LIBADD): Likewise.
|
||||
(lib_org_xml_sax_la_SOURCES): Removed.
|
||||
(lib_org_xml_sax_la_DEPENDENCIES): Likewise.
|
||||
(lib_org_xml_sax_la_LIBADD): Likewise.
|
||||
(all_java_source_files): Updated.
|
||||
(property_files): Likewise.
|
||||
(libgcj-@gcc_version@.jar): Include classes from external/.
|
||||
(javax_source_files): Updated.
|
||||
(ordinary_java_source_files): Updated.
|
||||
* 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/datatype/package.html,
|
||||
javax/xml/namespace/NamespaceContext.java,
|
||||
javax/xml/namespace/QName.java, javax/xml/namespace/package.html,
|
||||
javax/xml/parsers/DocumentBuilder.java,
|
||||
javax/xml/parsers/DocumentBuilderFactory.java,
|
||||
javax/xml/parsers/FactoryConfigurationError.java,
|
||||
javax/xml/parsers/ParserConfigurationException.java,
|
||||
javax/xml/parsers/SAXParser.java,
|
||||
javax/xml/parsers/SAXParserFactory.java,
|
||||
javax/xml/parsers/package.html,
|
||||
javax/xml/transform/ErrorListener.java,
|
||||
javax/xml/transform/OutputKeys.java,
|
||||
javax/xml/transform/Result.java, javax/xml/transform/Source.java,
|
||||
javax/xml/transform/SourceLocator.java,
|
||||
javax/xml/transform/Templates.java,
|
||||
javax/xml/transform/Transformer.java,
|
||||
javax/xml/transform/TransformerConfigurationException.java,
|
||||
javax/xml/transform/TransformerException.java,
|
||||
javax/xml/transform/TransformerFactory.java,
|
||||
javax/xml/transform/TransformerFactoryConfigurationError.java,
|
||||
javax/xml/transform/URIResolver.java,
|
||||
javax/xml/transform/package.html,
|
||||
javax/xml/transform/dom/DOMLocator.java,
|
||||
javax/xml/transform/dom/DOMResult.java,
|
||||
javax/xml/transform/dom/DOMSource.java,
|
||||
javax/xml/transform/dom/package.html,
|
||||
javax/xml/transform/sax/SAXResult.java,
|
||||
javax/xml/transform/sax/SAXSource.java,
|
||||
javax/xml/transform/sax/SAXTransformerFactory.java,
|
||||
javax/xml/transform/sax/TemplatesHandler.java,
|
||||
javax/xml/transform/sax/TransformerHandler.java,
|
||||
javax/xml/transform/sax/package.html,
|
||||
javax/xml/transform/stream/StreamResult.java,
|
||||
javax/xml/transform/stream/StreamSource.java,
|
||||
javax/xml/transform/stream/package.html,
|
||||
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/validation/package.html, 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,
|
||||
javax/xml/xpath/package.html: New files, from GNU JAXP.
|
||||
* org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
|
||||
org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
|
||||
org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
|
||||
org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
|
||||
org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
|
||||
org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
|
||||
org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
|
||||
org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
|
||||
org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
|
||||
org/w3c/dom/ranges/DocumentRange.java,
|
||||
org/w3c/dom/ranges/Range.java,
|
||||
org/w3c/dom/ranges/RangeException.java,
|
||||
org/w3c/dom/traversal/DocumentTraversal.java,
|
||||
org/w3c/dom/traversal/NodeFilter.java,
|
||||
org/w3c/dom/traversal/NodeIterator.java,
|
||||
org/w3c/dom/traversal/TreeWalker.java,
|
||||
org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
|
||||
org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
|
||||
org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
|
||||
org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
|
||||
org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
|
||||
org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
|
||||
org/xml/sax/SAXNotRecognizedException.java,
|
||||
org/xml/sax/SAXNotSupportedException.java,
|
||||
org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
|
||||
org/xml/sax/XMLReader.java, org/xml/sax/package.html,
|
||||
org/xml/sax/ext/DeclHandler.java,
|
||||
org/xml/sax/ext/LexicalHandler.java, org/xml/sax/ext/package.html,
|
||||
org/xml/sax/helpers/AttributeListImpl.java,
|
||||
org/xml/sax/helpers/AttributesImpl.java,
|
||||
org/xml/sax/helpers/DefaultHandler.java,
|
||||
org/xml/sax/helpers/LocatorImpl.java,
|
||||
org/xml/sax/helpers/NamespaceSupport.java,
|
||||
org/xml/sax/helpers/NewInstance.java,
|
||||
org/xml/sax/helpers/ParserAdapter.java,
|
||||
org/xml/sax/helpers/ParserFactory.java,
|
||||
org/xml/sax/helpers/XMLFilterImpl.java,
|
||||
org/xml/sax/helpers/XMLReaderAdapter.java,
|
||||
org/xml/sax/helpers/XMLReaderFactory.java,
|
||||
org/xml/sax/helpers/package.html: Moved to external/.
|
||||
* external/sax/README,
|
||||
external/sax/org/xml/sax/AttributeList.java,
|
||||
external/sax/org/xml/sax/Attributes.java,
|
||||
external/sax/org/xml/sax/ContentHandler.java,
|
||||
external/sax/org/xml/sax/DTDHandler.java,
|
||||
external/sax/org/xml/sax/DocumentHandler.java,
|
||||
external/sax/org/xml/sax/EntityResolver.java,
|
||||
external/sax/org/xml/sax/ErrorHandler.java,
|
||||
external/sax/org/xml/sax/HandlerBase.java,
|
||||
external/sax/org/xml/sax/InputSource.java,
|
||||
external/sax/org/xml/sax/Locator.java,
|
||||
external/sax/org/xml/sax/Parser.java,
|
||||
external/sax/org/xml/sax/SAXException.java,
|
||||
external/sax/org/xml/sax/SAXNotRecognizedException.java,
|
||||
external/sax/org/xml/sax/SAXNotSupportedException.java,
|
||||
external/sax/org/xml/sax/SAXParseException.java,
|
||||
external/sax/org/xml/sax/XMLFilter.java,
|
||||
external/sax/org/xml/sax/XMLReader.java,
|
||||
external/sax/org/xml/sax/package.html,
|
||||
external/sax/org/xml/sax/ext/Attributes2.java,
|
||||
external/sax/org/xml/sax/ext/Attributes2Impl.java,
|
||||
external/sax/org/xml/sax/ext/DeclHandler.java,
|
||||
external/sax/org/xml/sax/ext/DefaultHandler2.java,
|
||||
external/sax/org/xml/sax/ext/EntityResolver2.java,
|
||||
external/sax/org/xml/sax/ext/LexicalHandler.java,
|
||||
external/sax/org/xml/sax/ext/Locator2.java,
|
||||
external/sax/org/xml/sax/ext/Locator2Impl.java,
|
||||
external/sax/org/xml/sax/ext/package.html,
|
||||
external/sax/org/xml/sax/helpers/AttributeListImpl.java,
|
||||
external/sax/org/xml/sax/helpers/AttributesImpl.java,
|
||||
external/sax/org/xml/sax/helpers/DefaultHandler.java,
|
||||
external/sax/org/xml/sax/helpers/LocatorImpl.java,
|
||||
external/sax/org/xml/sax/helpers/NamespaceSupport.java,
|
||||
external/sax/org/xml/sax/helpers/NewInstance.java,
|
||||
external/sax/org/xml/sax/helpers/ParserAdapter.java,
|
||||
external/sax/org/xml/sax/helpers/ParserFactory.java,
|
||||
external/sax/org/xml/sax/helpers/XMLFilterImpl.java,
|
||||
external/sax/org/xml/sax/helpers/XMLReaderAdapter.java,
|
||||
external/sax/org/xml/sax/helpers/XMLReaderFactory.java,
|
||||
external/sax/org/xml/sax/helpers/package.html,
|
||||
external/w3c_dom/COPYRIGHT.html, external/w3c_dom/README,
|
||||
external/w3c_dom/org/w3c/dom/Attr.java,
|
||||
external/w3c_dom/org/w3c/dom/CDATASection.java,
|
||||
external/w3c_dom/org/w3c/dom/CharacterData.java,
|
||||
external/w3c_dom/org/w3c/dom/Comment.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMConfiguration.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMError.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMErrorHandler.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMException.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMImplementation.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMImplementationList.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMImplementationSource.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMLocator.java,
|
||||
external/w3c_dom/org/w3c/dom/DOMStringList.java,
|
||||
external/w3c_dom/org/w3c/dom/Document.java,
|
||||
external/w3c_dom/org/w3c/dom/DocumentFragment.java,
|
||||
external/w3c_dom/org/w3c/dom/DocumentType.java,
|
||||
external/w3c_dom/org/w3c/dom/Element.java,
|
||||
external/w3c_dom/org/w3c/dom/Entity.java,
|
||||
external/w3c_dom/org/w3c/dom/EntityReference.java,
|
||||
external/w3c_dom/org/w3c/dom/NameList.java,
|
||||
external/w3c_dom/org/w3c/dom/NamedNodeMap.java,
|
||||
external/w3c_dom/org/w3c/dom/Node.java,
|
||||
external/w3c_dom/org/w3c/dom/NodeList.java,
|
||||
external/w3c_dom/org/w3c/dom/Notation.java,
|
||||
external/w3c_dom/org/w3c/dom/ProcessingInstruction.java,
|
||||
external/w3c_dom/org/w3c/dom/Text.java,
|
||||
external/w3c_dom/org/w3c/dom/TypeInfo.java,
|
||||
external/w3c_dom/org/w3c/dom/UserDataHandler.java,
|
||||
external/w3c_dom/org/w3c/dom/bootstrap/DOMImplementationRegistry.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSS2Properties.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSCharsetRule.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSFontFaceRule.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSImportRule.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSMediaRule.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSPageRule.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSPrimitiveValue.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSRule.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSRuleList.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSStyleDeclaration.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSStyleRule.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSStyleSheet.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSUnknownRule.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSValue.java,
|
||||
external/w3c_dom/org/w3c/dom/css/CSSValueList.java,
|
||||
external/w3c_dom/org/w3c/dom/css/Counter.java,
|
||||
external/w3c_dom/org/w3c/dom/css/DOMImplementationCSS.java,
|
||||
external/w3c_dom/org/w3c/dom/css/DocumentCSS.java,
|
||||
external/w3c_dom/org/w3c/dom/css/ElementCSSInlineStyle.java,
|
||||
external/w3c_dom/org/w3c/dom/css/RGBColor.java,
|
||||
external/w3c_dom/org/w3c/dom/css/Rect.java,
|
||||
external/w3c_dom/org/w3c/dom/css/ViewCSS.java,
|
||||
external/w3c_dom/org/w3c/dom/events/DocumentEvent.java,
|
||||
external/w3c_dom/org/w3c/dom/events/Event.java,
|
||||
external/w3c_dom/org/w3c/dom/events/EventException.java,
|
||||
external/w3c_dom/org/w3c/dom/events/EventListener.java,
|
||||
external/w3c_dom/org/w3c/dom/events/EventTarget.java,
|
||||
external/w3c_dom/org/w3c/dom/events/MouseEvent.java,
|
||||
external/w3c_dom/org/w3c/dom/events/MutationEvent.java,
|
||||
external/w3c_dom/org/w3c/dom/events/UIEvent.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLAnchorElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLAppletElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLAreaElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLBRElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLBaseElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLBaseFontElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLBodyElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLButtonElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLCollection.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLDListElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLDirectoryElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLDivElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLDocument.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLFieldSetElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLFontElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLFormElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLFrameElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLFrameSetElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLHRElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLHeadElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLHeadingElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLHtmlElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLIFrameElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLImageElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLInputElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLIsIndexElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLLIElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLLabelElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLLegendElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLLinkElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLMapElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLMenuElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLMetaElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLModElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLOListElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLObjectElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLOptGroupElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLOptionElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLOptionsCollection.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLParagraphElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLParamElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLPreElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLQuoteElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLScriptElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLSelectElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLStyleElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLTableCaptionElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLTableCellElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLTableColElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLTableElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLTableRowElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLTableSectionElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLTextAreaElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLTitleElement.java,
|
||||
external/w3c_dom/org/w3c/dom/html2/HTMLUListElement.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/DOMImplementationLS.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSException.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSInput.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSLoadEvent.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSOutput.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSParser.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSParserFilter.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSProgressEvent.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSResourceResolver.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSSerializer.java,
|
||||
external/w3c_dom/org/w3c/dom/ls/LSSerializerFilter.java,
|
||||
external/w3c_dom/org/w3c/dom/ranges/DocumentRange.java,
|
||||
external/w3c_dom/org/w3c/dom/ranges/Range.java,
|
||||
external/w3c_dom/org/w3c/dom/ranges/RangeException.java,
|
||||
external/w3c_dom/org/w3c/dom/stylesheets/DocumentStyle.java,
|
||||
external/w3c_dom/org/w3c/dom/stylesheets/LinkStyle.java,
|
||||
external/w3c_dom/org/w3c/dom/stylesheets/MediaList.java,
|
||||
external/w3c_dom/org/w3c/dom/stylesheets/StyleSheet.java,
|
||||
external/w3c_dom/org/w3c/dom/stylesheets/StyleSheetList.java,
|
||||
external/w3c_dom/org/w3c/dom/traversal/DocumentTraversal.java,
|
||||
external/w3c_dom/org/w3c/dom/traversal/NodeFilter.java,
|
||||
external/w3c_dom/org/w3c/dom/traversal/NodeIterator.java,
|
||||
external/w3c_dom/org/w3c/dom/traversal/TreeWalker.java,
|
||||
external/w3c_dom/org/w3c/dom/views/AbstractView.java,
|
||||
external/w3c_dom/org/w3c/dom/views/DocumentView.java,
|
||||
external/w3c_dom/org/w3c/dom/xpath/XPathEvaluator.java,
|
||||
external/w3c_dom/org/w3c/dom/xpath/XPathException.java,
|
||||
external/w3c_dom/org/w3c/dom/xpath/XPathExpression.java,
|
||||
external/w3c_dom/org/w3c/dom/xpath/XPathNSResolver.java,
|
||||
external/w3c_dom/org/w3c/dom/xpath/XPathNamespace.java,
|
||||
external/w3c_dom/org/w3c/dom/xpath/XPathResult.java: New files
|
||||
from Classpath.
|
||||
|
||||
2005-01-31 Anthony Green <green@redhat.com>
|
||||
|
||||
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (getOption):
|
||||
|
1164
libjava/Makefile.am
1164
libjava/Makefile.am
File diff suppressed because it is too large
Load Diff
6929
libjava/Makefile.in
6929
libjava/Makefile.in
File diff suppressed because it is too large
Load Diff
5
libjava/configure
vendored
5
libjava/configure
vendored
@ -16316,7 +16316,7 @@ here=`${PWDCMD-pwd}`
|
||||
# We get this from the environment.
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
|
||||
ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
|
||||
|
||||
|
||||
ac_config_commands="$ac_config_commands default"
|
||||
@ -17040,6 +17040,9 @@ do
|
||||
"gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
|
||||
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
|
||||
"testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
|
||||
"external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
|
||||
"external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
|
||||
"external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
|
||||
"include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
|
||||
"java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
|
||||
"java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
|
||||
|
@ -1389,6 +1389,9 @@ gnu/classpath/Configuration.java
|
||||
gcj/Makefile
|
||||
include/Makefile
|
||||
testsuite/Makefile
|
||||
external/Makefile
|
||||
external/sax/Makefile
|
||||
external/w3c_dom/Makefile
|
||||
])
|
||||
|
||||
AC_CONFIG_COMMANDS([default],
|
||||
|
44
libjava/external/Makefile.am
vendored
Normal file
44
libjava/external/Makefile.am
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
## Input file for automake to generate the Makefile.in used by configure
|
||||
|
||||
SUBDIRS = sax w3c_dom
|
||||
|
||||
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
||||
# values defined in terms of make variables, as is the case for CC and
|
||||
# friends when we are called from the top level Makefile.
|
||||
AM_MAKEFLAGS = \
|
||||
"AR_FLAGS=$(AR_FLAGS)" \
|
||||
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
||||
"CFLAGS=$(CFLAGS)" \
|
||||
"CXXFLAGS=$(CXXFLAGS)" \
|
||||
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
|
||||
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
|
||||
"INSTALL=$(INSTALL)" \
|
||||
"INSTALL_DATA=$(INSTALL_DATA)" \
|
||||
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
||||
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
|
||||
"LDFLAGS=$(LDFLAGS)" \
|
||||
"LIBCFLAGS=$(LIBCFLAGS)" \
|
||||
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
||||
"MAKE=$(MAKE)" \
|
||||
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
||||
"PICFLAG=$(PICFLAG)" \
|
||||
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
|
||||
"SHELL=$(SHELL)" \
|
||||
"EXPECT=$(EXPECT)" \
|
||||
"RUNTEST=$(RUNTEST)" \
|
||||
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
|
||||
"exec_prefix=$(exec_prefix)" \
|
||||
"infodir=$(infodir)" \
|
||||
"libdir=$(libdir)" \
|
||||
"prefix=$(prefix)" \
|
||||
"tooldir=$(tooldir)" \
|
||||
"AR=$(AR)" \
|
||||
"AS=$(AS)" \
|
||||
"CC=$(CC)" \
|
||||
"CXX=$(CXX)" \
|
||||
"LD=$(LD)" \
|
||||
"LIBCFLAGS=$(LIBCFLAGS)" \
|
||||
"NM=$(NM)" \
|
||||
"PICFLAG=$(PICFLAG)" \
|
||||
"RANLIB=$(RANLIB)" \
|
||||
"DESTDIR=$(DESTDIR)"
|
633
libjava/external/Makefile.in
vendored
Normal file
633
libjava/external/Makefile.in
vendored
Normal file
@ -0,0 +1,633 @@
|
||||
# Makefile.in generated by automake 1.9.3 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
subdir = external
|
||||
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/../config/accross.m4 \
|
||||
$(top_srcdir)/../config/acx.m4 \
|
||||
$(top_srcdir)/../config/gcc-version.m4 \
|
||||
$(top_srcdir)/../config/gxx-include-dir.m4 \
|
||||
$(top_srcdir)/../config/iconv.m4 \
|
||||
$(top_srcdir)/../config/lcmessage.m4 \
|
||||
$(top_srcdir)/../config/lib-ld.m4 \
|
||||
$(top_srcdir)/../config/lib-link.m4 \
|
||||
$(top_srcdir)/../config/lib-prefix.m4 $(top_srcdir)/pkg.m4 \
|
||||
$(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/../config/no-executables.m4 \
|
||||
$(top_srcdir)/../libtool.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
CONFIG_HEADER = $(top_builddir)/include/config.h \
|
||||
$(top_builddir)/gcj/libgcj-config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ALLOCA = @ALLOCA@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BACKTRACESPEC = @BACKTRACESPEC@
|
||||
CAIRO_CFLAGS = @CAIRO_CFLAGS@
|
||||
CAIRO_LIBS = @CAIRO_LIBS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHECKREFSPEC = @CHECKREFSPEC@
|
||||
CLASSPATH_SEPARATOR = @CLASSPATH_SEPARATOR@
|
||||
COMPPATH = @COMPPATH@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRLTDL = @DIRLTDL@
|
||||
DIVIDESPEC = @DIVIDESPEC@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXCEPTIONSPEC = @EXCEPTIONSPEC@
|
||||
EXEEXT = @EXEEXT@
|
||||
GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
|
||||
GCDEPS = @GCDEPS@
|
||||
GCINCS = @GCINCS@
|
||||
GCJ = @GCJ@
|
||||
GCJDEPMODE = @GCJDEPMODE@
|
||||
GCJFLAGS = @GCJFLAGS@
|
||||
GCJH = @GCJH@
|
||||
GCJVERSION = @GCJVERSION@
|
||||
GCLIBS = @GCLIBS@
|
||||
GCSPEC = @GCSPEC@
|
||||
GCTESTSPEC = @GCTESTSPEC@
|
||||
GLIB_CFLAGS = @GLIB_CFLAGS@
|
||||
GLIB_LIBS = @GLIB_LIBS@
|
||||
GTK_AWT_FALSE = @GTK_AWT_FALSE@
|
||||
GTK_AWT_TRUE = @GTK_AWT_TRUE@
|
||||
GTK_CAIRO_FALSE = @GTK_CAIRO_FALSE@
|
||||
GTK_CAIRO_TRUE = @GTK_CAIRO_TRUE@
|
||||
GTK_CFLAGS = @GTK_CFLAGS@
|
||||
GTK_LIBS = @GTK_LIBS@
|
||||
HASH_SYNC_SPEC = @HASH_SYNC_SPEC@
|
||||
IEEESPEC = @IEEESPEC@
|
||||
INCLTDL = @INCLTDL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTERPRETER = @INTERPRETER@
|
||||
JC1GCSPEC = @JC1GCSPEC@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBART_CFLAGS = @LIBART_CFLAGS@
|
||||
LIBART_LIBS = @LIBART_LIBS@
|
||||
LIBFFI = @LIBFFI@
|
||||
LIBFFIINCS = @LIBFFIINCS@
|
||||
LIBGCJDEBUG = @LIBGCJDEBUG@
|
||||
LIBGCJTESTSPEC = @LIBGCJTESTSPEC@
|
||||
LIBGCJ_CFLAGS = @LIBGCJ_CFLAGS@
|
||||
LIBGCJ_CXXFLAGS = @LIBGCJ_CXXFLAGS@
|
||||
LIBGCJ_JAVAFLAGS = @LIBGCJ_JAVAFLAGS@
|
||||
LIBGCJ_LD_SYMBOLIC = @LIBGCJ_LD_SYMBOLIC@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBLTDL = @LIBLTDL@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
NATIVE_FALSE = @NATIVE_FALSE@
|
||||
NATIVE_TRUE = @NATIVE_TRUE@
|
||||
NEEDS_DATA_START_FALSE = @NEEDS_DATA_START_FALSE@
|
||||
NEEDS_DATA_START_TRUE = @NEEDS_DATA_START_TRUE@
|
||||
OBJEXT = @OBJEXT@
|
||||
ONESTEP_FALSE = @ONESTEP_FALSE@
|
||||
ONESTEP_TRUE = @ONESTEP_TRUE@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PANGOFT2_CFLAGS = @PANGOFT2_CFLAGS@
|
||||
PANGOFT2_LIBS = @PANGOFT2_LIBS@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL = @PERL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PLATFORM_INNER_NAT_HDRS = @PLATFORM_INNER_NAT_HDRS@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
SUPPLY_BACKTRACE_FALSE = @SUPPLY_BACKTRACE_FALSE@
|
||||
SUPPLY_BACKTRACE_TRUE = @SUPPLY_BACKTRACE_TRUE@
|
||||
SYSDEP_SOURCES = @SYSDEP_SOURCES@
|
||||
SYSTEMSPEC = @SYSTEMSPEC@
|
||||
SYS_ZLIBS = @SYS_ZLIBS@
|
||||
TESTSUBDIR_FALSE = @TESTSUBDIR_FALSE@
|
||||
TESTSUBDIR_TRUE = @TESTSUBDIR_TRUE@
|
||||
THREADCXXFLAGS = @THREADCXXFLAGS@
|
||||
THREADDEPS = @THREADDEPS@
|
||||
THREADINCS = @THREADINCS@
|
||||
THREADLDFLAGS = @THREADLDFLAGS@
|
||||
THREADLIBS = @THREADLIBS@
|
||||
THREADSPEC = @THREADSPEC@
|
||||
TOOLKIT = @TOOLKIT@
|
||||
USING_BOEHMGC_FALSE = @USING_BOEHMGC_FALSE@
|
||||
USING_BOEHMGC_TRUE = @USING_BOEHMGC_TRUE@
|
||||
USING_DARWIN_CRT_FALSE = @USING_DARWIN_CRT_FALSE@
|
||||
USING_DARWIN_CRT_TRUE = @USING_DARWIN_CRT_TRUE@
|
||||
USING_ECOS_PLATFORM_FALSE = @USING_ECOS_PLATFORM_FALSE@
|
||||
USING_ECOS_PLATFORM_TRUE = @USING_ECOS_PLATFORM_TRUE@
|
||||
USING_GCC_FALSE = @USING_GCC_FALSE@
|
||||
USING_GCC_TRUE = @USING_GCC_TRUE@
|
||||
USING_NOGC_FALSE = @USING_NOGC_FALSE@
|
||||
USING_NOGC_TRUE = @USING_NOGC_TRUE@
|
||||
USING_NO_THREADS_FALSE = @USING_NO_THREADS_FALSE@
|
||||
USING_NO_THREADS_TRUE = @USING_NO_THREADS_TRUE@
|
||||
USING_POSIX_PLATFORM_FALSE = @USING_POSIX_PLATFORM_FALSE@
|
||||
USING_POSIX_PLATFORM_TRUE = @USING_POSIX_PLATFORM_TRUE@
|
||||
USING_POSIX_THREADS_FALSE = @USING_POSIX_THREADS_FALSE@
|
||||
USING_POSIX_THREADS_TRUE = @USING_POSIX_THREADS_TRUE@
|
||||
USING_WIN32_PLATFORM_FALSE = @USING_WIN32_PLATFORM_FALSE@
|
||||
USING_WIN32_PLATFORM_TRUE = @USING_WIN32_PLATFORM_TRUE@
|
||||
USING_WIN32_THREADS_FALSE = @USING_WIN32_THREADS_FALSE@
|
||||
USING_WIN32_THREADS_TRUE = @USING_WIN32_THREADS_TRUE@
|
||||
VERSION = @VERSION@
|
||||
XLIB_AWT_FALSE = @XLIB_AWT_FALSE@
|
||||
XLIB_AWT_TRUE = @XLIB_AWT_TRUE@
|
||||
X_CFLAGS = @X_CFLAGS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_LIBS = @X_LIBS@
|
||||
X_PRE_LIBS = @X_PRE_LIBS@
|
||||
ZINCS = @ZINCS@
|
||||
ZIP = @ZIP@
|
||||
ZLIBS = @ZLIBS@
|
||||
ZLIBSPEC = @ZLIBSPEC@
|
||||
ZLIBTESTSPEC = @ZLIBTESTSPEC@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_AS = @ac_ct_AS@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_GCJ = @ac_ct_GCJ@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__fastdepGCJ_FALSE = @am__fastdepGCJ_FALSE@
|
||||
am__fastdepGCJ_TRUE = @am__fastdepGCJ_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
gcc_version = @gcc_version@
|
||||
gcc_version_full = @gcc_version_full@
|
||||
gcc_version_trigger = @gcc_version_trigger@
|
||||
gxx_include_dir = @gxx_include_dir@
|
||||
here = @here@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
libgcj_basedir = @libgcj_basedir@
|
||||
libstdcxx_incdir = @libstdcxx_incdir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
mkinstalldirs = @mkinstalldirs@
|
||||
oldincludedir = @oldincludedir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
subdirs = @subdirs@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_noncanonical = @target_noncanonical@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
tool_include_dir = @tool_include_dir@
|
||||
toolexecdir = @toolexecdir@
|
||||
toolexeclibdir = @toolexeclibdir@
|
||||
toolexecmainlibdir = @toolexecmainlibdir@
|
||||
SUBDIRS = sax w3c_dom
|
||||
|
||||
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
||||
# values defined in terms of make variables, as is the case for CC and
|
||||
# friends when we are called from the top level Makefile.
|
||||
AM_MAKEFLAGS = \
|
||||
"AR_FLAGS=$(AR_FLAGS)" \
|
||||
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
||||
"CFLAGS=$(CFLAGS)" \
|
||||
"CXXFLAGS=$(CXXFLAGS)" \
|
||||
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
|
||||
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
|
||||
"INSTALL=$(INSTALL)" \
|
||||
"INSTALL_DATA=$(INSTALL_DATA)" \
|
||||
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
||||
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
|
||||
"LDFLAGS=$(LDFLAGS)" \
|
||||
"LIBCFLAGS=$(LIBCFLAGS)" \
|
||||
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
||||
"MAKE=$(MAKE)" \
|
||||
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
||||
"PICFLAG=$(PICFLAG)" \
|
||||
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
|
||||
"SHELL=$(SHELL)" \
|
||||
"EXPECT=$(EXPECT)" \
|
||||
"RUNTEST=$(RUNTEST)" \
|
||||
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
|
||||
"exec_prefix=$(exec_prefix)" \
|
||||
"infodir=$(infodir)" \
|
||||
"libdir=$(libdir)" \
|
||||
"prefix=$(prefix)" \
|
||||
"tooldir=$(tooldir)" \
|
||||
"AR=$(AR)" \
|
||||
"AS=$(AS)" \
|
||||
"CC=$(CC)" \
|
||||
"CXX=$(CXX)" \
|
||||
"LD=$(LD)" \
|
||||
"LIBCFLAGS=$(LIBCFLAGS)" \
|
||||
"NM=$(NM)" \
|
||||
"PICFLAG=$(PICFLAG)" \
|
||||
"RANLIB=$(RANLIB)" \
|
||||
"DESTDIR=$(DESTDIR)"
|
||||
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu external/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu external/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@set fnord $$MAKEFLAGS; amf=$$2; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@set fnord $$MAKEFLAGS; amf=$$2; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-libtool \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||
clean clean-generic clean-libtool clean-recursive ctags \
|
||||
ctags-recursive distclean distclean-generic distclean-libtool \
|
||||
distclean-recursive distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-man install-strip installcheck \
|
||||
installcheck-am installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic maintainer-clean-recursive \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool \
|
||||
mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
|
||||
uninstall uninstall-am uninstall-info-am
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
3
libjava/external/README
vendored
Normal file
3
libjava/external/README
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
This directory contains libraries maintained externally to GNU Classpath.
|
||||
|
||||
See the README files in the subdirectories for more information.
|
67
libjava/external/sax/Makefile.am
vendored
Normal file
67
libjava/external/sax/Makefile.am
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
## Process this file with automake to produce Makefile.in.
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign subdir-objects
|
||||
|
||||
## The compiler with whatever flags we want for both -c and -C
|
||||
## compiles.
|
||||
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated -fbootclasspath=$(BOOTCLASSPATH)
|
||||
|
||||
BOOTCLASSPATH = $(here)'$(CLASSPATH_SEPARATOR)'$(srcdir)'$(CLASSPATH_SEPARATOR)'$(top_srcdir)'$(CLASSPATH_SEPARATOR)'$(top_builddir)
|
||||
|
||||
AM_GCJFLAGS = \
|
||||
-B$(top_builddir) \
|
||||
@LIBGCJ_JAVAFLAGS@ \
|
||||
-fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
|
||||
--encoding=UTF-8 \
|
||||
-Wno-deprecated
|
||||
|
||||
all-local: classes.stamp
|
||||
|
||||
classes.stamp: $(libsax_convenience_la_SOURCES)
|
||||
here=`pwd`; cd $(srcdir); \
|
||||
$(GCJ_WITH_FLAGS) -C -d $$here $(libsax_convenience_la_SOURCES)
|
||||
echo > classes.stamp
|
||||
|
||||
mostlyclean-local:
|
||||
find . -name '*.class' | xargs rm
|
||||
rm classes.stamp
|
||||
|
||||
noinst_LTLIBRARIES = libsax_convenience.la
|
||||
|
||||
libsax_convenience_la_SOURCES = \
|
||||
org/xml/sax/SAXNotSupportedException.java \
|
||||
org/xml/sax/helpers/NamespaceSupport.java \
|
||||
org/xml/sax/helpers/AttributesImpl.java \
|
||||
org/xml/sax/helpers/LocatorImpl.java \
|
||||
org/xml/sax/helpers/DefaultHandler.java \
|
||||
org/xml/sax/helpers/AttributeListImpl.java \
|
||||
org/xml/sax/helpers/ParserFactory.java \
|
||||
org/xml/sax/helpers/NewInstance.java \
|
||||
org/xml/sax/helpers/XMLFilterImpl.java \
|
||||
org/xml/sax/helpers/ParserAdapter.java \
|
||||
org/xml/sax/helpers/XMLReaderAdapter.java \
|
||||
org/xml/sax/helpers/XMLReaderFactory.java \
|
||||
org/xml/sax/HandlerBase.java \
|
||||
org/xml/sax/SAXException.java \
|
||||
org/xml/sax/ContentHandler.java \
|
||||
org/xml/sax/SAXNotRecognizedException.java \
|
||||
org/xml/sax/ErrorHandler.java \
|
||||
org/xml/sax/AttributeList.java \
|
||||
org/xml/sax/Locator.java \
|
||||
org/xml/sax/Attributes.java \
|
||||
org/xml/sax/SAXParseException.java \
|
||||
org/xml/sax/XMLFilter.java \
|
||||
org/xml/sax/EntityResolver.java \
|
||||
org/xml/sax/XMLReader.java \
|
||||
org/xml/sax/ext/Locator2.java \
|
||||
org/xml/sax/ext/LexicalHandler.java \
|
||||
org/xml/sax/ext/Attributes2Impl.java \
|
||||
org/xml/sax/ext/DeclHandler.java \
|
||||
org/xml/sax/ext/Attributes2.java \
|
||||
org/xml/sax/ext/EntityResolver2.java \
|
||||
org/xml/sax/ext/Locator2Impl.java \
|
||||
org/xml/sax/ext/DefaultHandler2.java \
|
||||
org/xml/sax/InputSource.java \
|
||||
org/xml/sax/DocumentHandler.java \
|
||||
org/xml/sax/DTDHandler.java \
|
||||
org/xml/sax/Parser.java
|
861
libjava/external/sax/Makefile.in
vendored
Normal file
861
libjava/external/sax/Makefile.in
vendored
Normal file
@ -0,0 +1,861 @@
|
||||
# Makefile.in generated by automake 1.9.3 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
SOURCES = $(libsax_convenience_la_SOURCES)
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ../..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
subdir = external/sax
|
||||
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/../config/accross.m4 \
|
||||
$(top_srcdir)/../config/acx.m4 \
|
||||
$(top_srcdir)/../config/gcc-version.m4 \
|
||||
$(top_srcdir)/../config/gxx-include-dir.m4 \
|
||||
$(top_srcdir)/../config/iconv.m4 \
|
||||
$(top_srcdir)/../config/lcmessage.m4 \
|
||||
$(top_srcdir)/../config/lib-ld.m4 \
|
||||
$(top_srcdir)/../config/lib-link.m4 \
|
||||
$(top_srcdir)/../config/lib-prefix.m4 $(top_srcdir)/pkg.m4 \
|
||||
$(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/../config/no-executables.m4 \
|
||||
$(top_srcdir)/../libtool.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
CONFIG_HEADER = $(top_builddir)/include/config.h \
|
||||
$(top_builddir)/gcj/libgcj-config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
LTLIBRARIES = $(noinst_LTLIBRARIES)
|
||||
libsax_convenience_la_LIBADD =
|
||||
am__dirstamp = $(am__leading_dot)dirstamp
|
||||
am_libsax_convenience_la_OBJECTS = \
|
||||
org/xml/sax/SAXNotSupportedException.lo \
|
||||
org/xml/sax/helpers/NamespaceSupport.lo \
|
||||
org/xml/sax/helpers/AttributesImpl.lo \
|
||||
org/xml/sax/helpers/LocatorImpl.lo \
|
||||
org/xml/sax/helpers/DefaultHandler.lo \
|
||||
org/xml/sax/helpers/AttributeListImpl.lo \
|
||||
org/xml/sax/helpers/ParserFactory.lo \
|
||||
org/xml/sax/helpers/NewInstance.lo \
|
||||
org/xml/sax/helpers/XMLFilterImpl.lo \
|
||||
org/xml/sax/helpers/ParserAdapter.lo \
|
||||
org/xml/sax/helpers/XMLReaderAdapter.lo \
|
||||
org/xml/sax/helpers/XMLReaderFactory.lo \
|
||||
org/xml/sax/HandlerBase.lo org/xml/sax/SAXException.lo \
|
||||
org/xml/sax/ContentHandler.lo \
|
||||
org/xml/sax/SAXNotRecognizedException.lo \
|
||||
org/xml/sax/ErrorHandler.lo org/xml/sax/AttributeList.lo \
|
||||
org/xml/sax/Locator.lo org/xml/sax/Attributes.lo \
|
||||
org/xml/sax/SAXParseException.lo org/xml/sax/XMLFilter.lo \
|
||||
org/xml/sax/EntityResolver.lo org/xml/sax/XMLReader.lo \
|
||||
org/xml/sax/ext/Locator2.lo org/xml/sax/ext/LexicalHandler.lo \
|
||||
org/xml/sax/ext/Attributes2Impl.lo \
|
||||
org/xml/sax/ext/DeclHandler.lo org/xml/sax/ext/Attributes2.lo \
|
||||
org/xml/sax/ext/EntityResolver2.lo \
|
||||
org/xml/sax/ext/Locator2Impl.lo \
|
||||
org/xml/sax/ext/DefaultHandler2.lo org/xml/sax/InputSource.lo \
|
||||
org/xml/sax/DocumentHandler.lo org/xml/sax/DTDHandler.lo \
|
||||
org/xml/sax/Parser.lo
|
||||
libsax_convenience_la_OBJECTS = $(am_libsax_convenience_la_OBJECTS)
|
||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_builddir)/gcj
|
||||
depcomp = $(SHELL) $(top_srcdir)/../depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
GCJCOMPILE = $(GCJ) $(AM_GCJFLAGS) $(GCJFLAGS)
|
||||
LTGCJCOMPILE = $(LIBTOOL) --mode=compile $(GCJ) $(AM_GCJFLAGS) \
|
||||
$(GCJFLAGS)
|
||||
GCJLD = $(GCJ)
|
||||
GCJLINK = $(LIBTOOL) --mode=link $(GCJLD) $(AM_GCJFLAGS) $(GCJFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(libsax_convenience_la_SOURCES)
|
||||
DIST_SOURCES = $(libsax_convenience_la_SOURCES)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ALLOCA = @ALLOCA@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BACKTRACESPEC = @BACKTRACESPEC@
|
||||
CAIRO_CFLAGS = @CAIRO_CFLAGS@
|
||||
CAIRO_LIBS = @CAIRO_LIBS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHECKREFSPEC = @CHECKREFSPEC@
|
||||
CLASSPATH_SEPARATOR = @CLASSPATH_SEPARATOR@
|
||||
COMPPATH = @COMPPATH@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRLTDL = @DIRLTDL@
|
||||
DIVIDESPEC = @DIVIDESPEC@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXCEPTIONSPEC = @EXCEPTIONSPEC@
|
||||
EXEEXT = @EXEEXT@
|
||||
GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
|
||||
GCDEPS = @GCDEPS@
|
||||
GCINCS = @GCINCS@
|
||||
GCJ = @GCJ@
|
||||
GCJDEPMODE = @GCJDEPMODE@
|
||||
GCJFLAGS = @GCJFLAGS@
|
||||
GCJH = @GCJH@
|
||||
GCJVERSION = @GCJVERSION@
|
||||
GCLIBS = @GCLIBS@
|
||||
GCSPEC = @GCSPEC@
|
||||
GCTESTSPEC = @GCTESTSPEC@
|
||||
GLIB_CFLAGS = @GLIB_CFLAGS@
|
||||
GLIB_LIBS = @GLIB_LIBS@
|
||||
GTK_AWT_FALSE = @GTK_AWT_FALSE@
|
||||
GTK_AWT_TRUE = @GTK_AWT_TRUE@
|
||||
GTK_CAIRO_FALSE = @GTK_CAIRO_FALSE@
|
||||
GTK_CAIRO_TRUE = @GTK_CAIRO_TRUE@
|
||||
GTK_CFLAGS = @GTK_CFLAGS@
|
||||
GTK_LIBS = @GTK_LIBS@
|
||||
HASH_SYNC_SPEC = @HASH_SYNC_SPEC@
|
||||
IEEESPEC = @IEEESPEC@
|
||||
INCLTDL = @INCLTDL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTERPRETER = @INTERPRETER@
|
||||
JC1GCSPEC = @JC1GCSPEC@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBART_CFLAGS = @LIBART_CFLAGS@
|
||||
LIBART_LIBS = @LIBART_LIBS@
|
||||
LIBFFI = @LIBFFI@
|
||||
LIBFFIINCS = @LIBFFIINCS@
|
||||
LIBGCJDEBUG = @LIBGCJDEBUG@
|
||||
LIBGCJTESTSPEC = @LIBGCJTESTSPEC@
|
||||
LIBGCJ_CFLAGS = @LIBGCJ_CFLAGS@
|
||||
LIBGCJ_CXXFLAGS = @LIBGCJ_CXXFLAGS@
|
||||
LIBGCJ_JAVAFLAGS = @LIBGCJ_JAVAFLAGS@
|
||||
LIBGCJ_LD_SYMBOLIC = @LIBGCJ_LD_SYMBOLIC@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBLTDL = @LIBLTDL@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
NATIVE_FALSE = @NATIVE_FALSE@
|
||||
NATIVE_TRUE = @NATIVE_TRUE@
|
||||
NEEDS_DATA_START_FALSE = @NEEDS_DATA_START_FALSE@
|
||||
NEEDS_DATA_START_TRUE = @NEEDS_DATA_START_TRUE@
|
||||
OBJEXT = @OBJEXT@
|
||||
ONESTEP_FALSE = @ONESTEP_FALSE@
|
||||
ONESTEP_TRUE = @ONESTEP_TRUE@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PANGOFT2_CFLAGS = @PANGOFT2_CFLAGS@
|
||||
PANGOFT2_LIBS = @PANGOFT2_LIBS@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL = @PERL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PLATFORM_INNER_NAT_HDRS = @PLATFORM_INNER_NAT_HDRS@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
SUPPLY_BACKTRACE_FALSE = @SUPPLY_BACKTRACE_FALSE@
|
||||
SUPPLY_BACKTRACE_TRUE = @SUPPLY_BACKTRACE_TRUE@
|
||||
SYSDEP_SOURCES = @SYSDEP_SOURCES@
|
||||
SYSTEMSPEC = @SYSTEMSPEC@
|
||||
SYS_ZLIBS = @SYS_ZLIBS@
|
||||
TESTSUBDIR_FALSE = @TESTSUBDIR_FALSE@
|
||||
TESTSUBDIR_TRUE = @TESTSUBDIR_TRUE@
|
||||
THREADCXXFLAGS = @THREADCXXFLAGS@
|
||||
THREADDEPS = @THREADDEPS@
|
||||
THREADINCS = @THREADINCS@
|
||||
THREADLDFLAGS = @THREADLDFLAGS@
|
||||
THREADLIBS = @THREADLIBS@
|
||||
THREADSPEC = @THREADSPEC@
|
||||
TOOLKIT = @TOOLKIT@
|
||||
USING_BOEHMGC_FALSE = @USING_BOEHMGC_FALSE@
|
||||
USING_BOEHMGC_TRUE = @USING_BOEHMGC_TRUE@
|
||||
USING_DARWIN_CRT_FALSE = @USING_DARWIN_CRT_FALSE@
|
||||
USING_DARWIN_CRT_TRUE = @USING_DARWIN_CRT_TRUE@
|
||||
USING_ECOS_PLATFORM_FALSE = @USING_ECOS_PLATFORM_FALSE@
|
||||
USING_ECOS_PLATFORM_TRUE = @USING_ECOS_PLATFORM_TRUE@
|
||||
USING_GCC_FALSE = @USING_GCC_FALSE@
|
||||
USING_GCC_TRUE = @USING_GCC_TRUE@
|
||||
USING_NOGC_FALSE = @USING_NOGC_FALSE@
|
||||
USING_NOGC_TRUE = @USING_NOGC_TRUE@
|
||||
USING_NO_THREADS_FALSE = @USING_NO_THREADS_FALSE@
|
||||
USING_NO_THREADS_TRUE = @USING_NO_THREADS_TRUE@
|
||||
USING_POSIX_PLATFORM_FALSE = @USING_POSIX_PLATFORM_FALSE@
|
||||
USING_POSIX_PLATFORM_TRUE = @USING_POSIX_PLATFORM_TRUE@
|
||||
USING_POSIX_THREADS_FALSE = @USING_POSIX_THREADS_FALSE@
|
||||
USING_POSIX_THREADS_TRUE = @USING_POSIX_THREADS_TRUE@
|
||||
USING_WIN32_PLATFORM_FALSE = @USING_WIN32_PLATFORM_FALSE@
|
||||
USING_WIN32_PLATFORM_TRUE = @USING_WIN32_PLATFORM_TRUE@
|
||||
USING_WIN32_THREADS_FALSE = @USING_WIN32_THREADS_FALSE@
|
||||
USING_WIN32_THREADS_TRUE = @USING_WIN32_THREADS_TRUE@
|
||||
VERSION = @VERSION@
|
||||
XLIB_AWT_FALSE = @XLIB_AWT_FALSE@
|
||||
XLIB_AWT_TRUE = @XLIB_AWT_TRUE@
|
||||
X_CFLAGS = @X_CFLAGS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_LIBS = @X_LIBS@
|
||||
X_PRE_LIBS = @X_PRE_LIBS@
|
||||
ZINCS = @ZINCS@
|
||||
ZIP = @ZIP@
|
||||
ZLIBS = @ZLIBS@
|
||||
ZLIBSPEC = @ZLIBSPEC@
|
||||
ZLIBTESTSPEC = @ZLIBTESTSPEC@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_AS = @ac_ct_AS@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_GCJ = @ac_ct_GCJ@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__fastdepGCJ_FALSE = @am__fastdepGCJ_FALSE@
|
||||
am__fastdepGCJ_TRUE = @am__fastdepGCJ_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
gcc_version = @gcc_version@
|
||||
gcc_version_full = @gcc_version_full@
|
||||
gcc_version_trigger = @gcc_version_trigger@
|
||||
gxx_include_dir = @gxx_include_dir@
|
||||
here = @here@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
libgcj_basedir = @libgcj_basedir@
|
||||
libstdcxx_incdir = @libstdcxx_incdir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
mkinstalldirs = @mkinstalldirs@
|
||||
oldincludedir = @oldincludedir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
subdirs = @subdirs@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_noncanonical = @target_noncanonical@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
tool_include_dir = @tool_include_dir@
|
||||
toolexecdir = @toolexecdir@
|
||||
toolexeclibdir = @toolexeclibdir@
|
||||
toolexecmainlibdir = @toolexecmainlibdir@
|
||||
AUTOMAKE_OPTIONS = foreign subdir-objects
|
||||
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated -fbootclasspath=$(BOOTCLASSPATH)
|
||||
BOOTCLASSPATH = $(here)'$(CLASSPATH_SEPARATOR)'$(srcdir)'$(CLASSPATH_SEPARATOR)'$(top_srcdir)'$(CLASSPATH_SEPARATOR)'$(top_builddir)
|
||||
AM_GCJFLAGS = \
|
||||
-B$(top_builddir) \
|
||||
@LIBGCJ_JAVAFLAGS@ \
|
||||
-fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
|
||||
--encoding=UTF-8 \
|
||||
-Wno-deprecated
|
||||
|
||||
noinst_LTLIBRARIES = libsax_convenience.la
|
||||
libsax_convenience_la_SOURCES = \
|
||||
org/xml/sax/SAXNotSupportedException.java \
|
||||
org/xml/sax/helpers/NamespaceSupport.java \
|
||||
org/xml/sax/helpers/AttributesImpl.java \
|
||||
org/xml/sax/helpers/LocatorImpl.java \
|
||||
org/xml/sax/helpers/DefaultHandler.java \
|
||||
org/xml/sax/helpers/AttributeListImpl.java \
|
||||
org/xml/sax/helpers/ParserFactory.java \
|
||||
org/xml/sax/helpers/NewInstance.java \
|
||||
org/xml/sax/helpers/XMLFilterImpl.java \
|
||||
org/xml/sax/helpers/ParserAdapter.java \
|
||||
org/xml/sax/helpers/XMLReaderAdapter.java \
|
||||
org/xml/sax/helpers/XMLReaderFactory.java \
|
||||
org/xml/sax/HandlerBase.java \
|
||||
org/xml/sax/SAXException.java \
|
||||
org/xml/sax/ContentHandler.java \
|
||||
org/xml/sax/SAXNotRecognizedException.java \
|
||||
org/xml/sax/ErrorHandler.java \
|
||||
org/xml/sax/AttributeList.java \
|
||||
org/xml/sax/Locator.java \
|
||||
org/xml/sax/Attributes.java \
|
||||
org/xml/sax/SAXParseException.java \
|
||||
org/xml/sax/XMLFilter.java \
|
||||
org/xml/sax/EntityResolver.java \
|
||||
org/xml/sax/XMLReader.java \
|
||||
org/xml/sax/ext/Locator2.java \
|
||||
org/xml/sax/ext/LexicalHandler.java \
|
||||
org/xml/sax/ext/Attributes2Impl.java \
|
||||
org/xml/sax/ext/DeclHandler.java \
|
||||
org/xml/sax/ext/Attributes2.java \
|
||||
org/xml/sax/ext/EntityResolver2.java \
|
||||
org/xml/sax/ext/Locator2Impl.java \
|
||||
org/xml/sax/ext/DefaultHandler2.java \
|
||||
org/xml/sax/InputSource.java \
|
||||
org/xml/sax/DocumentHandler.java \
|
||||
org/xml/sax/DTDHandler.java \
|
||||
org/xml/sax/Parser.java
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .java .lo .o .obj
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign external/sax/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign external/sax/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
clean-noinstLTLIBRARIES:
|
||||
-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
|
||||
@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
|
||||
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
test "$$dir" != "$$p" || dir=.; \
|
||||
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
rm -f "$${dir}/so_locations"; \
|
||||
done
|
||||
org/xml/sax/$(am__dirstamp):
|
||||
@$(mkdir_p) org/xml/sax
|
||||
@: > org/xml/sax/$(am__dirstamp)
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp):
|
||||
@$(mkdir_p) org/xml/sax/$(DEPDIR)
|
||||
@: > org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/SAXNotSupportedException.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/$(am__dirstamp):
|
||||
@$(mkdir_p) org/xml/sax/helpers
|
||||
@: > org/xml/sax/helpers/$(am__dirstamp)
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp):
|
||||
@$(mkdir_p) org/xml/sax/helpers/$(DEPDIR)
|
||||
@: > org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/NamespaceSupport.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/AttributesImpl.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/LocatorImpl.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/DefaultHandler.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/AttributeListImpl.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/ParserFactory.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/NewInstance.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/XMLFilterImpl.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/ParserAdapter.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/XMLReaderAdapter.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/helpers/XMLReaderFactory.lo: \
|
||||
org/xml/sax/helpers/$(am__dirstamp) \
|
||||
org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/HandlerBase.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/SAXException.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ContentHandler.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/SAXNotRecognizedException.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ErrorHandler.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/AttributeList.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/Locator.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/Attributes.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/SAXParseException.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/XMLFilter.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/EntityResolver.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/XMLReader.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/$(am__dirstamp):
|
||||
@$(mkdir_p) org/xml/sax/ext
|
||||
@: > org/xml/sax/ext/$(am__dirstamp)
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp):
|
||||
@$(mkdir_p) org/xml/sax/ext/$(DEPDIR)
|
||||
@: > org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/Locator2.lo: org/xml/sax/ext/$(am__dirstamp) \
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/LexicalHandler.lo: org/xml/sax/ext/$(am__dirstamp) \
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/Attributes2Impl.lo: org/xml/sax/ext/$(am__dirstamp) \
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/DeclHandler.lo: org/xml/sax/ext/$(am__dirstamp) \
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/Attributes2.lo: org/xml/sax/ext/$(am__dirstamp) \
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/EntityResolver2.lo: org/xml/sax/ext/$(am__dirstamp) \
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/Locator2Impl.lo: org/xml/sax/ext/$(am__dirstamp) \
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/ext/DefaultHandler2.lo: org/xml/sax/ext/$(am__dirstamp) \
|
||||
org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/InputSource.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/DocumentHandler.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/DTDHandler.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
org/xml/sax/Parser.lo: org/xml/sax/$(am__dirstamp) \
|
||||
org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
libsax_convenience.la: $(libsax_convenience_la_OBJECTS) $(libsax_convenience_la_DEPENDENCIES)
|
||||
$(GCJLINK) $(libsax_convenience_la_LDFLAGS) $(libsax_convenience_la_OBJECTS) $(libsax_convenience_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
-rm -f org/xml/sax/AttributeList.$(OBJEXT)
|
||||
-rm -f org/xml/sax/AttributeList.lo
|
||||
-rm -f org/xml/sax/Attributes.$(OBJEXT)
|
||||
-rm -f org/xml/sax/Attributes.lo
|
||||
-rm -f org/xml/sax/ContentHandler.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ContentHandler.lo
|
||||
-rm -f org/xml/sax/DTDHandler.$(OBJEXT)
|
||||
-rm -f org/xml/sax/DTDHandler.lo
|
||||
-rm -f org/xml/sax/DocumentHandler.$(OBJEXT)
|
||||
-rm -f org/xml/sax/DocumentHandler.lo
|
||||
-rm -f org/xml/sax/EntityResolver.$(OBJEXT)
|
||||
-rm -f org/xml/sax/EntityResolver.lo
|
||||
-rm -f org/xml/sax/ErrorHandler.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ErrorHandler.lo
|
||||
-rm -f org/xml/sax/HandlerBase.$(OBJEXT)
|
||||
-rm -f org/xml/sax/HandlerBase.lo
|
||||
-rm -f org/xml/sax/InputSource.$(OBJEXT)
|
||||
-rm -f org/xml/sax/InputSource.lo
|
||||
-rm -f org/xml/sax/Locator.$(OBJEXT)
|
||||
-rm -f org/xml/sax/Locator.lo
|
||||
-rm -f org/xml/sax/Parser.$(OBJEXT)
|
||||
-rm -f org/xml/sax/Parser.lo
|
||||
-rm -f org/xml/sax/SAXException.$(OBJEXT)
|
||||
-rm -f org/xml/sax/SAXException.lo
|
||||
-rm -f org/xml/sax/SAXNotRecognizedException.$(OBJEXT)
|
||||
-rm -f org/xml/sax/SAXNotRecognizedException.lo
|
||||
-rm -f org/xml/sax/SAXNotSupportedException.$(OBJEXT)
|
||||
-rm -f org/xml/sax/SAXNotSupportedException.lo
|
||||
-rm -f org/xml/sax/SAXParseException.$(OBJEXT)
|
||||
-rm -f org/xml/sax/SAXParseException.lo
|
||||
-rm -f org/xml/sax/XMLFilter.$(OBJEXT)
|
||||
-rm -f org/xml/sax/XMLFilter.lo
|
||||
-rm -f org/xml/sax/XMLReader.$(OBJEXT)
|
||||
-rm -f org/xml/sax/XMLReader.lo
|
||||
-rm -f org/xml/sax/ext/Attributes2.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ext/Attributes2.lo
|
||||
-rm -f org/xml/sax/ext/Attributes2Impl.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ext/Attributes2Impl.lo
|
||||
-rm -f org/xml/sax/ext/DeclHandler.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ext/DeclHandler.lo
|
||||
-rm -f org/xml/sax/ext/DefaultHandler2.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ext/DefaultHandler2.lo
|
||||
-rm -f org/xml/sax/ext/EntityResolver2.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ext/EntityResolver2.lo
|
||||
-rm -f org/xml/sax/ext/LexicalHandler.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ext/LexicalHandler.lo
|
||||
-rm -f org/xml/sax/ext/Locator2.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ext/Locator2.lo
|
||||
-rm -f org/xml/sax/ext/Locator2Impl.$(OBJEXT)
|
||||
-rm -f org/xml/sax/ext/Locator2Impl.lo
|
||||
-rm -f org/xml/sax/helpers/AttributeListImpl.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/AttributeListImpl.lo
|
||||
-rm -f org/xml/sax/helpers/AttributesImpl.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/AttributesImpl.lo
|
||||
-rm -f org/xml/sax/helpers/DefaultHandler.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/DefaultHandler.lo
|
||||
-rm -f org/xml/sax/helpers/LocatorImpl.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/LocatorImpl.lo
|
||||
-rm -f org/xml/sax/helpers/NamespaceSupport.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/NamespaceSupport.lo
|
||||
-rm -f org/xml/sax/helpers/NewInstance.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/NewInstance.lo
|
||||
-rm -f org/xml/sax/helpers/ParserAdapter.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/ParserAdapter.lo
|
||||
-rm -f org/xml/sax/helpers/ParserFactory.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/ParserFactory.lo
|
||||
-rm -f org/xml/sax/helpers/XMLFilterImpl.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/XMLFilterImpl.lo
|
||||
-rm -f org/xml/sax/helpers/XMLReaderAdapter.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/XMLReaderAdapter.lo
|
||||
-rm -f org/xml/sax/helpers/XMLReaderFactory.$(OBJEXT)
|
||||
-rm -f org/xml/sax/helpers/XMLReaderFactory.lo
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/AttributeList.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/Attributes.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/ContentHandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/DTDHandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/DocumentHandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/EntityResolver.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/ErrorHandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/HandlerBase.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/InputSource.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/Locator.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/Parser.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/SAXException.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/SAXNotRecognizedException.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/SAXNotSupportedException.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/SAXParseException.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/XMLFilter.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/$(DEPDIR)/XMLReader.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/ext/$(DEPDIR)/Attributes2.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/ext/$(DEPDIR)/Attributes2Impl.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/ext/$(DEPDIR)/DeclHandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/ext/$(DEPDIR)/DefaultHandler2.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/ext/$(DEPDIR)/EntityResolver2.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/ext/$(DEPDIR)/LexicalHandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/ext/$(DEPDIR)/Locator2.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/ext/$(DEPDIR)/Locator2Impl.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/AttributeListImpl.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/AttributesImpl.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/DefaultHandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/LocatorImpl.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/NamespaceSupport.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/NewInstance.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/ParserAdapter.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/ParserFactory.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/XMLFilterImpl.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/XMLReaderAdapter.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@org/xml/sax/helpers/$(DEPDIR)/XMLReaderFactory.Plo@am__quote@
|
||||
|
||||
.java.o:
|
||||
@am__fastdepGCJ_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
|
||||
@am__fastdepGCJ_TRUE@ if $(GCJCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepGCJ_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepGCJ_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepGCJ_FALSE@ DEPDIR=$(DEPDIR) $(GCJDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepGCJ_FALSE@ $(GCJCOMPILE) -c -o $@ $<
|
||||
|
||||
.java.obj:
|
||||
@am__fastdepGCJ_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \
|
||||
@am__fastdepGCJ_TRUE@ if $(GCJCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||
@am__fastdepGCJ_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepGCJ_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepGCJ_FALSE@ DEPDIR=$(DEPDIR) $(GCJDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepGCJ_FALSE@ $(GCJCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.java.lo:
|
||||
@am__fastdepGCJ_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \
|
||||
@am__fastdepGCJ_TRUE@ if $(LTGCJCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepGCJ_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepGCJ_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepGCJ_FALSE@ DEPDIR=$(DEPDIR) $(GCJDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepGCJ_FALSE@ $(LTGCJCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
-rm -rf org/xml/sax/.libs org/xml/sax/_libs
|
||||
-rm -rf org/xml/sax/ext/.libs org/xml/sax/ext/_libs
|
||||
-rm -rf org/xml/sax/helpers/.libs org/xml/sax/helpers/_libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LTLIBRARIES) all-local
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-rm -f org/xml/sax/$(DEPDIR)/$(am__dirstamp)
|
||||
-rm -f org/xml/sax/$(am__dirstamp)
|
||||
-rm -f org/xml/sax/ext/$(DEPDIR)/$(am__dirstamp)
|
||||
-rm -f org/xml/sax/ext/$(am__dirstamp)
|
||||
-rm -f org/xml/sax/helpers/$(DEPDIR)/$(am__dirstamp)
|
||||
-rm -f org/xml/sax/helpers/$(am__dirstamp)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf org/xml/sax/$(DEPDIR) org/xml/sax/ext/$(DEPDIR) org/xml/sax/helpers/$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf org/xml/sax/$(DEPDIR) org/xml/sax/ext/$(DEPDIR) org/xml/sax/helpers/$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool mostlyclean-local
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am all-local check check-am clean \
|
||||
clean-generic clean-libtool clean-noinstLTLIBRARIES ctags \
|
||||
distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-man install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
|
||||
pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am
|
||||
|
||||
|
||||
all-local: classes.stamp
|
||||
|
||||
classes.stamp: $(libsax_convenience_la_SOURCES)
|
||||
here=`pwd`; cd $(srcdir); \
|
||||
$(GCJ_WITH_FLAGS) -C -d $$here $(libsax_convenience_la_SOURCES)
|
||||
echo > classes.stamp
|
||||
|
||||
mostlyclean-local:
|
||||
find . -name '*.class' | xargs rm
|
||||
rm classes.stamp
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
71
libjava/external/sax/README
vendored
Normal file
71
libjava/external/sax/README
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
Simple API for XML (SAX), a standard application interface for processing XML.
|
||||
SAX is not maintained as part of GNU Classpath, but is used with GNU Classpath.
|
||||
|
||||
Last imported version sax2r3 final from http://www.saxproject.org/
|
||||
|
||||
All files are distributed with the following short notice:
|
||||
|
||||
NO WARRANTY! This class is in the Public Domain.
|
||||
|
||||
The www.saxproject.org explains:
|
||||
|
||||
Copyright Status
|
||||
|
||||
SAX is free!
|
||||
|
||||
In fact, it's not possible to own a license to SAX, since it's been
|
||||
placed in the public domain.
|
||||
|
||||
No Warranty
|
||||
|
||||
Because SAX is released to the public domain, there is no warranty
|
||||
for the design or for the software implementation, to the extent
|
||||
permitted by applicable law. Except when otherwise stated in writing
|
||||
the copyright holders and/or other parties provide SAX "as is" without
|
||||
warranty of any kind, either expressed or implied, including, but not
|
||||
limited to, the implied warranties of merchantability and fitness for
|
||||
a particular purpose. The entire risk as to the quality and
|
||||
performance of SAX is with you. Should SAX prove defective, you assume
|
||||
the cost of all necessary servicing, repair or correction.
|
||||
|
||||
In no event unless required by applicable law or agreed to in
|
||||
writing will any copyright holder, or any other party who may modify
|
||||
and/or redistribute SAX, be liable to you for damages, including any
|
||||
general, special, incidental or consequential damages arising out of
|
||||
the use or inability to use SAX (including but not limited to loss of
|
||||
data or data being rendered inaccurate or losses sustained by you or
|
||||
third parties or a failure of the SAX to operate with any other
|
||||
programs), even if such holder or other party has been advised of the
|
||||
possibility of such damages.
|
||||
|
||||
Copyright Disclaimers
|
||||
|
||||
This page includes statements to that effect by David Megginson, who
|
||||
would have been able to claim copyright for the original work.
|
||||
|
||||
SAX 1.0
|
||||
|
||||
Version 1.0 of the Simple API for XML (SAX), created collectively by
|
||||
the membership of the XML-DEV mailing list, is hereby released into
|
||||
the public domain.
|
||||
|
||||
No one owns SAX: you may use it freely in both commercial and
|
||||
non-commercial applications, bundle it with your software
|
||||
distribution, include it on a CD-ROM, list the source code in a book,
|
||||
mirror the documentation at your own web site, or use it in any other
|
||||
way you see fit.
|
||||
|
||||
David Megginson, sax@megginson.com
|
||||
1998-05-11
|
||||
|
||||
SAX 2.0
|
||||
|
||||
I hereby abandon any property rights to SAX 2.0 (the Simple API for
|
||||
XML), and release all of the SAX 2.0 source code, compiled code, and
|
||||
documentation contained in this distribution into the Public
|
||||
Domain. SAX comes with NO WARRANTY or guarantee of fitness for any
|
||||
purpose.
|
||||
|
||||
David Megginson, david@megginson.com
|
||||
2000-05-05
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX Attribute List Interface.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: AttributeList.java,v 1.3.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: AttributeList.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
||||
@ -181,7 +181,7 @@ public interface AttributeList {
|
||||
* <p>If the attribute name has a namespace prefix in the document,
|
||||
* the application must include the prefix here.</p>
|
||||
*
|
||||
* @param i The index of the attribute in the list.
|
||||
* @param name the name of the attribute to return
|
||||
* @return The attribute value as a string, or null if
|
||||
* no such attribute exists.
|
||||
* @see #getValue(int)
|
@ -2,9 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the public domain.
|
||||
|
||||
// $Id: Attributes.java,v 1.5.2.4 2002/01/29 21:34:14 dbrownell Exp $
|
||||
|
||||
// $Id: Attributes.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
||||
@ -34,18 +32,25 @@ package org.xml.sax;
|
||||
* the <code>http://xml.org/sax/features/namespace-prefixes</code>
|
||||
* feature is set to <var>true</var> (it is <var>false</var> by
|
||||
* default).
|
||||
* Because SAX2 conforms to the "Namespaces in XML" specification,
|
||||
* it does not give namespace declaration attributes a namespace URI.
|
||||
* Some other W3C specifications are in conflict with that, expecting
|
||||
* these declarations to be in a namespace.
|
||||
* Handler code may need to resolve that conflict.
|
||||
* Because SAX2 conforms to the original "Namespaces in XML"
|
||||
* recommendation, it normally does not
|
||||
* give namespace declaration attributes a namespace URI.
|
||||
* </p>
|
||||
*
|
||||
* <p>If the namespace-prefixes feature (see above) is <var>false</var>,
|
||||
* access by qualified name may not be available; if the
|
||||
* <code>http://xml.org/sax/features/namespaces</code>
|
||||
* feature is <var>false</var>, access by Namespace-qualified names
|
||||
* may not be available.</p>
|
||||
* <p>Some SAX2 parsers may support using an optional feature flag
|
||||
* (<code>http://xml.org/sax/features/xmlns-uris</code>) to request
|
||||
* that those attributes be given URIs, conforming to a later
|
||||
* backwards-incompatible revision of that recommendation. (The
|
||||
* attribute's "local name" will be the prefix, or "xmlns" when
|
||||
* defining a default element namespace.) For portability, handler
|
||||
* code should always resolve that conflict, rather than requiring
|
||||
* parsers that can change the setting of that feature flag. </p>
|
||||
*
|
||||
* <p>If the namespace-prefixes feature (see above) is
|
||||
* <var>false</var>, access by qualified name may not be available; if
|
||||
* the <code>http://xml.org/sax/features/namespaces</code> feature is
|
||||
* <var>false</var>, access by Namespace-qualified names may not be
|
||||
* available.</p>
|
||||
*
|
||||
* <p>This interface replaces the now-deprecated SAX1 {@link
|
||||
* org.xml.sax.AttributeList AttributeList} interface, which does not
|
||||
@ -111,10 +116,10 @@ public interface Attributes
|
||||
|
||||
|
||||
/**
|
||||
* Look up an attribute's XML 1.0 qualified name by index.
|
||||
* Look up an attribute's XML qualified (prefixed) name by index.
|
||||
*
|
||||
* @param index The attribute index (zero-based).
|
||||
* @return The XML 1.0 qualified name, or the empty string
|
||||
* @return The XML qualified name, or the empty string
|
||||
* if none is available, or null if the index
|
||||
* is out of range.
|
||||
* @see #getLength
|
||||
@ -131,7 +136,7 @@ public interface Attributes
|
||||
*
|
||||
* <p>If the parser has not read a declaration for the attribute,
|
||||
* or if the parser does not report attribute types, then it must
|
||||
* return the value "CDATA" as stated in the XML 1.0 Recommentation
|
||||
* return the value "CDATA" as stated in the XML 1.0 Recommendation
|
||||
* (clause 3.3.3, "Attribute-Value Normalization").</p>
|
||||
*
|
||||
* <p>For an enumerated attribute that is not a notation, the
|
||||
@ -180,7 +185,7 @@ public interface Attributes
|
||||
|
||||
|
||||
/**
|
||||
* Look up the index of an attribute by XML 1.0 qualified name.
|
||||
* Look up the index of an attribute by XML qualified (prefixed) name.
|
||||
*
|
||||
* @param qName The qualified (prefixed) name.
|
||||
* @return The index of the attribute, or -1 if it does not
|
||||
@ -206,12 +211,12 @@ public interface Attributes
|
||||
|
||||
|
||||
/**
|
||||
* Look up an attribute's type by XML 1.0 qualified name.
|
||||
* Look up an attribute's type by XML qualified (prefixed) name.
|
||||
*
|
||||
* <p>See {@link #getType(int) getType(int)} for a description
|
||||
* of the possible types.</p>
|
||||
*
|
||||
* @param qName The XML 1.0 qualified name.
|
||||
* @param qName The XML qualified name.
|
||||
* @return The attribute type as a string, or null if the
|
||||
* attribute is not in the list or if qualified names
|
||||
* are not available.
|
||||
@ -235,12 +240,12 @@ public interface Attributes
|
||||
|
||||
|
||||
/**
|
||||
* Look up an attribute's value by XML 1.0 qualified name.
|
||||
* Look up an attribute's value by XML qualified (prefixed) name.
|
||||
*
|
||||
* <p>See {@link #getValue(int) getValue(int)} for a description
|
||||
* of the possible values.</p>
|
||||
*
|
||||
* @param qName The XML 1.0 qualified name.
|
||||
* @param qName The XML qualified name.
|
||||
* @return The attribute value as a string, or null if the
|
||||
* attribute is not in the list or if qualified names
|
||||
* are not available.
|
@ -2,8 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the public domain.
|
||||
|
||||
// $Id: ContentHandler.java,v 1.4.2.9 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: ContentHandler.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
||||
@ -37,14 +36,13 @@ package org.xml.sax;
|
||||
* and for reporting skipped entities (in non-validating XML
|
||||
* processors).</p>
|
||||
*
|
||||
* <p>Implementors should note that there is also a Java class
|
||||
* {@link java.net.ContentHandler ContentHandler} in the java.net
|
||||
* <p>Implementors should note that there is also a
|
||||
* <code>ContentHandler</code> class in the <code>java.net</code>
|
||||
* package; that means that it's probably a bad idea to do</p>
|
||||
*
|
||||
* <blockquote>
|
||||
* import java.net.*;
|
||||
* <pre>import java.net.*;
|
||||
* import org.xml.sax.*;
|
||||
* </blockquote>
|
||||
* </pre>
|
||||
*
|
||||
* <p>In fact, "import ...*" is usually a sign of sloppy programming
|
||||
* anyway, so the user should consider this a feature rather than a
|
||||
@ -52,7 +50,7 @@ package org.xml.sax;
|
||||
*
|
||||
* @since SAX 2.0
|
||||
* @author David Megginson
|
||||
* @version 2.0.1 (sax2r2)
|
||||
* @version 2.0.1+ (sax2r3pre1)
|
||||
* @see org.xml.sax.XMLReader
|
||||
* @see org.xml.sax.DTDHandler
|
||||
* @see org.xml.sax.ErrorHandler
|
||||
@ -78,11 +76,13 @@ public interface ContentHandler
|
||||
* is probably not sufficient for use with a search engine.</p>
|
||||
*
|
||||
* <p>Note that the locator will return correct information only
|
||||
* during the invocation of the events in this interface. The
|
||||
* during the invocation SAX event callbacks after
|
||||
* {@link #startDocument startDocument} returns and before
|
||||
* {@link #endDocument endDocument} is called. The
|
||||
* application should not attempt to use it at any other time.</p>
|
||||
*
|
||||
* @param locator An object that can return the location of
|
||||
* any SAX document event.
|
||||
* @param locator an object that can return the location of
|
||||
* any SAX document event
|
||||
* @see org.xml.sax.Locator
|
||||
*/
|
||||
public void setDocumentLocator (Locator locator);
|
||||
@ -95,8 +95,8 @@ public interface ContentHandler
|
||||
* other event callbacks (except for {@link #setDocumentLocator
|
||||
* setDocumentLocator}).</p>
|
||||
*
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* @throws org.xml.sax.SAXException any SAX exception, possibly
|
||||
* wrapping another exception
|
||||
* @see #endDocument
|
||||
*/
|
||||
public void startDocument ()
|
||||
@ -106,14 +106,22 @@ public interface ContentHandler
|
||||
/**
|
||||
* Receive notification of the end of a document.
|
||||
*
|
||||
* <p><strong>There is an apparent contradiction between the
|
||||
* documentation for this method and the documentation for {@link
|
||||
* org.xml.sax.ErrorHandler#fatalError}. Until this ambiguity is
|
||||
* resolved in a future major release, clients should make no
|
||||
* assumptions about whether endDocument() will or will not be
|
||||
* invoked when the parser has reported a fatalError() or thrown
|
||||
* an exception.</strong></p>
|
||||
*
|
||||
* <p>The SAX parser will invoke this method only once, and it will
|
||||
* be the last method invoked during the parse. The parser shall
|
||||
* not invoke this method until it has either abandoned parsing
|
||||
* (because of an unrecoverable error) or reached the end of
|
||||
* input.</p>
|
||||
*
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* @throws org.xml.sax.SAXException any SAX exception, possibly
|
||||
* wrapping another exception
|
||||
* @see #startDocument
|
||||
*/
|
||||
public void endDocument()
|
||||
@ -149,12 +157,12 @@ public interface ContentHandler
|
||||
* <p>There should never be start/endPrefixMapping events for the
|
||||
* "xml" prefix, since it is predeclared and immutable.</p>
|
||||
*
|
||||
* @param prefix The Namespace prefix being declared.
|
||||
* @param prefix the Namespace prefix being declared.
|
||||
* An empty string is used for the default element namespace,
|
||||
* which has no prefix.
|
||||
* @param uri The Namespace URI the prefix is mapped to.
|
||||
* @exception org.xml.sax.SAXException The client may throw
|
||||
* an exception during processing.
|
||||
* @param uri the Namespace URI the prefix is mapped to
|
||||
* @throws org.xml.sax.SAXException the client may throw
|
||||
* an exception during processing
|
||||
* @see #endPrefixMapping
|
||||
* @see #startElement
|
||||
*/
|
||||
@ -171,10 +179,10 @@ public interface ContentHandler
|
||||
* {@link #endPrefixMapping endPrefixMapping} events is not otherwise
|
||||
* guaranteed.</p>
|
||||
*
|
||||
* @param prefix The prefix that was being mapping.
|
||||
* @param prefix the prefix that was being mapped.
|
||||
* This is the empty string when a default mapping scope ends.
|
||||
* @exception org.xml.sax.SAXException The client may throw
|
||||
* an exception during processing.
|
||||
* @throws org.xml.sax.SAXException the client may throw
|
||||
* an exception during processing
|
||||
* @see #startPrefixMapping
|
||||
* @see #endElement
|
||||
*/
|
||||
@ -228,21 +236,23 @@ public interface ContentHandler
|
||||
* <p>Like {@link #characters characters()}, attribute values may have
|
||||
* characters that need more than one <code>char</code> value. </p>
|
||||
*
|
||||
* @param uri The Namespace URI, or the empty string if the
|
||||
* @param uri the Namespace URI, or the empty string if the
|
||||
* element has no Namespace URI or if Namespace
|
||||
* processing is not being performed.
|
||||
* @param localName The local name (without prefix), or the
|
||||
* processing is not being performed
|
||||
* @param localName the local name (without prefix), or the
|
||||
* empty string if Namespace processing is not being
|
||||
* performed.
|
||||
* @param qName The qualified name (with prefix), or the
|
||||
* empty string if qualified names are not available.
|
||||
* @param atts The attributes attached to the element. If
|
||||
* performed
|
||||
* @param qName the qualified name (with prefix), or the
|
||||
* empty string if qualified names are not available
|
||||
* @param atts the attributes attached to the element. If
|
||||
* there are no attributes, it shall be an empty
|
||||
* Attributes object.
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* Attributes object. The value of this object after
|
||||
* startElement returns is undefined
|
||||
* @throws org.xml.sax.SAXException any SAX exception, possibly
|
||||
* wrapping another exception
|
||||
* @see #endElement
|
||||
* @see org.xml.sax.Attributes
|
||||
* @see org.xml.sax.helpers.AttributesImpl
|
||||
*/
|
||||
public void startElement (String uri, String localName,
|
||||
String qName, Attributes atts)
|
||||
@ -259,16 +269,16 @@ public interface ContentHandler
|
||||
*
|
||||
* <p>For information on the names, see startElement.</p>
|
||||
*
|
||||
* @param uri The Namespace URI, or the empty string if the
|
||||
* @param uri the Namespace URI, or the empty string if the
|
||||
* element has no Namespace URI or if Namespace
|
||||
* processing is not being performed.
|
||||
* @param localName The local name (without prefix), or the
|
||||
* processing is not being performed
|
||||
* @param localName the local name (without prefix), or the
|
||||
* empty string if Namespace processing is not being
|
||||
* performed.
|
||||
* @param qName The qualified XML 1.0 name (with prefix), or the
|
||||
* empty string if qualified names are not available.
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* performed
|
||||
* @param qName the qualified XML name (with prefix), or the
|
||||
* empty string if qualified names are not available
|
||||
* @throws org.xml.sax.SAXException any SAX exception, possibly
|
||||
* wrapping another exception
|
||||
*/
|
||||
public void endElement (String uri, String localName,
|
||||
String qName)
|
||||
@ -310,11 +320,11 @@ public interface ContentHandler
|
||||
* method rather than this one (validating parsers <em>must</em>
|
||||
* do so).</p>
|
||||
*
|
||||
* @param ch The characters from the XML document.
|
||||
* @param start The start position in the array.
|
||||
* @param length The number of characters to read from the array.
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* @param ch the characters from the XML document
|
||||
* @param start the start position in the array
|
||||
* @param length the number of characters to read from the array
|
||||
* @throws org.xml.sax.SAXException any SAX exception, possibly
|
||||
* wrapping another exception
|
||||
* @see #ignorableWhitespace
|
||||
* @see org.xml.sax.Locator
|
||||
*/
|
||||
@ -326,9 +336,10 @@ public interface ContentHandler
|
||||
* Receive notification of ignorable whitespace in element content.
|
||||
*
|
||||
* <p>Validating Parsers must use this method to report each chunk
|
||||
* of whitespace in element content (see the W3C XML 1.0 recommendation,
|
||||
* section 2.10): non-validating parsers may also use this method
|
||||
* if they are capable of parsing and using content models.</p>
|
||||
* of whitespace in element content (see the W3C XML 1.0
|
||||
* recommendation, section 2.10): non-validating parsers may also
|
||||
* use this method if they are capable of parsing and using
|
||||
* content models.</p>
|
||||
*
|
||||
* <p>SAX parsers may return all contiguous whitespace in a single
|
||||
* chunk, or they may split it into several chunks; however, all of
|
||||
@ -339,11 +350,11 @@ public interface ContentHandler
|
||||
* <p>The application must not attempt to read from the array
|
||||
* outside of the specified range.</p>
|
||||
*
|
||||
* @param ch The characters from the XML document.
|
||||
* @param start The start position in the array.
|
||||
* @param length The number of characters to read from the array.
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* @param ch the characters from the XML document
|
||||
* @param start the start position in the array
|
||||
* @param length the number of characters to read from the array
|
||||
* @throws org.xml.sax.SAXException any SAX exception, possibly
|
||||
* wrapping another exception
|
||||
* @see #characters
|
||||
*/
|
||||
public void ignorableWhitespace (char ch[], int start, int length)
|
||||
@ -365,12 +376,12 @@ public interface ContentHandler
|
||||
* data may have characters that need more than one <code>char</code>
|
||||
* value. </p>
|
||||
*
|
||||
* @param target The processing instruction target.
|
||||
* @param data The processing instruction data, or null if
|
||||
* @param target the processing instruction target
|
||||
* @param data the processing instruction data, or null if
|
||||
* none was supplied. The data does not include any
|
||||
* whitespace separating it from the target.
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* whitespace separating it from the target
|
||||
* @throws org.xml.sax.SAXException any SAX exception, possibly
|
||||
* wrapping another exception
|
||||
*/
|
||||
public void processingInstruction (String target, String data)
|
||||
throws SAXException;
|
||||
@ -394,12 +405,12 @@ public interface ContentHandler
|
||||
* <code>http://xml.org/sax/features/external-parameter-entities</code>
|
||||
* properties.</p>
|
||||
*
|
||||
* @param name The name of the skipped entity. If it is a
|
||||
* @param name the name of the skipped entity. If it is a
|
||||
* parameter entity, the name will begin with '%', and if
|
||||
* it is the external DTD subset, it will be the string
|
||||
* "[dtd]".
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* "[dtd]"
|
||||
* @throws org.xml.sax.SAXException any SAX exception, possibly
|
||||
* wrapping another exception
|
||||
*/
|
||||
public void skippedEntity (String name)
|
||||
throws SAXException;
|
@ -1,7 +1,7 @@
|
||||
// SAX DTD handler.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: DTDHandler.java,v 1.5.2.4 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: DTDHandler.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX document handler.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: DocumentHandler.java,v 1.3.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: DocumentHandler.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX entity resolver.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: EntityResolver.java,v 1.7.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: EntityResolver.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX error handler.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: ErrorHandler.java,v 1.4.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: ErrorHandler.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
||||
@ -24,20 +24,25 @@ package org.xml.sax;
|
||||
* through this interface.</p>
|
||||
*
|
||||
* <p><strong>WARNING:</strong> If an application does <em>not</em>
|
||||
* register an ErrorHandler, XML parsing errors will go unreported
|
||||
* and bizarre behaviour may result.</p>
|
||||
* register an ErrorHandler, XML parsing errors will go unreported,
|
||||
* except that <em>SAXParseException</em>s will be thrown for fatal errors.
|
||||
* In order to detect validity errors, an ErrorHandler that does something
|
||||
* with {@link #error error()} calls must be registered.</p>
|
||||
*
|
||||
* <p>For XML processing errors, a SAX driver must use this interface
|
||||
* instead of throwing an exception: it is up to the application
|
||||
* in preference to throwing an exception: it is up to the application
|
||||
* to decide whether to throw an exception for different types of
|
||||
* errors and warnings. Note, however, that there is no requirement that
|
||||
* the parser continue to provide useful information after a call to
|
||||
* {@link #fatalError fatalError} (in other words, a SAX driver class
|
||||
* could catch an exception and report a fatalError).</p>
|
||||
* the parser continue to report additional errors after a call to
|
||||
* {@link #fatalError fatalError}. In other words, a SAX driver class
|
||||
* may throw an exception after reporting any fatalError.
|
||||
* Also parsers may throw appropriate exceptions for non-XML errors.
|
||||
* For example, {@link XMLReader#parse XMLReader.parse()} would throw
|
||||
* an IOException for errors accessing entities or the document.</p>
|
||||
*
|
||||
* @since SAX 1.0
|
||||
* @author David Megginson
|
||||
* @version 2.0.1 (sax2r2)
|
||||
* @version 2.0.1+ (sax2r3pre1)
|
||||
* @see org.xml.sax.XMLReader#setErrorHandler
|
||||
* @see org.xml.sax.SAXParseException
|
||||
*/
|
||||
@ -48,8 +53,9 @@ public interface ErrorHandler {
|
||||
* Receive notification of a warning.
|
||||
*
|
||||
* <p>SAX parsers will use this method to report conditions that
|
||||
* are not errors or fatal errors as defined by the XML 1.0
|
||||
* recommendation. The default behaviour is to take no action.</p>
|
||||
* are not errors or fatal errors as defined by the XML
|
||||
* recommendation. The default behaviour is to take no
|
||||
* action.</p>
|
||||
*
|
||||
* <p>The SAX parser must continue to provide normal parsing events
|
||||
* after invoking this method: it should still be possible for the
|
||||
@ -77,12 +83,12 @@ public interface ErrorHandler {
|
||||
* validity constraint. The default behaviour is to take no
|
||||
* action.</p>
|
||||
*
|
||||
* <p>The SAX parser must continue to provide normal parsing events
|
||||
* after invoking this method: it should still be possible for the
|
||||
* application to process the document through to the end. If the
|
||||
* application cannot do so, then the parser should report a fatal
|
||||
* error even if the XML 1.0 recommendation does not require it to
|
||||
* do so.</p>
|
||||
* <p>The SAX parser must continue to provide normal parsing
|
||||
* events after invoking this method: it should still be possible
|
||||
* for the application to process the document through to the end.
|
||||
* If the application cannot do so, then the parser should report
|
||||
* a fatal error even if the XML recommendation does not require
|
||||
* it to do so.</p>
|
||||
*
|
||||
* <p>Filters may use this method to report other, non-XML errors
|
||||
* as well.</p>
|
||||
@ -100,6 +106,14 @@ public interface ErrorHandler {
|
||||
/**
|
||||
* Receive notification of a non-recoverable error.
|
||||
*
|
||||
* <p><strong>There is an apparent contradiction between the
|
||||
* documentation for this method and the documentation for {@link
|
||||
* org.xml.sax.ContentHandler#endDocument}. Until this ambiguity
|
||||
* is resolved in a future major release, clients should make no
|
||||
* assumptions about whether endDocument() will or will not be
|
||||
* invoked when the parser has reported a fatalError() or thrown
|
||||
* an exception.</strong></p>
|
||||
*
|
||||
* <p>This corresponds to the definition of "fatal error" in
|
||||
* section 1.2 of the W3C XML 1.0 Recommendation. For example, a
|
||||
* parser would use this callback to report the violation of a
|
||||
@ -107,7 +121,7 @@ public interface ErrorHandler {
|
||||
*
|
||||
* <p>The application must assume that the document is unusable
|
||||
* after the parser has invoked this method, and should continue
|
||||
* (if at all) only for the sake of collecting addition error
|
||||
* (if at all) only for the sake of collecting additional error
|
||||
* messages: in fact, SAX parsers are free to stop reporting any
|
||||
* other events once this method has been invoked.</p>
|
||||
*
|
@ -1,7 +1,7 @@
|
||||
// SAX default handler base class.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: HandlerBase.java,v 1.3.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: HandlerBase.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
||||
@ -213,8 +213,7 @@ public class HandlerBase
|
||||
* each element (such as finalising a tree node or writing
|
||||
* output to a file).</p>
|
||||
*
|
||||
* @param name The element type name.
|
||||
* @param attributes The specified or defaulted attributes.
|
||||
* @param name the element name
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
||||
* @see org.xml.sax.DocumentHandler#endElement
|
@ -1,7 +1,7 @@
|
||||
// SAX input source.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: InputSource.java,v 1.5.2.4 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: InputSource.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX locator interface for document events.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: Locator.java,v 1.4.2.5 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: Locator.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX parser interface.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: Parser.java,v 1.3.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: Parser.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX exception class.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: SAXException.java,v 1.4.2.4 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: SAXException.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -2,9 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the Public Domain.
|
||||
|
||||
// $Id: SAXNotRecognizedException.java,v 1.4.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
|
||||
// $Id: SAXNotRecognizedException.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -2,9 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the Public Domain.
|
||||
|
||||
// $Id: SAXNotSupportedException.java,v 1.4.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
|
||||
// $Id: SAXNotSupportedException.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX exception class.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: SAXParseException.java,v 1.3.2.5 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: SAXParseException.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
||||
@ -104,9 +104,9 @@ public class SAXParseException extends SAXException {
|
||||
*
|
||||
*
|
||||
* @param message The error or warning message.
|
||||
* @param publicId The public identifer of the entity that generated
|
||||
* @param publicId The public identifier of the entity that generated
|
||||
* the error or warning.
|
||||
* @param systemId The system identifer of the entity that generated
|
||||
* @param systemId The system identifier of the entity that generated
|
||||
* the error or warning.
|
||||
* @param lineNumber The line number of the end of the text that
|
||||
* caused the error or warning.
|
||||
@ -135,9 +135,9 @@ public class SAXParseException extends SAXException {
|
||||
*
|
||||
* @param message The error or warning message, or null to use
|
||||
* the message from the embedded exception.
|
||||
* @param publicId The public identifer of the entity that generated
|
||||
* @param publicId The public identifier of the entity that generated
|
||||
* the error or warning.
|
||||
* @param systemId The system identifer of the entity that generated
|
||||
* @param systemId The system identifier of the entity that generated
|
||||
* the error or warning.
|
||||
* @param lineNumber The line number of the end of the text that
|
||||
* caused the error or warning.
|
||||
@ -231,7 +231,6 @@ public class SAXParseException extends SAXException {
|
||||
return this.columnNumber;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Internal state.
|
@ -2,9 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the Public Domain.
|
||||
|
||||
// $Id: XMLFilter.java,v 1.3.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
|
||||
// $Id: XMLFilter.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
@ -2,8 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the Public Domain.
|
||||
|
||||
// $Id: XMLReader.java,v 1.3.2.5 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: XMLReader.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax;
|
||||
|
||||
@ -53,7 +52,7 @@ import java.io.IOException;
|
||||
*
|
||||
* @since SAX 2.0
|
||||
* @author David Megginson
|
||||
* @version 2.0.1 (sax2r2)
|
||||
* @version 2.0.1+ (sax2r3pre1)
|
||||
* @see org.xml.sax.XMLFilter
|
||||
* @see org.xml.sax.helpers.ParserAdapter
|
||||
* @see org.xml.sax.helpers.XMLReaderAdapter
|
||||
@ -342,7 +341,14 @@ public interface XMLReader
|
||||
* progress (they should create a new XMLReader instead for each
|
||||
* nested XML document). Once a parse is complete, an
|
||||
* application may reuse the same XMLReader object, possibly with a
|
||||
* different input source.</p>
|
||||
* different input source.
|
||||
* Configuration of the XMLReader object (such as handler bindings and
|
||||
* values established for feature flags and properties) is unchanged
|
||||
* by completion of a parse, unless the definition of that aspect of
|
||||
* the configuration explicitly specifies other behavior.
|
||||
* (For example, feature flags or properties exposing
|
||||
* characteristics of the document being parsed.)
|
||||
* </p>
|
||||
*
|
||||
* <p>During the parse, the XMLReader will provide information
|
||||
* about the XML document through the registered event
|
||||
@ -352,7 +358,7 @@ public interface XMLReader
|
||||
* has ended. If a client application wants to terminate
|
||||
* parsing early, it should throw an exception.</p>
|
||||
*
|
||||
* @param source The input source for the top-level of the
|
||||
* @param input The input source for the top-level of the
|
||||
* XML document.
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
||||
* wrapping another exception.
|
132
libjava/external/sax/org/xml/sax/ext/Attributes2.java
vendored
Normal file
132
libjava/external/sax/org/xml/sax/ext/Attributes2.java
vendored
Normal file
@ -0,0 +1,132 @@
|
||||
// Attributes2.java - extended Attributes
|
||||
// http://www.saxproject.org
|
||||
// Public Domain: no warranty.
|
||||
// $Id: Attributes2.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.ext;
|
||||
|
||||
import org.xml.sax.Attributes;
|
||||
|
||||
|
||||
/**
|
||||
* SAX2 extension to augment the per-attribute information
|
||||
* provided though {@link Attributes}.
|
||||
* If an implementation supports this extension, the attributes
|
||||
* provided in {@link org.xml.sax.ContentHandler#startElement
|
||||
* ContentHandler.startElement() } will implement this interface,
|
||||
* and the <em>http://xml.org/sax/features/use-attributes2</em>
|
||||
* feature flag will have the value <em>true</em>.
|
||||
*
|
||||
* <blockquote>
|
||||
* <em>This module, both source code and documentation, is in the
|
||||
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p> XMLReader implementations are not required to support this
|
||||
* information, and it is not part of core-only SAX2 distributions.</p>
|
||||
*
|
||||
* <p>Note that if an attribute was defaulted (<em>!isSpecified()</em>)
|
||||
* it will of necessity also have been declared (<em>isDeclared()</em>)
|
||||
* in the DTD.
|
||||
* Similarly if an attribute's type is anything except CDATA, then it
|
||||
* must have been declared.
|
||||
* </p>
|
||||
*
|
||||
* @since SAX 2.0 (extensions 1.1 alpha)
|
||||
* @author David Brownell
|
||||
* @version TBS
|
||||
*/
|
||||
public interface Attributes2 extends Attributes
|
||||
{
|
||||
/**
|
||||
* Returns false unless the attribute was declared in the DTD.
|
||||
* This helps distinguish two kinds of attributes that SAX reports
|
||||
* as CDATA: ones that were declared (and hence are usually valid),
|
||||
* and those that were not (and which are never valid).
|
||||
*
|
||||
* @param index The attribute index (zero-based).
|
||||
* @return true if the attribute was declared in the DTD,
|
||||
* false otherwise.
|
||||
* @exception java.lang.ArrayIndexOutOfBoundsException When the
|
||||
* supplied index does not identify an attribute.
|
||||
*/
|
||||
public boolean isDeclared (int index);
|
||||
|
||||
/**
|
||||
* Returns false unless the attribute was declared in the DTD.
|
||||
* This helps distinguish two kinds of attributes that SAX reports
|
||||
* as CDATA: ones that were declared (and hence are usually valid),
|
||||
* and those that were not (and which are never valid).
|
||||
*
|
||||
* @param qName The XML qualified (prefixed) name.
|
||||
* @return true if the attribute was declared in the DTD,
|
||||
* false otherwise.
|
||||
* @exception java.lang.IllegalArgumentException When the
|
||||
* supplied name does not identify an attribute.
|
||||
*/
|
||||
public boolean isDeclared (String qName);
|
||||
|
||||
/**
|
||||
* Returns false unless the attribute was declared in the DTD.
|
||||
* This helps distinguish two kinds of attributes that SAX reports
|
||||
* as CDATA: ones that were declared (and hence are usually valid),
|
||||
* and those that were not (and which are never valid).
|
||||
*
|
||||
* <p>Remember that since DTDs do not "understand" namespaces, the
|
||||
* namespace URI associated with an attribute may not have come from
|
||||
* the DTD. The declaration will have applied to the attribute's
|
||||
* <em>qName</em>.
|
||||
*
|
||||
* @param uri The Namespace URI, or the empty string if
|
||||
* the name has no Namespace URI.
|
||||
* @param localName The attribute's local name.
|
||||
* @return true if the attribute was declared in the DTD,
|
||||
* false otherwise.
|
||||
* @exception java.lang.IllegalArgumentException When the
|
||||
* supplied names do not identify an attribute.
|
||||
*/
|
||||
public boolean isDeclared (String uri, String localName);
|
||||
|
||||
/**
|
||||
* Returns true unless the attribute value was provided
|
||||
* by DTD defaulting.
|
||||
*
|
||||
* @param index The attribute index (zero-based).
|
||||
* @return true if the value was found in the XML text,
|
||||
* false if the value was provided by DTD defaulting.
|
||||
* @exception java.lang.ArrayIndexOutOfBoundsException When the
|
||||
* supplied index does not identify an attribute.
|
||||
*/
|
||||
public boolean isSpecified (int index);
|
||||
|
||||
/**
|
||||
* Returns true unless the attribute value was provided
|
||||
* by DTD defaulting.
|
||||
*
|
||||
* <p>Remember that since DTDs do not "understand" namespaces, the
|
||||
* namespace URI associated with an attribute may not have come from
|
||||
* the DTD. The declaration will have applied to the attribute's
|
||||
* <em>qName</em>.
|
||||
*
|
||||
* @param uri The Namespace URI, or the empty string if
|
||||
* the name has no Namespace URI.
|
||||
* @param localName The attribute's local name.
|
||||
* @return true if the value was found in the XML text,
|
||||
* false if the value was provided by DTD defaulting.
|
||||
* @exception java.lang.IllegalArgumentException When the
|
||||
* supplied names do not identify an attribute.
|
||||
*/
|
||||
public boolean isSpecified (String uri, String localName);
|
||||
|
||||
/**
|
||||
* Returns true unless the attribute value was provided
|
||||
* by DTD defaulting.
|
||||
*
|
||||
* @param qName The XML qualified (prefixed) name.
|
||||
* @return true if the value was found in the XML text,
|
||||
* false if the value was provided by DTD defaulting.
|
||||
* @exception java.lang.IllegalArgumentException When the
|
||||
* supplied name does not identify an attribute.
|
||||
*/
|
||||
public boolean isSpecified (String qName);
|
||||
}
|
301
libjava/external/sax/org/xml/sax/ext/Attributes2Impl.java
vendored
Normal file
301
libjava/external/sax/org/xml/sax/ext/Attributes2Impl.java
vendored
Normal file
@ -0,0 +1,301 @@
|
||||
// Attributes2Impl.java - extended AttributesImpl
|
||||
// http://www.saxproject.org
|
||||
// Public Domain: no warranty.
|
||||
// $Id: Attributes2Impl.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.ext;
|
||||
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.helpers.AttributesImpl;
|
||||
|
||||
|
||||
/**
|
||||
* SAX2 extension helper for additional Attributes information,
|
||||
* implementing the {@link Attributes2} interface.
|
||||
*
|
||||
* <blockquote>
|
||||
* <em>This module, both source code and documentation, is in the
|
||||
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>This is not part of core-only SAX2 distributions.</p>
|
||||
*
|
||||
* <p>The <em>specified</em> flag for each attribute will always
|
||||
* be true, unless it has been set to false in the copy constructor
|
||||
* or using {@link #setSpecified}.
|
||||
* Similarly, the <em>declared</em> flag for each attribute will
|
||||
* always be false, except for defaulted attributes (<em>specified</em>
|
||||
* is false), non-CDATA attributes, or when it is set to true using
|
||||
* {@link #setDeclared}.
|
||||
* If you change an attribute's type by hand, you may need to modify
|
||||
* its <em>declared</em> flag to match.
|
||||
* </p>
|
||||
*
|
||||
* @since SAX 2.0 (extensions 1.1 alpha)
|
||||
* @author David Brownell
|
||||
* @version TBS
|
||||
*/
|
||||
public class Attributes2Impl extends AttributesImpl implements Attributes2
|
||||
{
|
||||
private boolean declared [];
|
||||
private boolean specified [];
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new, empty Attributes2Impl object.
|
||||
*/
|
||||
public Attributes2Impl () { }
|
||||
|
||||
|
||||
/**
|
||||
* Copy an existing Attributes or Attributes2 object.
|
||||
* If the object implements Attributes2, values of the
|
||||
* <em>specified</em> and <em>declared</em> flags for each
|
||||
* attribute are copied.
|
||||
* Otherwise the flag values are defaulted to assume no DTD was used,
|
||||
* unless there is evidence to the contrary (such as attributes with
|
||||
* type other than CDATA, which must have been <em>declared</em>).
|
||||
*
|
||||
* <p>This constructor is especially useful inside a
|
||||
* {@link org.xml.sax.ContentHandler#startElement startElement} event.</p>
|
||||
*
|
||||
* @param atts The existing Attributes object.
|
||||
*/
|
||||
public Attributes2Impl (Attributes atts)
|
||||
{
|
||||
super (atts);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Implementation of Attributes2
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/**
|
||||
* Returns the current value of the attribute's "declared" flag.
|
||||
*/
|
||||
// javadoc mostly from interface
|
||||
public boolean isDeclared (int index)
|
||||
{
|
||||
if (index < 0 || index >= getLength ())
|
||||
throw new ArrayIndexOutOfBoundsException (
|
||||
"No attribute at index: " + index);
|
||||
return declared [index];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the current value of the attribute's "declared" flag.
|
||||
*/
|
||||
// javadoc mostly from interface
|
||||
public boolean isDeclared (String uri, String localName)
|
||||
{
|
||||
int index = getIndex (uri, localName);
|
||||
|
||||
if (index < 0)
|
||||
throw new IllegalArgumentException (
|
||||
"No such attribute: local=" + localName
|
||||
+ ", namespace=" + uri);
|
||||
return declared [index];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the current value of the attribute's "declared" flag.
|
||||
*/
|
||||
// javadoc mostly from interface
|
||||
public boolean isDeclared (String qName)
|
||||
{
|
||||
int index = getIndex (qName);
|
||||
|
||||
if (index < 0)
|
||||
throw new IllegalArgumentException (
|
||||
"No such attribute: " + qName);
|
||||
return declared [index];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the current value of an attribute's "specified" flag.
|
||||
*
|
||||
* @param index The attribute index (zero-based).
|
||||
* @return current flag value
|
||||
* @exception java.lang.ArrayIndexOutOfBoundsException When the
|
||||
* supplied index does not identify an attribute.
|
||||
*/
|
||||
public boolean isSpecified (int index)
|
||||
{
|
||||
if (index < 0 || index >= getLength ())
|
||||
throw new ArrayIndexOutOfBoundsException (
|
||||
"No attribute at index: " + index);
|
||||
return specified [index];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the current value of an attribute's "specified" flag.
|
||||
*
|
||||
* @param uri The Namespace URI, or the empty string if
|
||||
* the name has no Namespace URI.
|
||||
* @param localName The attribute's local name.
|
||||
* @return current flag value
|
||||
* @exception java.lang.IllegalArgumentException When the
|
||||
* supplied names do not identify an attribute.
|
||||
*/
|
||||
public boolean isSpecified (String uri, String localName)
|
||||
{
|
||||
int index = getIndex (uri, localName);
|
||||
|
||||
if (index < 0)
|
||||
throw new IllegalArgumentException (
|
||||
"No such attribute: local=" + localName
|
||||
+ ", namespace=" + uri);
|
||||
return specified [index];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the current value of an attribute's "specified" flag.
|
||||
*
|
||||
* @param qName The XML qualified (prefixed) name.
|
||||
* @return current flag value
|
||||
* @exception java.lang.IllegalArgumentException When the
|
||||
* supplied name does not identify an attribute.
|
||||
*/
|
||||
public boolean isSpecified (String qName)
|
||||
{
|
||||
int index = getIndex (qName);
|
||||
|
||||
if (index < 0)
|
||||
throw new IllegalArgumentException (
|
||||
"No such attribute: " + qName);
|
||||
return specified [index];
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Manipulators
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/**
|
||||
* Copy an entire Attributes object. The "specified" flags are
|
||||
* assigned as true, and "declared" flags as false (except when
|
||||
* an attribute's type is not CDATA),
|
||||
* unless the object is an Attributes2 object.
|
||||
* In that case those flag values are all copied.
|
||||
*
|
||||
* @see AttributesImpl#setAttributes
|
||||
*/
|
||||
public void setAttributes (Attributes atts)
|
||||
{
|
||||
int length = atts.getLength ();
|
||||
|
||||
super.setAttributes (atts);
|
||||
declared = new boolean [length];
|
||||
specified = new boolean [length];
|
||||
|
||||
if (atts instanceof Attributes2) {
|
||||
Attributes2 a2 = (Attributes2) atts;
|
||||
for (int i = 0; i < length; i++) {
|
||||
declared [i] = a2.isDeclared (i);
|
||||
specified [i] = a2.isSpecified (i);
|
||||
}
|
||||
} else {
|
||||
for (int i = 0; i < length; i++) {
|
||||
declared [i] = !"CDATA".equals (atts.getType (i));
|
||||
specified [i] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add an attribute to the end of the list, setting its
|
||||
* "specified" flag to true. To set that flag's value
|
||||
* to false, use {@link #setSpecified}.
|
||||
*
|
||||
* <p>Unless the attribute <em>type</em> is CDATA, this attribute
|
||||
* is marked as being declared in the DTD. To set that flag's value
|
||||
* to true for CDATA attributes, use {@link #setDeclared}.
|
||||
*
|
||||
* @see AttributesImpl#addAttribute
|
||||
*/
|
||||
public void addAttribute (String uri, String localName, String qName,
|
||||
String type, String value)
|
||||
{
|
||||
super.addAttribute (uri, localName, qName, type, value);
|
||||
|
||||
int length = getLength ();
|
||||
|
||||
if (length < specified.length) {
|
||||
boolean newFlags [];
|
||||
|
||||
newFlags = new boolean [length];
|
||||
System.arraycopy (declared, 0, newFlags, 0, declared.length);
|
||||
declared = newFlags;
|
||||
|
||||
newFlags = new boolean [length];
|
||||
System.arraycopy (specified, 0, newFlags, 0, specified.length);
|
||||
specified = newFlags;
|
||||
}
|
||||
|
||||
specified [length - 1] = true;
|
||||
declared [length - 1] = !"CDATA".equals (type);
|
||||
}
|
||||
|
||||
|
||||
// javadoc entirely from superclass
|
||||
public void removeAttribute (int index)
|
||||
{
|
||||
int origMax = getLength () - 1;
|
||||
|
||||
super.removeAttribute (index);
|
||||
if (index != origMax) {
|
||||
System.arraycopy (declared, index + 1, declared, index,
|
||||
origMax - index);
|
||||
System.arraycopy (specified, index + 1, specified, index,
|
||||
origMax - index);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Assign a value to the "declared" flag of a specific attribute.
|
||||
* This is normally needed only for attributes of type CDATA,
|
||||
* including attributes whose type is changed to or from CDATA.
|
||||
*
|
||||
* @param index The index of the attribute (zero-based).
|
||||
* @param value The desired flag value.
|
||||
* @exception java.lang.ArrayIndexOutOfBoundsException When the
|
||||
* supplied index does not identify an attribute.
|
||||
* @see #setType
|
||||
*/
|
||||
public void setDeclared (int index, boolean value)
|
||||
{
|
||||
if (index < 0 || index >= getLength ())
|
||||
throw new ArrayIndexOutOfBoundsException (
|
||||
"No attribute at index: " + index);
|
||||
declared [index] = value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Assign a value to the "specified" flag of a specific attribute.
|
||||
* This is the only way this flag can be cleared, except clearing
|
||||
* by initialization with the copy constructor.
|
||||
*
|
||||
* @param index The index of the attribute (zero-based).
|
||||
* @param value The desired flag value.
|
||||
* @exception java.lang.ArrayIndexOutOfBoundsException When the
|
||||
* supplied index does not identify an attribute.
|
||||
*/
|
||||
public void setSpecified (int index, boolean value)
|
||||
{
|
||||
if (index < 0 || index >= getLength ())
|
||||
throw new ArrayIndexOutOfBoundsException (
|
||||
"No attribute at index: " + index);
|
||||
specified [index] = value;
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
// DeclHandler.java - Optional handler for DTD declaration events.
|
||||
// http://www.saxproject.org
|
||||
// Public Domain: no warranty.
|
||||
// $Id: DeclHandler.java,v 1.2.2.5 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: DeclHandler.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.ext;
|
||||
|
||||
@ -125,11 +125,14 @@ public interface DeclHandler
|
||||
* <p>Only the effective (first) declaration for each entity
|
||||
* will be reported.</p>
|
||||
*
|
||||
* <p>If the system identifier is a URL, the parser must resolve it
|
||||
* fully before passing it to the application.</p>
|
||||
*
|
||||
* @param name The name of the entity. If it is a parameter
|
||||
* entity, the name will begin with '%'.
|
||||
* @param publicId The declared public identifier of the entity, or
|
||||
* null if none was declared.
|
||||
* @param systemId The declared system identifier of the entity.
|
||||
* @param publicId The entity's public identifier, or null if none
|
||||
* was given.
|
||||
* @param systemId The entity's system identifier.
|
||||
* @exception SAXException The application may raise an exception.
|
||||
* @see #internalEntityDecl
|
||||
* @see org.xml.sax.DTDHandler#unparsedEntityDecl
|
130
libjava/external/sax/org/xml/sax/ext/DefaultHandler2.java
vendored
Normal file
130
libjava/external/sax/org/xml/sax/ext/DefaultHandler2.java
vendored
Normal file
@ -0,0 +1,130 @@
|
||||
// DefaultHandler2.java - extended DefaultHandler
|
||||
// http://www.saxproject.org
|
||||
// Public Domain: no warranty.
|
||||
// $Id: DefaultHandler2.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.ext;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
|
||||
/**
|
||||
* This class extends the SAX2 base handler class to support the
|
||||
* SAX2 {@link LexicalHandler}, {@link DeclHandler}, and
|
||||
* {@link EntityResolver2} extensions. Except for overriding the
|
||||
* original SAX1 {@link DefaultHandler#resolveEntity resolveEntity()}
|
||||
* method the added handler methods just return. Subclassers may
|
||||
* override everything on a method-by-method basis.
|
||||
*
|
||||
* <blockquote>
|
||||
* <em>This module, both source code and documentation, is in the
|
||||
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p> <em>Note:</em> this class might yet learn that the
|
||||
* <em>ContentHandler.setDocumentLocator()</em> call might be passed a
|
||||
* {@link Locator2} object, and that the
|
||||
* <em>ContentHandler.startElement()</em> call might be passed a
|
||||
* {@link Attributes2} object.
|
||||
*
|
||||
* @since SAX 2.0 (extensions 1.1 alpha)
|
||||
* @author David Brownell
|
||||
* @version TBS
|
||||
*/
|
||||
public class DefaultHandler2 extends DefaultHandler
|
||||
implements LexicalHandler, DeclHandler, EntityResolver2
|
||||
{
|
||||
/** Constructs a handler which ignores all parsing events. */
|
||||
public DefaultHandler2 () { }
|
||||
|
||||
|
||||
// SAX2 ext-1.0 LexicalHandler
|
||||
|
||||
public void startCDATA ()
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void endCDATA ()
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void startDTD (String name, String publicId, String systemId)
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void endDTD ()
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void startEntity (String name)
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void endEntity (String name)
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void comment (char ch [], int start, int length)
|
||||
throws SAXException
|
||||
{ }
|
||||
|
||||
|
||||
// SAX2 ext-1.0 DeclHandler
|
||||
|
||||
public void attributeDecl (String eName, String aName,
|
||||
String type, String mode, String value)
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void elementDecl (String name, String model)
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void externalEntityDecl (String name,
|
||||
String publicId, String systemId)
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
public void internalEntityDecl (String name, String value)
|
||||
throws SAXException
|
||||
{}
|
||||
|
||||
// SAX2 ext-1.1 EntityResolver2
|
||||
|
||||
/**
|
||||
* Tells the parser that if no external subset has been declared
|
||||
* in the document text, none should be used.
|
||||
*/
|
||||
public InputSource getExternalSubset (String name, String baseURI)
|
||||
throws SAXException, IOException
|
||||
{ return null; }
|
||||
|
||||
/**
|
||||
* Tells the parser to resolve the systemId against the baseURI
|
||||
* and read the entity text from that resulting absolute URI.
|
||||
* Note that because the older
|
||||
* {@link DefaultHandler#resolveEntity DefaultHandler.resolveEntity()},
|
||||
* method is overridden to call this one, this method may sometimes
|
||||
* be invoked with null <em>name</em> and <em>baseURI</em>, and
|
||||
* with the <em>systemId</em> already absolutized.
|
||||
*/
|
||||
public InputSource resolveEntity (String name, String publicId,
|
||||
String baseURI, String systemId)
|
||||
throws SAXException, IOException
|
||||
{ return null; }
|
||||
|
||||
// SAX1 EntityResolver
|
||||
|
||||
/**
|
||||
* Invokes
|
||||
* {@link EntityResolver2#resolveEntity EntityResolver2.resolveEntity()}
|
||||
* with null entity name and base URI.
|
||||
* You only need to override that method to use this class.
|
||||
*/
|
||||
public InputSource resolveEntity (String publicId, String systemId)
|
||||
throws SAXException, IOException
|
||||
{ return resolveEntity (null, publicId, null, systemId); }
|
||||
}
|
197
libjava/external/sax/org/xml/sax/ext/EntityResolver2.java
vendored
Normal file
197
libjava/external/sax/org/xml/sax/ext/EntityResolver2.java
vendored
Normal file
@ -0,0 +1,197 @@
|
||||
// EntityResolver2.java - Extended SAX entity resolver.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: EntityResolver2.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.ext;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.xml.sax.EntityResolver;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xml.sax.XMLReader;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
|
||||
/**
|
||||
* Extended interface for mapping external entity references to input
|
||||
* sources, or providing a missing external subset. The
|
||||
* {@link XMLReader#setEntityResolver XMLReader.setEntityResolver()} method
|
||||
* is used to provide implementations of this interface to parsers.
|
||||
* When a parser uses the methods in this interface, the
|
||||
* {@link EntityResolver2#resolveEntity EntityResolver2.resolveEntity()}
|
||||
* method (in this interface) is used <em>instead of</em> the older (SAX 1.0)
|
||||
* {@link EntityResolver#resolveEntity EntityResolver.resolveEntity()} method.
|
||||
*
|
||||
* <blockquote>
|
||||
* <em>This module, both source code and documentation, is in the
|
||||
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>If a SAX application requires the customized handling which this
|
||||
* interface defines for external entities, it must ensure that it uses
|
||||
* an XMLReader with the
|
||||
* <em>http://xml.org/sax/features/use-entity-resolver2</em> feature flag
|
||||
* set to <em>true</em> (which is its default value when the feature is
|
||||
* recognized). If that flag is unrecognized, or its value is false,
|
||||
* or the resolver does not implement this interface, then only the
|
||||
* {@link EntityResolver} method will be used.
|
||||
* </p>
|
||||
*
|
||||
* <p>That supports three categories of application that modify entity
|
||||
* resolution. <em>Old Style</em> applications won't know about this interface;
|
||||
* they will provide an EntityResolver.
|
||||
* <em>Transitional Mode</em> provide an EntityResolver2 and automatically
|
||||
* get the benefit of its methods in any systems (parsers or other tools)
|
||||
* supporting it, due to polymorphism.
|
||||
* Both <em>Old Style</em> and <em>Transitional Mode</em> applications will
|
||||
* work with any SAX2 parser.
|
||||
* <em>New style</em> applications will fail to run except on SAX2 parsers
|
||||
* that support this particular feature.
|
||||
* They will insist that feature flag have a value of "true", and the
|
||||
* EntityResolver2 implementation they provide might throw an exception
|
||||
* if the original SAX 1.0 style entity resolution method is invoked.
|
||||
* </p>
|
||||
*
|
||||
* @see org.xml.sax.XMLReader#setEntityResolver
|
||||
*
|
||||
* @since SAX 2.0 (extensions 1.1 alpha)
|
||||
* @author David Brownell
|
||||
* @version TBD
|
||||
*/
|
||||
public interface EntityResolver2 extends EntityResolver
|
||||
{
|
||||
/**
|
||||
* Allows applications to provide an external subset for documents
|
||||
* that don't explicitly define one. Documents with DOCTYPE declarations
|
||||
* that omit an external subset can thus augment the declarations
|
||||
* available for validation, entity processing, and attribute processing
|
||||
* (normalization, defaulting, and reporting types including ID).
|
||||
* This augmentation is reported
|
||||
* through the {@link LexicalHandler#startDTD startDTD()} method as if
|
||||
* the document text had originally included the external subset;
|
||||
* this callback is made before any internal subset data or errors
|
||||
* are reported.</p>
|
||||
*
|
||||
* <p>This method can also be used with documents that have no DOCTYPE
|
||||
* declaration. When the root element is encountered,
|
||||
* but no DOCTYPE declaration has been seen, this method is
|
||||
* invoked. If it returns a value for the external subset, that root
|
||||
* element is declared to be the root element, giving the effect of
|
||||
* splicing a DOCTYPE declaration at the end the prolog of a document
|
||||
* that could not otherwise be valid. The sequence of parser callbacks
|
||||
* in that case logically resembles this:</p>
|
||||
*
|
||||
* <pre>
|
||||
* ... comments and PIs from the prolog (as usual)
|
||||
* startDTD ("rootName", source.getPublicId (), source.getSystemId ());
|
||||
* startEntity ("[dtd]");
|
||||
* ... declarations, comments, and PIs from the external subset
|
||||
* endEntity ("[dtd]");
|
||||
* endDTD ();
|
||||
* ... then the rest of the document (as usual)
|
||||
* startElement (..., "rootName", ...);
|
||||
* </pre>
|
||||
*
|
||||
* <p>Note that the InputSource gets no further resolution.
|
||||
* Implementations of this method may wish to invoke
|
||||
* {@link #resolveEntity resolveEntity()} to gain benefits such as use
|
||||
* of local caches of DTD entities. Also, this method will never be
|
||||
* used by a (non-validating) processor that is not including external
|
||||
* parameter entities. </p>
|
||||
*
|
||||
* <p>Uses for this method include facilitating data validation when
|
||||
* interoperating with XML processors that would always require
|
||||
* undesirable network accesses for external entities, or which for
|
||||
* other reasons adopt a "no DTDs" policy.
|
||||
* Non-validation motives include forcing documents to include DTDs so
|
||||
* that attributes are handled consistently.
|
||||
* For example, an XPath processor needs to know which attibutes have
|
||||
* type "ID" before it can process a widely used type of reference.</p>
|
||||
*
|
||||
* <p><strong>Warning:</strong> Returning an external subset modifies
|
||||
* the input document. By providing definitions for general entities,
|
||||
* it can make a malformed document appear to be well formed.
|
||||
* </p>
|
||||
*
|
||||
* @param name Identifies the document root element. This name comes
|
||||
* from a DOCTYPE declaration (where available) or from the actual
|
||||
* root element.
|
||||
* @param baseURI The document's base URI, serving as an additional
|
||||
* hint for selecting the external subset. This is always an absolute
|
||||
* URI, unless it is null because the XMLReader was given an InputSource
|
||||
* without one.
|
||||
*
|
||||
* @return An InputSource object describing the new external subset
|
||||
* to be used by the parser, or null to indicate that no external
|
||||
* subset is provided.
|
||||
*
|
||||
* @exception SAXException Any SAX exception, possibly wrapping
|
||||
* another exception.
|
||||
* @exception IOException Probably indicating a failure to create
|
||||
* a new InputStream or Reader, or an illegal URL.
|
||||
*/
|
||||
public InputSource getExternalSubset (String name, String baseURI)
|
||||
throws SAXException, IOException;
|
||||
|
||||
/**
|
||||
* Allows applications to map references to external entities into input
|
||||
* sources, or tell the parser it should use conventional URI resolution.
|
||||
* This method is only called for external entities which have been
|
||||
* properly declared.
|
||||
* This method provides more flexibility than the {@link EntityResolver}
|
||||
* interface, supporting implementations of more complex catalogue
|
||||
* schemes such as the one defined by the <a href=
|
||||
"http://www.oasis-open.org/committees/entity/spec-2001-08-06.html"
|
||||
>OASIS XML Catalogs</a> specification.</p>
|
||||
*
|
||||
* <p>Parsers configured to use this resolver method will call it
|
||||
* to determine the input source to use for any external entity
|
||||
* being included because of a reference in the XML text.
|
||||
* That excludes the document entity, and any external entity returned
|
||||
* by {@link #getExternalSubset getExternalSubset()}.
|
||||
* When a (non-validating) processor is configured not to include
|
||||
* a class of entities (parameter or general) through use of feature
|
||||
* flags, this method is not invoked for such entities. </p>
|
||||
*
|
||||
* <p>Note that the entity naming scheme used here is the same one
|
||||
* used in the {@link LexicalHandler}, or in the {@link
|
||||
org.xml.sax.ContentHandler#skippedEntity
|
||||
ContentHandler.skippedEntity()}
|
||||
* method. </p>
|
||||
*
|
||||
* @param name Identifies the external entity being resolved.
|
||||
* Either "[dtd]" for the external subset, or a name starting
|
||||
* with "%" to indicate a parameter entity, or else the name of
|
||||
* a general entity. This is never null when invoked by a SAX2
|
||||
* parser.
|
||||
* @param publicId The public identifier of the external entity being
|
||||
* referenced (normalized as required by the XML specification), or
|
||||
* null if none was supplied.
|
||||
* @param baseURI The URI with respect to which relative systemIDs
|
||||
* are interpreted. This is always an absolute URI, unless it is
|
||||
* null (likely because the XMLReader was given an InputSource without
|
||||
* one). This URI is defined by the XML specification to be the one
|
||||
* associated with the "<" starting the relevant declaration.
|
||||
* @param systemId The system identifier of the external entity
|
||||
* being referenced; either a relative or absolute URI.
|
||||
* This is never null when invoked by a SAX2 parser; only declared
|
||||
* entities, and any external subset, are resolved by such parsers.
|
||||
*
|
||||
* @return An InputSource object describing the new input source to
|
||||
* be used by the parser. Returning null directs the parser to
|
||||
* resolve the system ID against the base URI and open a connection
|
||||
* to resulting URI.
|
||||
*
|
||||
* @exception SAXException Any SAX exception, possibly wrapping
|
||||
* another exception.
|
||||
* @exception IOException Probably indicating a failure to create
|
||||
* a new InputStream or Reader, or an illegal URL.
|
||||
*/
|
||||
public InputSource resolveEntity (
|
||||
String name,
|
||||
String publicId,
|
||||
String baseURI,
|
||||
String systemId
|
||||
) throws SAXException, IOException;
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
// LexicalHandler.java - optional handler for lexical parse events.
|
||||
// http://www.saxproject.org
|
||||
// Public Domain: no warranty.
|
||||
// $Id: LexicalHandler.java,v 1.2.2.4 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: LexicalHandler.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.ext;
|
||||
|
75
libjava/external/sax/org/xml/sax/ext/Locator2.java
vendored
Normal file
75
libjava/external/sax/org/xml/sax/ext/Locator2.java
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
// Locator2.java - extended Locator
|
||||
// http://www.saxproject.org
|
||||
// Public Domain: no warranty.
|
||||
// $Id: Locator2.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.ext;
|
||||
|
||||
import org.xml.sax.Locator;
|
||||
|
||||
|
||||
/**
|
||||
* SAX2 extension to augment the entity information provided
|
||||
* though a {@link Locator}.
|
||||
* If an implementation supports this extension, the Locator
|
||||
* provided in {@link org.xml.sax.ContentHandler#setDocumentLocator
|
||||
* ContentHandler.setDocumentLocator() } will implement this
|
||||
* interface, and the
|
||||
* <em>http://xml.org/sax/features/use-locator2</em> feature
|
||||
* flag will have the value <em>true</em>.
|
||||
*
|
||||
* <blockquote>
|
||||
* <em>This module, both source code and documentation, is in the
|
||||
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p> XMLReader implementations are not required to support this
|
||||
* information, and it is not part of core-only SAX2 distributions.</p>
|
||||
*
|
||||
* @since SAX 2.0 (extensions 1.1 alpha)
|
||||
* @author David Brownell
|
||||
* @version TBS
|
||||
*/
|
||||
public interface Locator2 extends Locator
|
||||
{
|
||||
/**
|
||||
* Returns the version of XML used for the entity. This will
|
||||
* normally be the identifier from the current entity's
|
||||
* <em><?xml version='...' ...?></em> declaration,
|
||||
* or be defaulted by the parser.
|
||||
*
|
||||
* @return Identifier for the XML version being used to interpret
|
||||
* the entity's text, or null if that information is not yet
|
||||
* available in the current parsing state.
|
||||
*/
|
||||
public String getXMLVersion ();
|
||||
|
||||
/**
|
||||
* Returns the name of the character encoding for the entity.
|
||||
* If the encoding was declared externally (for example, in a MIME
|
||||
* Content-Type header), that will be the name returned. Else if there
|
||||
* was an <em><?xml ...encoding='...'?></em> declaration at
|
||||
* the start of the document, that encoding name will be returned.
|
||||
* Otherwise the encoding will been inferred (normally to be UTF-8, or
|
||||
* some UTF-16 variant), and that inferred name will be returned.
|
||||
*
|
||||
* <p>When an {@link org.xml.sax.InputSource InputSource} is used
|
||||
* to provide an entity's character stream, this method returns the
|
||||
* encoding provided in that input stream.
|
||||
*
|
||||
* <p> Note that some recent W3C specifications require that text
|
||||
* in some encodings be normalized, using Unicode Normalization
|
||||
* Form C, before processing. Such normalization must be performed
|
||||
* by applications, and would normally be triggered based on the
|
||||
* value returned by this method.
|
||||
*
|
||||
* <p> Encoding names may be those used by the underlying JVM,
|
||||
* and comparisons should be case-insensitive.
|
||||
*
|
||||
* @return Name of the character encoding being used to interpret
|
||||
* * the entity's text, or null if this was not provided for a *
|
||||
* character stream passed through an InputSource or is otherwise
|
||||
* not yet available in the current parsing state.
|
||||
*/
|
||||
public String getEncoding ();
|
||||
}
|
101
libjava/external/sax/org/xml/sax/ext/Locator2Impl.java
vendored
Normal file
101
libjava/external/sax/org/xml/sax/ext/Locator2Impl.java
vendored
Normal file
@ -0,0 +1,101 @@
|
||||
// Locator2Impl.java - extended LocatorImpl
|
||||
// http://www.saxproject.org
|
||||
// Public Domain: no warranty.
|
||||
// $Id: Locator2Impl.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.ext;
|
||||
|
||||
import org.xml.sax.Locator;
|
||||
import org.xml.sax.helpers.LocatorImpl;
|
||||
|
||||
|
||||
/**
|
||||
* SAX2 extension helper for holding additional Entity information,
|
||||
* implementing the {@link Locator2} interface.
|
||||
*
|
||||
* <blockquote>
|
||||
* <em>This module, both source code and documentation, is in the
|
||||
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p> This is not part of core-only SAX2 distributions.</p>
|
||||
*
|
||||
* @since SAX 2.0.2
|
||||
* @author David Brownell
|
||||
* @version TBS
|
||||
*/
|
||||
public class Locator2Impl extends LocatorImpl implements Locator2
|
||||
{
|
||||
private String encoding;
|
||||
private String version;
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new, empty Locator2Impl object.
|
||||
* This will not normally be useful, since the main purpose
|
||||
* of this class is to make a snapshot of an existing Locator.
|
||||
*/
|
||||
public Locator2Impl () { }
|
||||
|
||||
/**
|
||||
* Copy an existing Locator or Locator2 object.
|
||||
* If the object implements Locator2, values of the
|
||||
* <em>encoding</em> and <em>version</em>strings are copied,
|
||||
* otherwise they set to <em>null</em>.
|
||||
*
|
||||
* @param locator The existing Locator object.
|
||||
*/
|
||||
public Locator2Impl (Locator locator)
|
||||
{
|
||||
super (locator);
|
||||
if (locator instanceof Locator2) {
|
||||
Locator2 l2 = (Locator2) locator;
|
||||
|
||||
version = l2.getXMLVersion ();
|
||||
encoding = l2.getEncoding ();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Locator2 method implementations
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Returns the current value of the version property.
|
||||
*
|
||||
* @see #setXMLVersion
|
||||
*/
|
||||
public String getXMLVersion ()
|
||||
{ return version; }
|
||||
|
||||
/**
|
||||
* Returns the current value of the encoding property.
|
||||
*
|
||||
* @see #setEncoding
|
||||
*/
|
||||
public String getEncoding ()
|
||||
{ return encoding; }
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Setters
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Assigns the current value of the version property.
|
||||
*
|
||||
* @param version the new "version" value
|
||||
* @see #getXMLVersion
|
||||
*/
|
||||
public void setXMLVersion (String version)
|
||||
{ this.version = version; }
|
||||
|
||||
/**
|
||||
* Assigns the current value of the encoding property.
|
||||
*
|
||||
* @param encoding the new "encoding" value
|
||||
* @see #getEncoding
|
||||
*/
|
||||
public void setEncoding (String encoding)
|
||||
{ this.encoding = encoding; }
|
||||
}
|
@ -1,33 +1,36 @@
|
||||
<HTML><HEAD>
|
||||
|
||||
<!-- $Id: package.html,v 1.1 2004/12/23 22:38:42 mark Exp $ -->
|
||||
</HEAD><BODY>
|
||||
|
||||
<p>
|
||||
This package contains interfaces to optional SAX2 handlers.
|
||||
This package contains interfaces to SAX2 facilities that
|
||||
conformant SAX drivers won't necessarily support.
|
||||
|
||||
<p>See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
||||
for more information about SAX.</p>
|
||||
|
||||
<p>
|
||||
The package is independent of the SAX2 core, though the functionality
|
||||
exposed generally needs to be implemented within a parser.
|
||||
<p> This package is independent of the SAX2 core, though the functionality
|
||||
exposed generally needs to be implemented within a parser core.
|
||||
That independence has several consequences:</p>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>SAX2 drivers are <em>not</em> required to recognize these handlers,
|
||||
and you cannot assume that the class files will be present in every SAX2
|
||||
<li>SAX2 drivers are <em>not</em> required to recognize these handlers.
|
||||
</li>
|
||||
|
||||
<li>You cannot assume that the class files will be present in every SAX2
|
||||
installation.</li>
|
||||
|
||||
<li>This package may be updated independently of SAX2 (i.e. new
|
||||
handlers may be added without updating SAX2 itself).</li>
|
||||
handlers and classes may be added without updating SAX2 itself).</li>
|
||||
|
||||
<li>The handlers are not implemented by the SAX2
|
||||
<li>The new handlers are not implemented by the SAX2
|
||||
<code>org.xml.sax.helpers.DefaultHandler</code> or
|
||||
<code>org.xml.sax.helpers.XMLFilterImpl</code> classes.
|
||||
You can subclass these if you need such behaviour.</li>
|
||||
You can subclass these if you need such behavior, or
|
||||
use the helper classes found here.</li>
|
||||
|
||||
<li>The handlers need to be registered differently than regular SAX2
|
||||
<li>The handlers need to be registered differently than core SAX2
|
||||
handlers.</li>
|
||||
|
||||
</ul>
|
||||
@ -37,13 +40,7 @@ designed both to allow SAX parsers to pass certain types of information
|
||||
to applications, and to serve as a simple model for other SAX2 parser
|
||||
extension packages. Not all such extension packages should need to
|
||||
be recognized directly by parsers, however.
|
||||
As an example, most schema systems can be cleanly layered on top
|
||||
As an example, most validation systems can be cleanly layered on top
|
||||
of parsers supporting the standardized SAX2 interfaces. </p>
|
||||
|
||||
<p><strong>NOTE:</strong> this package alone does add any
|
||||
functionality; it simply provides optional interfaces for SAX2 drivers
|
||||
to use. You must use a SAX2 driver that recognizes these interfaces if
|
||||
you actually want to have access to lexical and declaration
|
||||
information.</p>
|
||||
|
||||
</BODY></HTML>
|
@ -1,7 +1,7 @@
|
||||
// SAX default implementation for AttributeList.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: AttributeListImpl.java,v 1.3.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: AttributeListImpl.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
@ -2,9 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the public domain.
|
||||
|
||||
// $Id: AttributesImpl.java,v 1.6.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
|
||||
// $Id: AttributesImpl.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
@ -2,8 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the public domain.
|
||||
|
||||
// $Id: DefaultHandler.java,v 1.5.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: DefaultHandler.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
||||
@ -262,7 +261,7 @@ public class DefaultHandler
|
||||
* performed.
|
||||
* @param qName The qualified name (with prefix), or the
|
||||
* empty string if qualified names are not available.
|
||||
* @param atts The attributes attached to the element. If
|
||||
* @param attributes The attributes attached to the element. If
|
||||
* there are no attributes, it shall be an empty
|
||||
* Attributes object.
|
||||
* @exception org.xml.sax.SAXException Any SAX exception, possibly
|
@ -1,7 +1,7 @@
|
||||
// SAX default implementation for Locator.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: LocatorImpl.java,v 1.3.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: LocatorImpl.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
@ -2,8 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// This class is in the Public Domain. NO WARRANTY!
|
||||
|
||||
// $Id: NamespaceSupport.java,v 1.6.2.5 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: NamespaceSupport.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
||||
@ -24,11 +23,11 @@ import java.util.Vector;
|
||||
* for further information.
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>This class encapsulates the logic of Namespace processing:
|
||||
* it tracks the declarations currently in force for each context
|
||||
* and automatically processes qualified XML 1.0 names into their
|
||||
* Namespace parts; it can also be used in reverse for generating
|
||||
* XML 1.0 from Namespaces.</p>
|
||||
* <p>This class encapsulates the logic of Namespace processing: it
|
||||
* tracks the declarations currently in force for each context and
|
||||
* automatically processes qualified XML names into their Namespace
|
||||
* parts; it can also be used in reverse for generating XML qnames
|
||||
* from Namespaces.</p>
|
||||
*
|
||||
* <p>Namespace support objects are reusable, but the reset method
|
||||
* must be invoked between each session.</p>
|
||||
@ -82,7 +81,7 @@ public class NamespaceSupport
|
||||
/**
|
||||
* The XML Namespace URI as a constant.
|
||||
* The value is <code>http://www.w3.org/XML/1998/namespace</code>
|
||||
* as defined in the XML Namespaces specification.
|
||||
* as defined in the "Namespaces in XML" * recommendation.
|
||||
*
|
||||
* <p>This is the Namespace URI that is automatically mapped
|
||||
* to the "xml" prefix.</p>
|
||||
@ -91,6 +90,26 @@ public class NamespaceSupport
|
||||
"http://www.w3.org/XML/1998/namespace";
|
||||
|
||||
|
||||
/**
|
||||
* The namespace declaration URI as a constant.
|
||||
* The value is <code>http://www.w3.org/xmlns/2000/</code>, as defined
|
||||
* in a backwards-incompatible erratum to the "Namespaces in XML"
|
||||
* recommendation. Because that erratum postdated SAX2, SAX2 defaults
|
||||
* to the original recommendation, and does not normally use this URI.
|
||||
*
|
||||
*
|
||||
* <p>This is the Namespace URI that is optionally applied to
|
||||
* <em>xmlns</em> and <em>xmlns:*</em> attributes, which are used to
|
||||
* declare namespaces. </p>
|
||||
*
|
||||
* @since SAX 2.1alpha
|
||||
* @see #setNamespaceDeclUris
|
||||
* @see #isNamespaceDeclUris
|
||||
*/
|
||||
public final static String NSDECL =
|
||||
"http://www.w3.org/xmlns/2000/";
|
||||
|
||||
|
||||
/**
|
||||
* An empty enumeration.
|
||||
*/
|
||||
@ -122,11 +141,17 @@ public class NamespaceSupport
|
||||
* Reset this Namespace support object for reuse.
|
||||
*
|
||||
* <p>It is necessary to invoke this method before reusing the
|
||||
* Namespace support object for a new session.</p>
|
||||
* Namespace support object for a new session. If namespace
|
||||
* declaration URIs are to be supported, that flag must also
|
||||
* be set to a non-default value.
|
||||
* </p>
|
||||
*
|
||||
* @see #setNamespaceDeclUris
|
||||
*/
|
||||
public void reset ()
|
||||
{
|
||||
contexts = new Context[32];
|
||||
namespaceDeclUris = false;
|
||||
contextPos = 0;
|
||||
contexts[contextPos] = currentContext = new Context();
|
||||
currentContext.declarePrefix("xml", XMLNS);
|
||||
@ -260,9 +285,6 @@ public class NamespaceSupport
|
||||
* the value "xml" or "xmlns".
|
||||
* @param uri The Namespace URI to associate with the prefix.
|
||||
* @return true if the prefix was legal, false otherwise
|
||||
* @exception IllegalStateException when a prefix is declared
|
||||
* after looking up a name in the context, or after pushing
|
||||
* another context on top of it.
|
||||
*
|
||||
* @see #processName
|
||||
* @see #getURI
|
||||
@ -280,12 +302,13 @@ public class NamespaceSupport
|
||||
|
||||
|
||||
/**
|
||||
* Process a raw XML 1.0 name, after all declarations in the current
|
||||
* context have been handled by {@link #declarePrefix declarePrefix()}.
|
||||
* Process a raw XML qualified name, after all declarations in the
|
||||
* current context have been handled by {@link #declarePrefix
|
||||
* declarePrefix()}.
|
||||
*
|
||||
* <p>This method processes a raw XML 1.0 name in the current
|
||||
* context by removing the prefix and looking it up among the
|
||||
* prefixes currently declared. The return value will be the
|
||||
* <p>This method processes a raw XML qualified name in the
|
||||
* current context by removing the prefix and looking it up among
|
||||
* the prefixes currently declared. The return value will be the
|
||||
* array supplied by the caller, filled in as follows:</p>
|
||||
*
|
||||
* <dl>
|
||||
@ -303,18 +326,18 @@ public class NamespaceSupport
|
||||
* the return value will be null.</p>
|
||||
*
|
||||
* <p>Note that attribute names are processed differently than
|
||||
* element names: an unprefixed element name will received the
|
||||
* element names: an unprefixed element name will receive the
|
||||
* default Namespace (if any), while an unprefixed attribute name
|
||||
* will not.</p>
|
||||
*
|
||||
* @param qName The raw XML 1.0 name to be processed.
|
||||
* @param qName The XML qualified name to be processed.
|
||||
* @param parts An array supplied by the caller, capable of
|
||||
* holding at least three members.
|
||||
* @param isAttribute A flag indicating whether this is an
|
||||
* attribute name (true) or an element name (false).
|
||||
* @return The supplied array holding three internalized strings
|
||||
* representing the Namespace URI (or empty string), the
|
||||
* local name, and the raw XML 1.0 name; or null if there
|
||||
* local name, and the XML qualified name; or null if there
|
||||
* is an undeclared prefix.
|
||||
* @see #declarePrefix
|
||||
* @see java.lang.String#intern */
|
||||
@ -352,15 +375,16 @@ public class NamespaceSupport
|
||||
|
||||
|
||||
/**
|
||||
* Return an enumeration of all prefixes currently declared.
|
||||
* Return an enumeration of all prefixes whose declarations are
|
||||
* active in the current context.
|
||||
* This includes declarations from parent contexts that have
|
||||
* not been overridden.
|
||||
*
|
||||
* <p><strong>Note:</strong> if there is a default prefix, it will not be
|
||||
* returned in this enumeration; check for the default prefix
|
||||
* using the {@link #getURI getURI} with an argument of "".</p>
|
||||
*
|
||||
* @return An enumeration of all prefixes declared in the
|
||||
* current context except for the empty (default)
|
||||
* prefix.
|
||||
* @return An enumeration of prefixes (never empty).
|
||||
* @see #getDeclaredPrefixes
|
||||
* @see #getURI
|
||||
*/
|
||||
@ -382,12 +406,10 @@ public class NamespaceSupport
|
||||
* to check for a default prefix, use the {@link #getURI getURI}
|
||||
* method with an argument of "".</p>
|
||||
*
|
||||
* @param uri The Namespace URI.
|
||||
* @param isAttribute true if this prefix is for an attribute
|
||||
* (and the default Namespace is not allowed).
|
||||
* @return One of the prefixes currently mapped to the URI supplied,
|
||||
* @param uri the namespace URI
|
||||
* @return one of the prefixes currently mapped to the URI supplied,
|
||||
* or null if none is mapped or if the URI is assigned to
|
||||
* the default Namespace.
|
||||
* the default namespace
|
||||
* @see #getPrefixes(java.lang.String)
|
||||
* @see #getURI
|
||||
*/
|
||||
@ -398,7 +420,10 @@ public class NamespaceSupport
|
||||
|
||||
|
||||
/**
|
||||
* Return an enumeration of all prefixes currently declared for a URI.
|
||||
* Return an enumeration of all prefixes for a given URI whose
|
||||
* declarations are active in the current context.
|
||||
* This includes declarations from parent contexts that have
|
||||
* not been overridden.
|
||||
*
|
||||
* <p>This method returns prefixes mapped to a specific Namespace
|
||||
* URI. The xml: prefix will be included. If you want only one
|
||||
@ -412,8 +437,7 @@ public class NamespaceSupport
|
||||
* argument of "".</p>
|
||||
*
|
||||
* @param uri The Namespace URI.
|
||||
* @return An enumeration of all prefixes declared in the
|
||||
* current context.
|
||||
* @return An enumeration of prefixes (never empty).
|
||||
* @see #getPrefix
|
||||
* @see #getDeclaredPrefixes
|
||||
* @see #getURI
|
||||
@ -449,6 +473,41 @@ public class NamespaceSupport
|
||||
return currentContext.getDeclaredPrefixes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Controls whether namespace declaration attributes are placed
|
||||
* into the {@link #NSDECL NSDECL} namespace
|
||||
* by {@link #processName processName()}. This may only be
|
||||
* changed before any contexts have been pushed.
|
||||
*
|
||||
* @since SAX 2.1alpha
|
||||
*
|
||||
* @exception IllegalStateException when attempting to set this
|
||||
* after any context has been pushed.
|
||||
*/
|
||||
public void setNamespaceDeclUris (boolean value)
|
||||
{
|
||||
if (contextPos != 0)
|
||||
throw new IllegalStateException ();
|
||||
if (value == namespaceDeclUris)
|
||||
return;
|
||||
namespaceDeclUris = value;
|
||||
if (value)
|
||||
currentContext.declarePrefix ("xmlns", NSDECL);
|
||||
else {
|
||||
contexts[contextPos] = currentContext = new Context();
|
||||
currentContext.declarePrefix("xml", XMLNS);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if namespace declaration attributes are placed into
|
||||
* a namespace. This behavior is not the default.
|
||||
*
|
||||
* @since SAX 2.1alpha
|
||||
*/
|
||||
public boolean isNamespaceDeclUris ()
|
||||
{ return namespaceDeclUris; }
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -458,7 +517,7 @@ public class NamespaceSupport
|
||||
private Context contexts[];
|
||||
private Context currentContext;
|
||||
private int contextPos;
|
||||
|
||||
private boolean namespaceDeclUris;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -562,9 +621,9 @@ public class NamespaceSupport
|
||||
|
||||
|
||||
/**
|
||||
* Process a raw XML 1.0 name in this context.
|
||||
* Process an XML qualified name in this context.
|
||||
*
|
||||
* @param qName The raw XML 1.0 name.
|
||||
* @param qName The XML qualified name.
|
||||
* @param isAttribute true if this is an attribute name.
|
||||
* @return An array of three strings containing the
|
||||
* URI part (or empty string), the local part,
|
||||
@ -606,7 +665,12 @@ public class NamespaceSupport
|
||||
|
||||
// No prefix.
|
||||
if (index == -1) {
|
||||
if (isAttribute || defaultNS == null) {
|
||||
if (isAttribute) {
|
||||
if (qName == "xmlns" && namespaceDeclUris)
|
||||
name[0] = NSDECL;
|
||||
else
|
||||
name[0] = "";
|
||||
} else if (defaultNS == null) {
|
||||
name[0] = "";
|
||||
} else {
|
||||
name[0] = defaultNS;
|
||||
@ -624,7 +688,8 @@ public class NamespaceSupport
|
||||
} else {
|
||||
uri = (String)prefixTable.get(prefix);
|
||||
}
|
||||
if (uri == null) {
|
||||
if (uri == null
|
||||
|| (!isAttribute && "xmlns".equals (prefix))) {
|
||||
return null;
|
||||
}
|
||||
name[0] = uri;
|
@ -3,8 +3,7 @@
|
||||
// Written by Edwin Goei, edwingo@apache.org
|
||||
// and by David Brownell, dbrownell@users.sourceforge.net
|
||||
// NO WARRANTY! This class is in the Public Domain.
|
||||
|
||||
// $Id: NewInstance.java,v 1.1.2.4 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: NewInstance.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
@ -2,8 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the public domain.
|
||||
|
||||
// $Id: ParserAdapter.java,v 1.8.2.4 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: ParserAdapter.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
||||
@ -159,6 +158,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
private final static String FEATURES = "http://xml.org/sax/features/";
|
||||
private final static String NAMESPACES = FEATURES + "namespaces";
|
||||
private final static String NAMESPACE_PREFIXES = FEATURES + "namespace-prefixes";
|
||||
private final static String XMLNS_URIs = FEATURES + "xmlns-uris";
|
||||
|
||||
|
||||
/**
|
||||
@ -190,6 +190,9 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
if (!prefixes && !namespaces) {
|
||||
namespaces = true;
|
||||
}
|
||||
} else if (name.equals(XMLNS_URIs)) {
|
||||
checkNotParsing("feature", name);
|
||||
uris = value;
|
||||
} else {
|
||||
throw new SAXNotRecognizedException("Feature: " + name);
|
||||
}
|
||||
@ -217,6 +220,8 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
return namespaces;
|
||||
} else if (name.equals(NAMESPACE_PREFIXES)) {
|
||||
return prefixes;
|
||||
} else if (name.equals(XMLNS_URIs)) {
|
||||
return uris;
|
||||
} else {
|
||||
throw new SAXNotRecognizedException("Feature: " + name);
|
||||
}
|
||||
@ -290,7 +295,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
/**
|
||||
* Set the DTD handler.
|
||||
*
|
||||
* @param resolver The new DTD handler.
|
||||
* @param handler the new DTD handler
|
||||
* @see org.xml.sax.XMLReader#setEntityResolver
|
||||
*/
|
||||
public void setDTDHandler (DTDHandler handler)
|
||||
@ -302,7 +307,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
/**
|
||||
* Return the current DTD handler.
|
||||
*
|
||||
* @return The current DTD handler, or null if none was supplied.
|
||||
* @return the current DTD handler, or null if none was supplied
|
||||
* @see org.xml.sax.XMLReader#getEntityResolver
|
||||
*/
|
||||
public DTDHandler getDTDHandler ()
|
||||
@ -314,7 +319,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
/**
|
||||
* Set the content handler.
|
||||
*
|
||||
* @param resolver The new content handler.
|
||||
* @param handler the new content handler
|
||||
* @see org.xml.sax.XMLReader#setEntityResolver
|
||||
*/
|
||||
public void setContentHandler (ContentHandler handler)
|
||||
@ -338,7 +343,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
/**
|
||||
* Set the error handler.
|
||||
*
|
||||
* @param resolver The new error handler.
|
||||
* @param handler The new error handler.
|
||||
* @see org.xml.sax.XMLReader#setEntityResolver
|
||||
*/
|
||||
public void setErrorHandler (ErrorHandler handler)
|
||||
@ -405,7 +410,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Implementation of org.xml.sax.DocumentHandler.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -468,7 +473,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
* <p>If necessary, perform Namespace processing.</p>
|
||||
*
|
||||
* @param qName The qualified (prefixed) name.
|
||||
* @param qAtts The XML 1.0 attribute list (with qnames).
|
||||
* @param qAtts The XML attribute list (with qnames).
|
||||
* @exception SAXException The client may raise a
|
||||
* processing exception.
|
||||
*/
|
||||
@ -547,13 +552,21 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
// (and similarly named) attributes ... ignore
|
||||
prefix = null;
|
||||
} else {
|
||||
prefix = attQName.substring(n+1);
|
||||
prefix = attQName.substring(6);
|
||||
}
|
||||
// Yes, decl: report or prune
|
||||
if (prefix != null) {
|
||||
if (prefixes)
|
||||
atts.addAttribute("", "", attQName.intern(),
|
||||
type, value);
|
||||
if (prefixes) {
|
||||
if (uris)
|
||||
// note funky case: localname can be null
|
||||
// when declaring the default prefix, and
|
||||
// yet the uri isn't null.
|
||||
atts.addAttribute (nsSupport.XMLNS, prefix,
|
||||
attQName.intern(), type, value);
|
||||
else
|
||||
atts.addAttribute ("", "",
|
||||
attQName.intern(), type, value);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -691,7 +704,13 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
*/
|
||||
private void setupParser ()
|
||||
{
|
||||
// catch an illegal "nonsense" state.
|
||||
if (!prefixes && !namespaces)
|
||||
throw new IllegalStateException ();
|
||||
|
||||
nsSupport.reset();
|
||||
if (uris)
|
||||
nsSupport.setNamespaceDeclUris (true);
|
||||
|
||||
if (entityResolver != null) {
|
||||
parser.setEntityResolver(entityResolver);
|
||||
@ -809,6 +828,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
// Features
|
||||
private boolean namespaces = true;
|
||||
private boolean prefixes = false;
|
||||
private boolean uris = false;
|
||||
|
||||
// Properties
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SAX parser factory.
|
||||
// http://www.saxproject.org
|
||||
// No warranty; no copyright -- use this as you will.
|
||||
// $Id: ParserFactory.java,v 1.4.2.3 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: ParserFactory.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
@ -2,8 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the Public Domain.
|
||||
|
||||
// $Id: XMLFilterImpl.java,v 1.3.2.7 2002/01/29 21:34:14 dbrownell Exp $
|
||||
// $Id: XMLFilterImpl.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
||||
@ -254,7 +253,7 @@ public class XMLFilterImpl
|
||||
/**
|
||||
* Set the DTD event handler.
|
||||
*
|
||||
* @param resolver The new DTD handler.
|
||||
* @param handler the new DTD handler
|
||||
*/
|
||||
public void setDTDHandler (DTDHandler handler)
|
||||
{
|
||||
@ -276,7 +275,7 @@ public class XMLFilterImpl
|
||||
/**
|
||||
* Set the content event handler.
|
||||
*
|
||||
* @param resolver The new content handler.
|
||||
* @param handler the new content handler
|
||||
*/
|
||||
public void setContentHandler (ContentHandler handler)
|
||||
{
|
||||
@ -298,7 +297,7 @@ public class XMLFilterImpl
|
||||
/**
|
||||
* Set the error event handler.
|
||||
*
|
||||
* @param handle The new error handler.
|
||||
* @param handler the new error handler
|
||||
*/
|
||||
public void setErrorHandler (ErrorHandler handler)
|
||||
{
|
@ -2,8 +2,7 @@
|
||||
// http://www.saxproject.org
|
||||
// Written by David Megginson
|
||||
// NO WARRANTY! This class is in the public domain.
|
||||
|
||||
// $Id: XMLReaderAdapter.java,v 1.5.2.3 2002/01/29 21:34:15 dbrownell Exp $
|
||||
// $Id: XMLReaderAdapter.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
|
||||
@ -108,7 +107,7 @@ public class XMLReaderAdapter implements Parser, ContentHandler
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Implementation of org.xml.sax.Parser.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -120,7 +119,7 @@ public class XMLReaderAdapter implements Parser, ContentHandler
|
||||
* <p>This is not supported in SAX2, and will always throw
|
||||
* an exception.</p>
|
||||
*
|
||||
* @param The locale for error reporting.
|
||||
* @param locale the locale for error reporting.
|
||||
* @see org.xml.sax.Parser#setLocale
|
||||
* @exception org.xml.sax.SAXException Thrown unless overridden.
|
||||
*/
|
@ -3,8 +3,7 @@
|
||||
// Written by David Megginson
|
||||
// and by David Brownell
|
||||
// NO WARRANTY! This class is in the Public Domain.
|
||||
|
||||
// $Id: XMLReaderFactory.java,v 1.5.2.4 2002/01/29 21:34:15 dbrownell Exp $
|
||||
// $Id: XMLReaderFactory.java,v 1.1 2004/12/23 22:38:42 mark Exp $
|
||||
|
||||
package org.xml.sax.helpers;
|
||||
import java.io.BufferedReader;
|
||||
@ -110,7 +109,7 @@ final public class XMLReaderFactory
|
||||
|
||||
// 1. try the JVM-instance-wide system property
|
||||
try { className = System.getProperty (property); }
|
||||
catch (Exception e) { /* normally fails for applets */ }
|
||||
catch (RuntimeException e) { /* normally fails for applets */ }
|
||||
|
||||
// 2. if that fails, try META-INF/services/
|
||||
if (className == null) {
|
@ -1,7 +1,5 @@
|
||||
<HTML><HEAD>
|
||||
|
||||
<!-- $Id: package.html,v 1.3.2.1 2001/11/09 20:32:58 dbrownell Exp $ -->
|
||||
|
||||
<!-- $Id: package.html,v 1.1 2004/12/23 22:38:42 mark Exp $ -->
|
||||
</HEAD><BODY>
|
||||
|
||||
<p>This package contains "helper" classes, including
|
297
libjava/external/sax/org/xml/sax/package.html
vendored
Normal file
297
libjava/external/sax/org/xml/sax/package.html
vendored
Normal file
@ -0,0 +1,297 @@
|
||||
<html><head>
|
||||
<!-- $Id: package.html,v 1.1 2004/12/23 22:38:42 mark Exp $ -->
|
||||
</head><body>
|
||||
|
||||
<p> This package provides the core SAX APIs.
|
||||
Some SAX1 APIs are deprecated to encourage integration of
|
||||
namespace-awareness into designs of new applications
|
||||
and into maintenance of existing infrastructure. </p>
|
||||
|
||||
<p>See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
||||
for more information about SAX.</p>
|
||||
|
||||
|
||||
<h2> SAX2 Standard Feature Flags </h2>
|
||||
|
||||
<p> One of the essential characteristics of SAX2 is that it added
|
||||
feature flags which can be used to examine and perhaps modify
|
||||
parser modes, in particular modes such as validation.
|
||||
Since features are identified by (absolute) URIs, anyone
|
||||
can define such features.
|
||||
Currently defined standard feature URIs have the prefix
|
||||
<code>http://xml.org/sax/features/</code> before an identifier such as
|
||||
<code>validation</code>. Turn features on or off using
|
||||
<em>setFeature</em>. Those standard identifiers are: </p>
|
||||
|
||||
|
||||
<table border="1" cellpadding="3" cellspacing="0" width="100%">
|
||||
<tr align="center" bgcolor="#ccccff">
|
||||
<th>Feature ID</th>
|
||||
<th>Access</th>
|
||||
<th>Default</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>external-general-entities</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> Reports whether this parser processes external
|
||||
general entities; always true if validating.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>external-parameter-entities</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> Reports whether this parser processes external
|
||||
parameter entities; always true if validating.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>is-standalone</td>
|
||||
<td>(parsing) <em>read-only</em>, (not parsing) <em>none</em></td>
|
||||
<td>not applicable</td>
|
||||
<td> May be examined only during a parse, after the
|
||||
<em>startDocument()</em> callback has been completed; read-only.
|
||||
The value is true if the document specified standalone="yes" in
|
||||
its XML declaration, and otherwise is false.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>lexical-handler/parameter-entities</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> A value of "true" indicates that the LexicalHandler will report
|
||||
the beginning and end of parameter entities.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>namespaces</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td>true</td>
|
||||
<td> A value of "true" indicates namespace URIs and unprefixed local names
|
||||
for element and attribute names will be available.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>namespace-prefixes</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td>false</td>
|
||||
<td> A value of "true" indicates that XML qualified names (with prefixes) and
|
||||
attributes (including <em>xmlns*</em> attributes) will be available.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>resolve-dtd-uris</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>true</em></td>
|
||||
<td> A value of "true" indicates that system IDs in declarations will
|
||||
be absolutized (relative to their base URIs) before reporting.
|
||||
(That is the default behavior for all SAX2 XML parsers.)
|
||||
A value of "false" indicates those IDs will not be absolutized;
|
||||
parsers will provide the base URI from
|
||||
<em>Locator.getSystemId()</em>.
|
||||
This applies to system IDs passed in <ul>
|
||||
<li><em>DTDHandler.notationDecl()</em>,
|
||||
<li><em>DTDHandler.unparsedEntityDecl()</em>, and
|
||||
<li><em>DeclHandler.externalEntityDecl()</em>.
|
||||
</ul>
|
||||
It does not apply to <em>EntityResolver.resolveEntity()</em>,
|
||||
which is not used to report declarations, or to
|
||||
<em>LexicalHandler.startDTD()</em>, which already provides
|
||||
the non-absolutized URI.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>string-interning</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> Has a value of "true" if all XML names (for elements, prefixes,
|
||||
attributes, entities, notations, and local names),
|
||||
as well as Namespace URIs, will have been interned
|
||||
using <em>java.lang.String.intern</em>. This supports fast
|
||||
testing of equality/inequality against string constants,
|
||||
rather than forcing slower calls to <em>String.equals()</em>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>unicode-normalization-checking</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>false</em></td>
|
||||
<td> Controls whether the parser reports Unicode normalization
|
||||
errors as described in section 2.13 and Appendix B of the
|
||||
XML 1.1 Recommendation. If true, Unicode normalization
|
||||
errors are reported using the ErrorHandler.error() callback.
|
||||
Such errors are not fatal in themselves (though, obviously,
|
||||
other Unicode-related encoding errors may be).
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>use-attributes2</td>
|
||||
<td><em>read-only</em></td>
|
||||
<td>not applicable</td>
|
||||
<td> Returns "true" if the <em>Attributes</em> objects passed by
|
||||
this parser in <em>ContentHandler.startElement()</em>
|
||||
implement the <a href="ext/Attributes2.html"
|
||||
><em>org.xml.sax.ext.Attributes2</em></a> interface.
|
||||
That interface exposes additional DTD-related information,
|
||||
such as whether the attribute was specified in the
|
||||
source text rather than defaulted.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>use-locator2</td>
|
||||
<td><em>read-only</em></td>
|
||||
<td>not applicable</td>
|
||||
<td> Returns "true" if the <em>Locator</em> objects passed by
|
||||
this parser in <em>ContentHandler.setDocumentLocator()</em>
|
||||
implement the <a href="ext/Locator2.html"
|
||||
><em>org.xml.sax.ext.Locator2</em></a> interface.
|
||||
That interface exposes additional entity information,
|
||||
such as the character encoding and XML version used.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>use-entity-resolver2</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>true</em></td>
|
||||
<td> Returns "true" if, when <em>setEntityResolver</em> is given
|
||||
an object implementing the <a href="ext/EntityResolver2.html"
|
||||
><em>org.xml.sax.ext.EntityResolver2</em></a> interface,
|
||||
those new methods will be used.
|
||||
Returns "false" to indicate that those methods will not be used.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>validation</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> Controls whether the parser is reporting all validity
|
||||
errors; if true, all external entities will be read.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>xmlns-uris</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>false</em></td>
|
||||
<td> Controls whether, when the <em>namespace-prefixes</em> feature
|
||||
is set, the parser treats namespace declaration attributes as
|
||||
being in the <em>http://www.w3.org/2000/xmlns/</em> namespace.
|
||||
By default, SAX2 conforms to the original "Namespaces in XML"
|
||||
Recommendation, which explicitly states that such attributes are
|
||||
not in any namespace.
|
||||
Setting this optional flag to "true" makes the SAX2 events conform to
|
||||
a later backwards-incompatible revision of that recommendation,
|
||||
placing those attributes in a namespace.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>xml-1.1</td>
|
||||
<td><em>read-only</em></td>
|
||||
<td>not applicable</td>
|
||||
<td> Returns "true" if the parser supports both XML 1.1 and XML 1.0.
|
||||
Returns "false" if the parser supports only XML 1.0.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p> Support for the default values of the
|
||||
<em>namespaces</em> and <em>namespace-prefixes</em>
|
||||
properties is required.
|
||||
Support for any other feature flags is entirely optional.
|
||||
</p>
|
||||
|
||||
<p> For default values not specified by SAX2,
|
||||
each XMLReader implementation specifies its default,
|
||||
or may choose not to expose the feature flag.
|
||||
Unless otherwise specified here,
|
||||
implementations may support changing current values
|
||||
of these standard feature flags, but not while parsing.
|
||||
</p>
|
||||
|
||||
<h2> SAX2 Standard Handler and Property IDs </h2>
|
||||
|
||||
<p> For parser interface characteristics that are described
|
||||
as objects, a separate namespace is defined. The
|
||||
objects in this namespace are again identified by URI, and
|
||||
the standard property URIs have the prefix
|
||||
<code>http://xml.org/sax/properties/</code> before an identifier such as
|
||||
<code>lexical-handler</code> or
|
||||
<code>dom-node</code>. Manage those properties using
|
||||
<em>setProperty()</em>. Those identifiers are: </p>
|
||||
|
||||
<table border="1" cellpadding="3" cellspacing="0" width="100%">
|
||||
<tr align="center" bgcolor="#ccccff">
|
||||
<th>Property ID</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>declaration-handler</td>
|
||||
<td> Used to see most DTD declarations except those treated
|
||||
as lexical ("document element name is ...") or which are
|
||||
mandatory for all SAX parsers (<em>DTDHandler</em>).
|
||||
The Object must implement <a href="ext/DeclHandler.html"
|
||||
><em>org.xml.sax.ext.DeclHandler</em></a>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>document-xml-version</td>
|
||||
<td> May be examined only during a parse, after the startDocument()
|
||||
callback has been completed; read-only. This property is a
|
||||
literal string describing the actual XML version of the document,
|
||||
such as "1.0" or "1.1".
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>dom-node</td>
|
||||
<td> For "DOM Walker" style parsers, which ignore their
|
||||
<em>parser.parse()</em> parameters, this is used to
|
||||
specify the DOM (sub)tree being walked by the parser.
|
||||
The Object must implement the
|
||||
<em>org.w3c.dom.Node</em> interface.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>lexical-handler</td>
|
||||
<td> Used to see some syntax events that are essential in some
|
||||
applications: comments, CDATA delimiters, selected general
|
||||
entity inclusions, and the start and end of the DTD
|
||||
(and declaration of document element name).
|
||||
The Object must implement <a href="ext/LexicalHandler.html"
|
||||
><em>org.xml.sax.ext.LexicalHandler</em></a>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>xml-string</td>
|
||||
<td> Readable only during a parser callback, this exposes a <b>TBS</b>
|
||||
chunk of characters responsible for the current event. </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p> All of these standard properties are optional;
|
||||
XMLReader implementations need not support them.
|
||||
</p>
|
||||
|
||||
</body></html>
|
106
libjava/external/w3c_dom/COPYRIGHT.html
vendored
Normal file
106
libjava/external/w3c_dom/COPYRIGHT.html
vendored
Normal file
@ -0,0 +1,106 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
|
||||
<title>W3C IPR SOFTWARE NOTICE</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
html, body { background: #fff; color: #000; } /* body for Windows IE3 */
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
W3C IPR SOFTWARE NOTICE
|
||||
</h1>
|
||||
<h3>
|
||||
Copyright © 2002 <a href="http://www.w3.org/">World Wide Web
|
||||
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||
National de Recherche en Informatique et en Automatique</a>, <a
|
||||
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||
Reserved.
|
||||
</h3>
|
||||
<p>
|
||||
The DOM bindings are published under the W3C Software Copyright Notice
|
||||
and License. The software license requires "Notice of any changes or
|
||||
modifications to the W3C files, including the date changes were made."
|
||||
Consequently, modified versions of the DOM bindings must document that
|
||||
they do not conform to the W3C standard; in the case of the IDL
|
||||
definitions, the pragma prefix can no longer be 'w3c.org'; in the case of
|
||||
the Java language binding, the package names can no longer be in the
|
||||
'org.w3c' package.
|
||||
</p>
|
||||
<p>
|
||||
<b>Note:</b> The original version of the W3C Software Copyright Notice
|
||||
and License could be found at <a
|
||||
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>http://www.w3.org/Consortium/Legal/copyright-software-19980720</a>
|
||||
</p>
|
||||
<h3>
|
||||
Copyright © 1994-2002 <a href="http://www.w3.org/">World Wide Web
|
||||
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||
National de Recherche en Informatique et en Automatique</a>, <a
|
||||
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||
Reserved. http://www.w3.org/Consortium/Legal/
|
||||
</h3>
|
||||
<p>
|
||||
This W3C work (including software, documents, or other related items) is
|
||||
being provided by the copyright holders under the following license. By
|
||||
obtaining, using and/or copying this work, you (the licensee) agree that
|
||||
you have read, understood, and will comply with the following terms and
|
||||
conditions:
|
||||
</p>
|
||||
<p>
|
||||
Permission to use, copy, and modify this software and its documentation,
|
||||
with or without modification, for any purpose and without fee or
|
||||
royalty is hereby granted, provided that you include the following on ALL
|
||||
copies of the software and documentation or portions thereof, including
|
||||
modifications, that you make:
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
The full text of this NOTICE in a location viewable to users of the
|
||||
redistributed or derivative work.
|
||||
</li>
|
||||
<li>
|
||||
Any pre-existing intellectual property disclaimers, notices, or terms
|
||||
and conditions. If none exist, a short notice of the following form
|
||||
(hypertext is preferred, text is permitted) should be used within the
|
||||
body of any redistributed or derivative code: "Copyright ©
|
||||
[$date-of-software] <a href="http://www.w3.org/">World Wide Web
|
||||
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||
National de Recherche en Informatique et en Automatique</a>, <a
|
||||
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||
Reserved. http://www.w3.org/Consortium/Legal/"
|
||||
</li>
|
||||
<li>
|
||||
Notice of any changes or modifications to the W3C files, including the
|
||||
date changes were made. (We recommend you provide URIs to the location
|
||||
from which the code is derived.)
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
|
||||
HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
|
||||
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
|
||||
DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
|
||||
TRADEMARKS OR OTHER RIGHTS.
|
||||
</p>
|
||||
<p>
|
||||
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
|
||||
DOCUMENTATION.
|
||||
</p>
|
||||
<p>
|
||||
The name and trademarks of copyright holders may NOT be used in
|
||||
advertising or publicity pertaining to the software without specific,
|
||||
written prior permission. Title to copyright in this software and any
|
||||
associated documentation will at all times remain with copyright
|
||||
holders.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
177
libjava/external/w3c_dom/Makefile.am
vendored
Normal file
177
libjava/external/w3c_dom/Makefile.am
vendored
Normal file
@ -0,0 +1,177 @@
|
||||
## Process this file with automake to produce Makefile.in.
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign subdir-objects
|
||||
|
||||
## The compiler with whatever flags we want for both -c and -C
|
||||
## compiles.
|
||||
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated -fbootclasspath=$(BOOTCLASSPATH)
|
||||
|
||||
BOOTCLASSPATH = $(here)'$(CLASSPATH_SEPARATOR)'$(srcdir)'$(CLASSPATH_SEPARATOR)'$(top_srcdir)'$(CLASSPATH_SEPARATOR)'$(top_builddir)
|
||||
|
||||
AM_GCJFLAGS = \
|
||||
-B$(top_builddir) \
|
||||
@LIBGCJ_JAVAFLAGS@ \
|
||||
-fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
|
||||
--encoding=UTF-8 \
|
||||
-Wno-deprecated
|
||||
|
||||
all-local: classes.stamp
|
||||
|
||||
classes.stamp: $(libw3c_convenience_la_SOURCES)
|
||||
here=`pwd`; cd $(srcdir); \
|
||||
$(GCJ_WITH_FLAGS) -C -d $$here $(libw3c_convenience_la_SOURCES)
|
||||
echo > classes.stamp
|
||||
|
||||
mostlyclean-local:
|
||||
find . -name '*.class' | xargs rm
|
||||
rm classes.stamp
|
||||
|
||||
noinst_LTLIBRARIES = libw3c_convenience.la
|
||||
|
||||
libw3c_convenience_la_SOURCES = \
|
||||
org/w3c/dom/xpath/XPathNamespace.java \
|
||||
org/w3c/dom/xpath/XPathResult.java \
|
||||
org/w3c/dom/xpath/XPathException.java \
|
||||
org/w3c/dom/xpath/XPathExpression.java \
|
||||
org/w3c/dom/xpath/XPathNSResolver.java \
|
||||
org/w3c/dom/xpath/XPathEvaluator.java \
|
||||
org/w3c/dom/DOMException.java \
|
||||
org/w3c/dom/Comment.java \
|
||||
org/w3c/dom/stylesheets/DocumentStyle.java \
|
||||
org/w3c/dom/stylesheets/MediaList.java \
|
||||
org/w3c/dom/stylesheets/LinkStyle.java \
|
||||
org/w3c/dom/stylesheets/StyleSheet.java \
|
||||
org/w3c/dom/stylesheets/StyleSheetList.java \
|
||||
org/w3c/dom/Attr.java \
|
||||
org/w3c/dom/Notation.java \
|
||||
org/w3c/dom/TypeInfo.java \
|
||||
org/w3c/dom/html2/HTMLIsIndexElement.java \
|
||||
org/w3c/dom/html2/HTMLTableColElement.java \
|
||||
org/w3c/dom/html2/HTMLLinkElement.java \
|
||||
org/w3c/dom/html2/HTMLTitleElement.java \
|
||||
org/w3c/dom/html2/HTMLBRElement.java \
|
||||
org/w3c/dom/html2/HTMLHeadElement.java \
|
||||
org/w3c/dom/html2/HTMLHtmlElement.java \
|
||||
org/w3c/dom/html2/HTMLScriptElement.java \
|
||||
org/w3c/dom/html2/HTMLTableRowElement.java \
|
||||
org/w3c/dom/html2/HTMLOptionsCollection.java \
|
||||
org/w3c/dom/html2/HTMLTableCellElement.java \
|
||||
org/w3c/dom/html2/HTMLDListElement.java \
|
||||
org/w3c/dom/html2/HTMLFieldSetElement.java \
|
||||
org/w3c/dom/html2/HTMLImageElement.java \
|
||||
org/w3c/dom/html2/HTMLHRElement.java \
|
||||
org/w3c/dom/html2/HTMLModElement.java \
|
||||
org/w3c/dom/html2/HTMLHeadingElement.java \
|
||||
org/w3c/dom/html2/HTMLTableElement.java \
|
||||
org/w3c/dom/html2/HTMLAreaElement.java \
|
||||
org/w3c/dom/html2/HTMLOptGroupElement.java \
|
||||
org/w3c/dom/html2/HTMLIFrameElement.java \
|
||||
org/w3c/dom/html2/HTMLDirectoryElement.java \
|
||||
org/w3c/dom/html2/HTMLParamElement.java \
|
||||
org/w3c/dom/html2/HTMLLegendElement.java \
|
||||
org/w3c/dom/html2/HTMLFrameElement.java \
|
||||
org/w3c/dom/html2/HTMLFormElement.java \
|
||||
org/w3c/dom/html2/HTMLStyleElement.java \
|
||||
org/w3c/dom/html2/HTMLFrameSetElement.java \
|
||||
org/w3c/dom/html2/HTMLCollection.java \
|
||||
org/w3c/dom/html2/HTMLAnchorElement.java \
|
||||
org/w3c/dom/html2/HTMLLabelElement.java \
|
||||
org/w3c/dom/html2/HTMLBodyElement.java \
|
||||
org/w3c/dom/html2/HTMLOptionElement.java \
|
||||
org/w3c/dom/html2/HTMLTableSectionElement.java \
|
||||
org/w3c/dom/html2/HTMLAppletElement.java \
|
||||
org/w3c/dom/html2/HTMLSelectElement.java \
|
||||
org/w3c/dom/html2/HTMLMetaElement.java \
|
||||
org/w3c/dom/html2/HTMLMenuElement.java \
|
||||
org/w3c/dom/html2/HTMLDivElement.java \
|
||||
org/w3c/dom/html2/HTMLLIElement.java \
|
||||
org/w3c/dom/html2/HTMLFontElement.java \
|
||||
org/w3c/dom/html2/HTMLOListElement.java \
|
||||
org/w3c/dom/html2/HTMLBaseFontElement.java \
|
||||
org/w3c/dom/html2/HTMLElement.java \
|
||||
org/w3c/dom/html2/HTMLTableCaptionElement.java \
|
||||
org/w3c/dom/html2/HTMLTextAreaElement.java \
|
||||
org/w3c/dom/html2/HTMLPreElement.java \
|
||||
org/w3c/dom/html2/HTMLObjectElement.java \
|
||||
org/w3c/dom/html2/HTMLBaseElement.java \
|
||||
org/w3c/dom/html2/HTMLUListElement.java \
|
||||
org/w3c/dom/html2/HTMLMapElement.java \
|
||||
org/w3c/dom/html2/HTMLParagraphElement.java \
|
||||
org/w3c/dom/html2/HTMLButtonElement.java \
|
||||
org/w3c/dom/html2/HTMLQuoteElement.java \
|
||||
org/w3c/dom/html2/HTMLInputElement.java \
|
||||
org/w3c/dom/html2/HTMLDocument.java \
|
||||
org/w3c/dom/ls/LSParser.java \
|
||||
org/w3c/dom/ls/LSSerializerFilter.java \
|
||||
org/w3c/dom/ls/LSLoadEvent.java \
|
||||
org/w3c/dom/ls/DOMImplementationLS.java \
|
||||
org/w3c/dom/ls/LSException.java \
|
||||
org/w3c/dom/ls/LSSerializer.java \
|
||||
org/w3c/dom/ls/LSResourceResolver.java \
|
||||
org/w3c/dom/ls/LSOutput.java \
|
||||
org/w3c/dom/ls/LSInput.java \
|
||||
org/w3c/dom/ls/LSProgressEvent.java \
|
||||
org/w3c/dom/ls/LSParserFilter.java \
|
||||
org/w3c/dom/DOMLocator.java \
|
||||
org/w3c/dom/DOMStringList.java \
|
||||
org/w3c/dom/DocumentFragment.java \
|
||||
org/w3c/dom/events/MutationEvent.java \
|
||||
org/w3c/dom/events/UIEvent.java \
|
||||
org/w3c/dom/events/EventListener.java \
|
||||
org/w3c/dom/events/Event.java \
|
||||
org/w3c/dom/events/MouseEvent.java \
|
||||
org/w3c/dom/events/EventTarget.java \
|
||||
org/w3c/dom/events/DocumentEvent.java \
|
||||
org/w3c/dom/events/EventException.java \
|
||||
org/w3c/dom/EntityReference.java \
|
||||
org/w3c/dom/DOMErrorHandler.java \
|
||||
org/w3c/dom/views/AbstractView.java \
|
||||
org/w3c/dom/views/DocumentView.java \
|
||||
org/w3c/dom/DOMError.java \
|
||||
org/w3c/dom/bootstrap/DOMImplementationRegistry.java \
|
||||
org/w3c/dom/traversal/TreeWalker.java \
|
||||
org/w3c/dom/traversal/NodeFilter.java \
|
||||
org/w3c/dom/traversal/DocumentTraversal.java \
|
||||
org/w3c/dom/traversal/NodeIterator.java \
|
||||
org/w3c/dom/CharacterData.java \
|
||||
org/w3c/dom/DOMConfiguration.java \
|
||||
org/w3c/dom/css/CSSRule.java \
|
||||
org/w3c/dom/css/Rect.java \
|
||||
org/w3c/dom/css/CSSStyleSheet.java \
|
||||
org/w3c/dom/css/CSSFontFaceRule.java \
|
||||
org/w3c/dom/css/CSSPrimitiveValue.java \
|
||||
org/w3c/dom/css/CSSRuleList.java \
|
||||
org/w3c/dom/css/ViewCSS.java \
|
||||
org/w3c/dom/css/CSSStyleRule.java \
|
||||
org/w3c/dom/css/CSSUnknownRule.java \
|
||||
org/w3c/dom/css/RGBColor.java \
|
||||
org/w3c/dom/css/ElementCSSInlineStyle.java \
|
||||
org/w3c/dom/css/CSSMediaRule.java \
|
||||
org/w3c/dom/css/CSS2Properties.java \
|
||||
org/w3c/dom/css/CSSValue.java \
|
||||
org/w3c/dom/css/CSSStyleDeclaration.java \
|
||||
org/w3c/dom/css/DOMImplementationCSS.java \
|
||||
org/w3c/dom/css/CSSCharsetRule.java \
|
||||
org/w3c/dom/css/Counter.java \
|
||||
org/w3c/dom/css/CSSPageRule.java \
|
||||
org/w3c/dom/css/DocumentCSS.java \
|
||||
org/w3c/dom/css/CSSValueList.java \
|
||||
org/w3c/dom/css/CSSImportRule.java \
|
||||
org/w3c/dom/NameList.java \
|
||||
org/w3c/dom/Element.java \
|
||||
org/w3c/dom/Document.java \
|
||||
org/w3c/dom/ranges/Range.java \
|
||||
org/w3c/dom/ranges/RangeException.java \
|
||||
org/w3c/dom/ranges/DocumentRange.java \
|
||||
org/w3c/dom/DOMImplementationList.java \
|
||||
org/w3c/dom/Entity.java \
|
||||
org/w3c/dom/UserDataHandler.java \
|
||||
org/w3c/dom/DOMImplementation.java \
|
||||
org/w3c/dom/CDATASection.java \
|
||||
org/w3c/dom/ProcessingInstruction.java \
|
||||
org/w3c/dom/Node.java \
|
||||
org/w3c/dom/NamedNodeMap.java \
|
||||
org/w3c/dom/NodeList.java \
|
||||
org/w3c/dom/Text.java \
|
||||
org/w3c/dom/DocumentType.java \
|
||||
org/w3c/dom/DOMImplementationSource.java
|
1751
libjava/external/w3c_dom/Makefile.in
vendored
Normal file
1751
libjava/external/w3c_dom/Makefile.in
vendored
Normal file
File diff suppressed because it is too large
Load Diff
97
libjava/external/w3c_dom/README
vendored
Normal file
97
libjava/external/w3c_dom/README
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
Bindings for the Document Object Model (DOM).
|
||||
DOM is not maintained as part of GNU Classpath, but is used with GNU Classpath.
|
||||
|
||||
The packages includes are:
|
||||
|
||||
Document Object Model (DOM) Level 3 Core Specification
|
||||
http://www.w3.org/TR/DOM-Level-3-Core/
|
||||
(07 April 2004)
|
||||
|
||||
Document Object Model (DOM) Level 3 Load and Save Specification
|
||||
http://www.w3.org/TR/DOM-Level-3-LS/
|
||||
(07 April 2004)
|
||||
|
||||
Document Object Model (DOM) Level 2 Events Specification
|
||||
http://www.w3.org/TR/DOM-Level-2-Events/
|
||||
(13 November 2000)
|
||||
Latest errata: 20021016
|
||||
|
||||
Document Object Model (DOM) Level 2 Views Specification
|
||||
http://www.w3.org/TR/DOM-Level-2-Views/
|
||||
(13 November 2000)
|
||||
Latest errata: 20021016
|
||||
|
||||
Document Object Model (DOM) Level 2 Style Specification
|
||||
http://www.w3.org/TR/DOM-Level-2-Style/
|
||||
(13 November 2000)
|
||||
Latest errata: 20021016
|
||||
|
||||
Document Object Model (DOM) Level 2 Traversal and Range Specification
|
||||
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/
|
||||
(13 November 2000)
|
||||
Latest errata: 20021016
|
||||
|
||||
Document Object Model (DOM) Level 2 HTML Specification
|
||||
http://www.w3.org/TR/DOM-Level-2-HTML/
|
||||
(09 January 2003)
|
||||
|
||||
Document Object Model (DOM) Level 3 XPath Specification
|
||||
http://www.w3.org/TR/DOM-Level-3-XPath/
|
||||
(26 February 2004)
|
||||
|
||||
Errata can be found at:
|
||||
http://www.w3.org/2000/11/DOM-Level-2-errata
|
||||
http://www.w3.org/2004/01/DOM-Level-3-errata
|
||||
|
||||
The only change to the sources is setting the additional fallback for
|
||||
org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance() to
|
||||
gnu.xml.dom.ImplementationSource.
|
||||
|
||||
When importing new versions don't forget to update the Makefile.am
|
||||
to list any new files (or to remove old ones).
|
||||
|
||||
All files are distributed under the following
|
||||
W3C Software Short Notice:
|
||||
|
||||
Copyright (c) 2004 World Wide Web Consortium,
|
||||
|
||||
(Massachusetts Institute of Technology, European Research Consortium for
|
||||
Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
work is distributed under the W3C(r) Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
|
||||
Permission to copy, modify, and distribute this software and its
|
||||
documentation, with or without modification, for any purpose and
|
||||
without fee or royalty is hereby granted, provided that you include
|
||||
the following on ALL copies of the software and documentation or
|
||||
portions thereof, including modifications:
|
||||
|
||||
1. The full text of this NOTICE in a location viewable to users of
|
||||
the redistributed or derivative work.
|
||||
2. Any pre-existing intellectual property disclaimers, notices, or
|
||||
terms and conditions. If none exist, the W3C Software Short Notice
|
||||
should be included (hypertext is preferred, text is permitted) within
|
||||
the body of any redistributed or derivative code.
|
||||
3. Notice of any changes or modifications to the files, including
|
||||
the date changes were made. (We recommend you provide URIs to the
|
||||
location from which the code is derived.)
|
||||
|
||||
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
|
||||
HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
|
||||
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
|
||||
DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
|
||||
TRADEMARKS OR OTHER RIGHTS.
|
||||
|
||||
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
|
||||
OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
|
||||
DOCUMENTATION.
|
||||
|
||||
The name and trademarks of copyright holders may NOT be used in
|
||||
advertising or publicity pertaining to the software without specific,
|
||||
written prior permission. Title to copyright in this software and any
|
||||
associated documentation will at all times remain with copyright
|
||||
holders.
|
275
libjava/external/w3c_dom/org/w3c/dom/Attr.java
vendored
Normal file
275
libjava/external/w3c_dom/org/w3c/dom/Attr.java
vendored
Normal file
@ -0,0 +1,275 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>Attr</code> interface represents an attribute in an
|
||||
* <code>Element</code> object. Typically the allowable values for the
|
||||
* attribute are defined in a schema associated with the document.
|
||||
* <p><code>Attr</code> objects inherit the <code>Node</code> interface, but
|
||||
* since they are not actually child nodes of the element they describe, the
|
||||
* DOM does not consider them part of the document tree. Thus, the
|
||||
* <code>Node</code> attributes <code>parentNode</code>,
|
||||
* <code>previousSibling</code>, and <code>nextSibling</code> have a
|
||||
* <code>null</code> value for <code>Attr</code> objects. The DOM takes the
|
||||
* view that attributes are properties of elements rather than having a
|
||||
* separate identity from the elements they are associated with; this should
|
||||
* make it more efficient to implement such features as default attributes
|
||||
* associated with all elements of a given type. Furthermore,
|
||||
* <code>Attr</code> nodes may not be immediate children of a
|
||||
* <code>DocumentFragment</code>. However, they can be associated with
|
||||
* <code>Element</code> nodes contained within a
|
||||
* <code>DocumentFragment</code>. In short, users and implementors of the
|
||||
* DOM need to be aware that <code>Attr</code> nodes have some things in
|
||||
* common with other objects inheriting the <code>Node</code> interface, but
|
||||
* they also are quite distinct.
|
||||
* <p>The attribute's effective value is determined as follows: if this
|
||||
* attribute has been explicitly assigned any value, that value is the
|
||||
* attribute's effective value; otherwise, if there is a declaration for
|
||||
* this attribute, and that declaration includes a default value, then that
|
||||
* default value is the attribute's effective value; otherwise, the
|
||||
* attribute does not exist on this element in the structure model until it
|
||||
* has been explicitly added. Note that the <code>Node.nodeValue</code>
|
||||
* attribute on the <code>Attr</code> instance can also be used to retrieve
|
||||
* the string version of the attribute's value(s).
|
||||
* <p> If the attribute was not explicitly given a value in the instance
|
||||
* document but has a default value provided by the schema associated with
|
||||
* the document, an attribute node will be created with
|
||||
* <code>specified</code> set to <code>false</code>. Removing attribute
|
||||
* nodes for which a default value is defined in the schema generates a new
|
||||
* attribute node with the default value and <code>specified</code> set to
|
||||
* <code>false</code>. If validation occurred while invoking
|
||||
* <code>Document.normalizeDocument()</code>, attribute nodes with
|
||||
* <code>specified</code> equals to <code>false</code> are recomputed
|
||||
* according to the default attribute values provided by the schema. If no
|
||||
* default value is associate with this attribute in the schema, the
|
||||
* attribute node is discarded.
|
||||
* <p>In XML, where the value of an attribute can contain entity references,
|
||||
* the child nodes of the <code>Attr</code> node may be either
|
||||
* <code>Text</code> or <code>EntityReference</code> nodes (when these are
|
||||
* in use; see the description of <code>EntityReference</code> for
|
||||
* discussion).
|
||||
* <p>The DOM Core represents all attribute values as simple strings, even if
|
||||
* the DTD or schema associated with the document declares them of some
|
||||
* specific type such as tokenized.
|
||||
* <p>The way attribute value normalization is performed by the DOM
|
||||
* implementation depends on how much the implementation knows about the
|
||||
* schema in use. Typically, the <code>value</code> and
|
||||
* <code>nodeValue</code> attributes of an <code>Attr</code> node initially
|
||||
* returns the normalized value given by the parser. It is also the case
|
||||
* after <code>Document.normalizeDocument()</code> is called (assuming the
|
||||
* right options have been set). But this may not be the case after
|
||||
* mutation, independently of whether the mutation is performed by setting
|
||||
* the string value directly or by changing the <code>Attr</code> child
|
||||
* nodes. In particular, this is true when <a href='http://www.w3.org/TR/2004/REC-xml-20040204#dt-charref'>character
|
||||
* references</a> are involved, given that they are not represented in the DOM and they
|
||||
* impact attribute value normalization. On the other hand, if the
|
||||
* implementation knows about the schema in use when the attribute value is
|
||||
* changed, and it is of a different type than CDATA, it may normalize it
|
||||
* again at that time. This is especially true of specialized DOM
|
||||
* implementations, such as SVG DOM implementations, which store attribute
|
||||
* values in an internal form different from a string.
|
||||
* <p>The following table gives some examples of the relations between the
|
||||
* attribute value in the original document (parsed attribute), the value as
|
||||
* exposed in the DOM, and the serialization of the value:
|
||||
* <table border='1' cellpadding='3'>
|
||||
* <tr>
|
||||
* <th>Examples</th>
|
||||
* <th>Parsed
|
||||
* attribute value</th>
|
||||
* <th>Initial <code>Attr.value</code></th>
|
||||
* <th>Serialized attribute value</th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* Character reference</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"x&#178;=5"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"x\u00b2=5"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"x&#178;=5"</pre>
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>Built-in
|
||||
* character entity</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"y&lt;6"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"y<6"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"y&lt;6"</pre>
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>Literal newline between</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>
|
||||
* "x=5&#10;y=6"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"x=5 y=6"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"x=5&#10;y=6"</pre>
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>Normalized newline between</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"x=5
|
||||
* y=6"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"x=5 y=6"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>"x=5 y=6"</pre>
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>Entity <code>e</code> with literal newline</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <pre>
|
||||
* <!ENTITY e '...&#10;...'> [...]> "x=5&e;y=6"</pre>
|
||||
* </td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><em>Dependent on Implementation and Load Options</em></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><em>Dependent on Implementation and Load/Save Options</em></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface Attr extends Node {
|
||||
/**
|
||||
* Returns the name of this attribute. If <code>Node.localName</code> is
|
||||
* different from <code>null</code>, this attribute is a qualified name.
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/**
|
||||
* <code>True</code> if this attribute was explicitly given a value in
|
||||
* the instance document, <code>false</code> otherwise. If the
|
||||
* application changed the value of this attribute node (even if it ends
|
||||
* up having the same value as the default value) then it is set to
|
||||
* <code>true</code>. The implementation may handle attributes with
|
||||
* default values from other schemas similarly but applications should
|
||||
* use <code>Document.normalizeDocument()</code> to guarantee this
|
||||
* information is up-to-date.
|
||||
*/
|
||||
public boolean getSpecified();
|
||||
|
||||
/**
|
||||
* On retrieval, the value of the attribute is returned as a string.
|
||||
* Character and general entity references are replaced with their
|
||||
* values. See also the method <code>getAttribute</code> on the
|
||||
* <code>Element</code> interface.
|
||||
* <br>On setting, this creates a <code>Text</code> node with the unparsed
|
||||
* contents of the string, i.e. any characters that an XML processor
|
||||
* would recognize as markup are instead treated as literal text. See
|
||||
* also the method <code>Element.setAttribute()</code>.
|
||||
* <br> Some specialized implementations, such as some [<a href='http://www.w3.org/TR/2003/REC-SVG11-20030114/'>SVG 1.1</a>]
|
||||
* implementations, may do normalization automatically, even after
|
||||
* mutation; in such case, the value on retrieval may differ from the
|
||||
* value on setting.
|
||||
*/
|
||||
public String getValue();
|
||||
/**
|
||||
* On retrieval, the value of the attribute is returned as a string.
|
||||
* Character and general entity references are replaced with their
|
||||
* values. See also the method <code>getAttribute</code> on the
|
||||
* <code>Element</code> interface.
|
||||
* <br>On setting, this creates a <code>Text</code> node with the unparsed
|
||||
* contents of the string, i.e. any characters that an XML processor
|
||||
* would recognize as markup are instead treated as literal text. See
|
||||
* also the method <code>Element.setAttribute()</code>.
|
||||
* <br> Some specialized implementations, such as some [<a href='http://www.w3.org/TR/2003/REC-SVG11-20030114/'>SVG 1.1</a>]
|
||||
* implementations, may do normalization automatically, even after
|
||||
* mutation; in such case, the value on retrieval may differ from the
|
||||
* value on setting.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||
*/
|
||||
public void setValue(String value)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The <code>Element</code> node this attribute is attached to or
|
||||
* <code>null</code> if this attribute is not in use.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Element getOwnerElement();
|
||||
|
||||
/**
|
||||
* The type information associated with this attribute. While the type
|
||||
* information contained in this attribute is guarantee to be correct
|
||||
* after loading the document or invoking
|
||||
* <code>Document.normalizeDocument()</code>, <code>schemaTypeInfo</code>
|
||||
* may not be reliable if the node was moved.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public TypeInfo getSchemaTypeInfo();
|
||||
|
||||
/**
|
||||
* Returns whether this attribute is known to be of type ID (i.e. to
|
||||
* contain an identifier for its owner element) or not. When it is and
|
||||
* its value is unique, the <code>ownerElement</code> of this attribute
|
||||
* can be retrieved using the method <code>Document.getElementById</code>
|
||||
* . The implementation could use several ways to determine if an
|
||||
* attribute node is known to contain an identifier:
|
||||
* <ul>
|
||||
* <li> If validation
|
||||
* occurred using an XML Schema [<a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/'>XML Schema Part 1</a>]
|
||||
* while loading the document or while invoking
|
||||
* <code>Document.normalizeDocument()</code>, the post-schema-validation
|
||||
* infoset contributions (PSVI contributions) values are used to
|
||||
* determine if this attribute is a schema-determined ID attribute using
|
||||
* the <a href='http://www.w3.org/TR/2003/REC-xptr-framework-20030325/#term-sdi'>
|
||||
* schema-determined ID</a> definition in [<a href='http://www.w3.org/TR/2003/REC-xptr-framework-20030325/'>XPointer</a>]
|
||||
* .
|
||||
* </li>
|
||||
* <li> If validation occurred using a DTD while loading the document or
|
||||
* while invoking <code>Document.normalizeDocument()</code>, the infoset <b>[type definition]</b> value is used to determine if this attribute is a DTD-determined ID
|
||||
* attribute using the <a href='http://www.w3.org/TR/2003/REC-xptr-framework-20030325/#term-ddi'>
|
||||
* DTD-determined ID</a> definition in [<a href='http://www.w3.org/TR/2003/REC-xptr-framework-20030325/'>XPointer</a>]
|
||||
* .
|
||||
* </li>
|
||||
* <li> from the use of the methods <code>Element.setIdAttribute()</code>,
|
||||
* <code>Element.setIdAttributeNS()</code>, or
|
||||
* <code>Element.setIdAttributeNode()</code>, i.e. it is an
|
||||
* user-determined ID attribute;
|
||||
* <p ><b>Note:</b> XPointer framework (see section 3.2 in [<a href='http://www.w3.org/TR/2003/REC-xptr-framework-20030325/'>XPointer</a>]
|
||||
* ) consider the DOM user-determined ID attribute as being part of the
|
||||
* XPointer externally-determined ID definition.
|
||||
* </li>
|
||||
* <li> using mechanisms that
|
||||
* are outside the scope of this specification, it is then an
|
||||
* externally-determined ID attribute. This includes using schema
|
||||
* languages different from XML schema and DTD.
|
||||
* </li>
|
||||
* </ul>
|
||||
* <br> If validation occurred while invoking
|
||||
* <code>Document.normalizeDocument()</code>, all user-determined ID
|
||||
* attributes are reset and all attribute nodes ID information are then
|
||||
* reevaluated in accordance to the schema used. As a consequence, if
|
||||
* the <code>Attr.schemaTypeInfo</code> attribute contains an ID type,
|
||||
* <code>isId</code> will always return true.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public boolean isId();
|
||||
|
||||
}
|
54
libjava/external/w3c_dom/org/w3c/dom/CDATASection.java
vendored
Normal file
54
libjava/external/w3c_dom/org/w3c/dom/CDATASection.java
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* CDATA sections are used to escape blocks of text containing characters that
|
||||
* would otherwise be regarded as markup. The only delimiter that is
|
||||
* recognized in a CDATA section is the "]]>" string that ends the CDATA
|
||||
* section. CDATA sections cannot be nested. Their primary purpose is for
|
||||
* including material such as XML fragments, without needing to escape all
|
||||
* the delimiters.
|
||||
* <p>The <code>CharacterData.data</code> attribute holds the text that is
|
||||
* contained by the CDATA section. Note that this <em>may</em> contain characters that need to be escaped outside of CDATA sections and
|
||||
* that, depending on the character encoding ("charset") chosen for
|
||||
* serialization, it may be impossible to write out some characters as part
|
||||
* of a CDATA section.
|
||||
* <p>The <code>CDATASection</code> interface inherits from the
|
||||
* <code>CharacterData</code> interface through the <code>Text</code>
|
||||
* interface. Adjacent <code>CDATASection</code> nodes are not merged by use
|
||||
* of the <code>normalize</code> method of the <code>Node</code> interface.
|
||||
* <p> No lexical check is done on the content of a CDATA section and it is
|
||||
* therefore possible to have the character sequence <code>"]]>"</code>
|
||||
* in the content, which is illegal in a CDATA section per section 2.7 of [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]. The
|
||||
* presence of this character sequence must generate a fatal error during
|
||||
* serialization or the cdata section must be splitted before the
|
||||
* serialization (see also the parameter <code>"split-cdata-sections"</code>
|
||||
* in the <code>DOMConfiguration</code> interface).
|
||||
* <p ><b>Note:</b> Because no markup is recognized within a
|
||||
* <code>CDATASection</code>, character numeric references cannot be used as
|
||||
* an escape mechanism when serializing. Therefore, action needs to be taken
|
||||
* when serializing a <code>CDATASection</code> with a character encoding
|
||||
* where some of the contained characters cannot be represented. Failure to
|
||||
* do so would not produce well-formed XML.
|
||||
* <p ><b>Note:</b> One potential solution in the serialization process is to
|
||||
* end the CDATA section before the character, output the character using a
|
||||
* character reference or entity reference, and open a new CDATA section for
|
||||
* any further characters in the text node. Note, however, that some code
|
||||
* conversion libraries at the time of writing do not return an error or
|
||||
* exception when a character is missing from the encoding, making the task
|
||||
* of ensuring that data is not corrupted on serialization more difficult.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface CDATASection extends Text {
|
||||
}
|
@ -1,144 +1,153 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>CharacterData</code> interface extends Node with a set of
|
||||
* attributes and methods for accessing character data in the DOM. For
|
||||
* clarity this set is defined here rather than on each object that uses
|
||||
* these attributes and methods. No DOM objects correspond directly to
|
||||
* <code>CharacterData</code>, though <code>Text</code> and others do
|
||||
* inherit the interface from it. All <code>offsets</code> in this interface
|
||||
* start from <code>0</code>.
|
||||
* <p>As explained in the <code>DOMString</code> interface, text strings in
|
||||
* the DOM are represented in UTF-16, i.e. as a sequence of 16-bit units. In
|
||||
* the following, the term 16-bit units is used whenever necessary to
|
||||
* indicate that indexing on CharacterData is done in 16-bit units.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||
*/
|
||||
public interface CharacterData extends Node {
|
||||
/**
|
||||
* The character data of the node that implements this interface. The DOM
|
||||
* implementation may not put arbitrary limits on the amount of data
|
||||
* that may be stored in a <code>CharacterData</code> node. However,
|
||||
* implementation limits may mean that the entirety of a node's data may
|
||||
* not fit into a single <code>DOMString</code>. In such cases, the user
|
||||
* may call <code>substringData</code> to retrieve the data in
|
||||
* appropriately sized pieces.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||
* @exception DOMException
|
||||
* DOMSTRING_SIZE_ERR: Raised when it would return more characters than
|
||||
* fit in a <code>DOMString</code> variable on the implementation
|
||||
* platform.
|
||||
*/
|
||||
public String getData()
|
||||
throws DOMException;
|
||||
public void setData(String data)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The number of 16-bit units that are available through <code>data</code>
|
||||
* and the <code>substringData</code> method below. This may have the
|
||||
* value zero, i.e., <code>CharacterData</code> nodes may be empty.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Extracts a range of data from the node.
|
||||
* @param offsetStart offset of substring to extract.
|
||||
* @param countThe number of 16-bit units to extract.
|
||||
* @return The specified substring. If the sum of <code>offset</code> and
|
||||
* <code>count</code> exceeds the <code>length</code>, then all 16-bit
|
||||
* units to the end of the data are returned.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||
* negative or greater than the number of 16-bit units in
|
||||
* <code>data</code>, or if the specified <code>count</code> is
|
||||
* negative.
|
||||
* <br>DOMSTRING_SIZE_ERR: Raised if the specified range of text does
|
||||
* not fit into a <code>DOMString</code>.
|
||||
*/
|
||||
public String substringData(int offset,
|
||||
int count)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Append the string to the end of the character data of the node. Upon
|
||||
* success, <code>data</code> provides access to the concatenation of
|
||||
* <code>data</code> and the <code>DOMString</code> specified.
|
||||
* @param argThe <code>DOMString</code> to append.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void appendData(String arg)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Insert a string at the specified 16-bit unit offset.
|
||||
* @param offsetThe character offset at which to insert.
|
||||
* @param argThe <code>DOMString</code> to insert.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||
* negative or greater than the number of 16-bit units in
|
||||
* <code>data</code>.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void insertData(int offset,
|
||||
String arg)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Remove a range of 16-bit units from the node. Upon success,
|
||||
* <code>data</code> and <code>length</code> reflect the change.
|
||||
* @param offsetThe offset from which to start removing.
|
||||
* @param countThe number of 16-bit units to delete. If the sum of
|
||||
* <code>offset</code> and <code>count</code> exceeds
|
||||
* <code>length</code> then all 16-bit units from <code>offset</code>
|
||||
* to the end of the data are deleted.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||
* negative or greater than the number of 16-bit units in
|
||||
* <code>data</code>, or if the specified <code>count</code> is
|
||||
* negative.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void deleteData(int offset,
|
||||
int count)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Replace the characters starting at the specified 16-bit unit offset
|
||||
* with the specified string.
|
||||
* @param offsetThe offset from which to start replacing.
|
||||
* @param countThe number of 16-bit units to replace. If the sum of
|
||||
* <code>offset</code> and <code>count</code> exceeds
|
||||
* <code>length</code>, then all 16-bit units to the end of the data
|
||||
* are replaced; (i.e., the effect is the same as a <code>remove</code>
|
||||
* method call with the same range, followed by an <code>append</code>
|
||||
* method invocation).
|
||||
* @param argThe <code>DOMString</code> with which the range must be
|
||||
* replaced.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||
* negative or greater than the number of 16-bit units in
|
||||
* <code>data</code>, or if the specified <code>count</code> is
|
||||
* negative.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void replaceData(int offset,
|
||||
int count,
|
||||
String arg)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>CharacterData</code> interface extends Node with a set of
|
||||
* attributes and methods for accessing character data in the DOM. For
|
||||
* clarity this set is defined here rather than on each object that uses
|
||||
* these attributes and methods. No DOM objects correspond directly to
|
||||
* <code>CharacterData</code>, though <code>Text</code> and others do
|
||||
* inherit the interface from it. All <code>offsets</code> in this interface
|
||||
* start from <code>0</code>.
|
||||
* <p>As explained in the <code>DOMString</code> interface, text strings in
|
||||
* the DOM are represented in UTF-16, i.e. as a sequence of 16-bit units. In
|
||||
* the following, the term 16-bit units is used whenever necessary to
|
||||
* indicate that indexing on CharacterData is done in 16-bit units.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface CharacterData extends Node {
|
||||
/**
|
||||
* The character data of the node that implements this interface. The DOM
|
||||
* implementation may not put arbitrary limits on the amount of data
|
||||
* that may be stored in a <code>CharacterData</code> node. However,
|
||||
* implementation limits may mean that the entirety of a node's data may
|
||||
* not fit into a single <code>DOMString</code>. In such cases, the user
|
||||
* may call <code>substringData</code> to retrieve the data in
|
||||
* appropriately sized pieces.
|
||||
* @exception DOMException
|
||||
* DOMSTRING_SIZE_ERR: Raised when it would return more characters than
|
||||
* fit in a <code>DOMString</code> variable on the implementation
|
||||
* platform.
|
||||
*/
|
||||
public String getData()
|
||||
throws DOMException;
|
||||
/**
|
||||
* The character data of the node that implements this interface. The DOM
|
||||
* implementation may not put arbitrary limits on the amount of data
|
||||
* that may be stored in a <code>CharacterData</code> node. However,
|
||||
* implementation limits may mean that the entirety of a node's data may
|
||||
* not fit into a single <code>DOMString</code>. In such cases, the user
|
||||
* may call <code>substringData</code> to retrieve the data in
|
||||
* appropriately sized pieces.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||
*/
|
||||
public void setData(String data)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The number of 16-bit units that are available through <code>data</code>
|
||||
* and the <code>substringData</code> method below. This may have the
|
||||
* value zero, i.e., <code>CharacterData</code> nodes may be empty.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Extracts a range of data from the node.
|
||||
* @param offset Start offset of substring to extract.
|
||||
* @param count The number of 16-bit units to extract.
|
||||
* @return The specified substring. If the sum of <code>offset</code> and
|
||||
* <code>count</code> exceeds the <code>length</code>, then all 16-bit
|
||||
* units to the end of the data are returned.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||
* negative or greater than the number of 16-bit units in
|
||||
* <code>data</code>, or if the specified <code>count</code> is
|
||||
* negative.
|
||||
* <br>DOMSTRING_SIZE_ERR: Raised if the specified range of text does
|
||||
* not fit into a <code>DOMString</code>.
|
||||
*/
|
||||
public String substringData(int offset,
|
||||
int count)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Append the string to the end of the character data of the node. Upon
|
||||
* success, <code>data</code> provides access to the concatenation of
|
||||
* <code>data</code> and the <code>DOMString</code> specified.
|
||||
* @param arg The <code>DOMString</code> to append.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void appendData(String arg)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Insert a string at the specified 16-bit unit offset.
|
||||
* @param offset The character offset at which to insert.
|
||||
* @param arg The <code>DOMString</code> to insert.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||
* negative or greater than the number of 16-bit units in
|
||||
* <code>data</code>.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void insertData(int offset,
|
||||
String arg)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Remove a range of 16-bit units from the node. Upon success,
|
||||
* <code>data</code> and <code>length</code> reflect the change.
|
||||
* @param offset The offset from which to start removing.
|
||||
* @param count The number of 16-bit units to delete. If the sum of
|
||||
* <code>offset</code> and <code>count</code> exceeds
|
||||
* <code>length</code> then all 16-bit units from <code>offset</code>
|
||||
* to the end of the data are deleted.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||
* negative or greater than the number of 16-bit units in
|
||||
* <code>data</code>, or if the specified <code>count</code> is
|
||||
* negative.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void deleteData(int offset,
|
||||
int count)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Replace the characters starting at the specified 16-bit unit offset
|
||||
* with the specified string.
|
||||
* @param offset The offset from which to start replacing.
|
||||
* @param count The number of 16-bit units to replace. If the sum of
|
||||
* <code>offset</code> and <code>count</code> exceeds
|
||||
* <code>length</code>, then all 16-bit units to the end of the data
|
||||
* are replaced; (i.e., the effect is the same as a <code>remove</code>
|
||||
* method call with the same range, followed by an <code>append</code>
|
||||
* method invocation).
|
||||
* @param arg The <code>DOMString</code> with which the range must be
|
||||
* replaced.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||
* negative or greater than the number of 16-bit units in
|
||||
* <code>data</code>, or if the specified <code>count</code> is
|
||||
* negative.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void replaceData(int offset,
|
||||
int count,
|
||||
String arg)
|
||||
throws DOMException;
|
||||
|
||||
}
|
30
libjava/external/w3c_dom/org/w3c/dom/Comment.java
vendored
Normal file
30
libjava/external/w3c_dom/org/w3c/dom/Comment.java
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* This interface inherits from <code>CharacterData</code> and represents the
|
||||
* content of a comment, i.e., all the characters between the starting '
|
||||
* <code><!--</code>' and ending '<code>--></code>'. Note that this is
|
||||
* the definition of a comment in XML, and, in practice, HTML, although some
|
||||
* HTML tools may implement the full SGML comment structure.
|
||||
* <p> No lexical check is done on the content of a comment and it is
|
||||
* therefore possible to have the character sequence <code>"--"</code>
|
||||
* (double-hyphen) in the content, which is illegal in a comment per section
|
||||
* 2.5 of [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]. The
|
||||
* presence of this character sequence must generate a fatal error during
|
||||
* serialization.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface Comment extends CharacterData {
|
||||
}
|
413
libjava/external/w3c_dom/org/w3c/dom/DOMConfiguration.java
vendored
Normal file
413
libjava/external/w3c_dom/org/w3c/dom/DOMConfiguration.java
vendored
Normal file
@ -0,0 +1,413 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>DOMConfiguration</code> interface represents the configuration
|
||||
* of a document and maintains a table of recognized parameters. Using the
|
||||
* configuration, it is possible to change
|
||||
* <code>Document.normalizeDocument()</code> behavior, such as replacing the
|
||||
* <code>CDATASection</code> nodes with <code>Text</code> nodes or
|
||||
* specifying the type of the schema that must be used when the validation
|
||||
* of the <code>Document</code> is requested. <code>DOMConfiguration</code>
|
||||
* objects are also used in [<a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407'>DOM Level 3 Load and Save</a>]
|
||||
* in the <code>DOMParser</code> and <code>DOMSerializer</code> interfaces.
|
||||
* <p> The parameter names used by the <code>DOMConfiguration</code> object
|
||||
* are defined throughout the DOM Level 3 specifications. Names are
|
||||
* case-insensitive. To avoid possible conflicts, as a convention, names
|
||||
* referring to parameters defined outside the DOM specification should be
|
||||
* made unique. Because parameters are exposed as properties in the , names
|
||||
* are recommended to follow the section 5.16 Identifiers of [Unicode] with the addition of the character '-' (HYPHEN-MINUS) but it is not
|
||||
* enforced by the DOM implementation. DOM Level 3 Core Implementations are
|
||||
* required to recognize all parameters defined in this specification. Some
|
||||
* parameter values may also be required to be supported by the
|
||||
* implementation. Refer to the definition of the parameter to know if a
|
||||
* value must be supported or not.
|
||||
* <p ><b>Note:</b> Parameters are similar to features and properties used in
|
||||
* SAX2 [<a href='http://www.saxproject.org/'>SAX</a>].
|
||||
* <p> The following list of parameters defined in the DOM:
|
||||
* <dl>
|
||||
* <dt>
|
||||
* <code>"canonical-form"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>optional</em>] Canonicalize the document according to the rules specified in [<a href='http://www.w3.org/TR/2001/REC-xml-c14n-20010315'>Canonical XML</a>],
|
||||
* such as removing the <code>DocumentType</code> node (if any) from the
|
||||
* tree, or removing superfluous namespace declarations from each element.
|
||||
* Note that this is limited to what can be represented in the DOM; in
|
||||
* particular, there is no way to specify the order of the attributes in the
|
||||
* DOM. In addition, Setting this parameter to <code>true</code> will also
|
||||
* set the state of the parameters listed below. Later changes to the state
|
||||
* of one of those parameters will revert "canonical-form" back to
|
||||
* <code>false</code>. Parameters set to <code>false</code>: "entities", "
|
||||
* normalize-characters", "cdata-sections". Parameters set to
|
||||
* <code>true</code>: "namespaces", "namespace-declarations", "well-formed",
|
||||
* "element-content-whitespace". Other parameters are not changed unless
|
||||
* explicitly specified in the description of the parameters.</dd>
|
||||
* <dt>
|
||||
* <code>false</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>)Do not canonicalize the document.</dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"cdata-sections"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt>
|
||||
* <code>true</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>)Keep <code>CDATASection</code> nodes in the document.</dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>[<em>required</em>]Transform <code>CDATASection</code> nodes in the document into
|
||||
* <code>Text</code> nodes. The new <code>Text</code> node is then combined
|
||||
* with any adjacent <code>Text</code> node.</dd>
|
||||
* </dl></dd>
|
||||
* <dt>
|
||||
* <code>"check-character-normalization"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>optional</em>] Check if the characters in the document are <a href='http://www.w3.org/TR/2004/REC-xml11-20040204/#dt-fullnorm'>fully
|
||||
* normalized</a>, as defined in appendix B of [<a href='http://www.w3.org/TR/2004/REC-xml11-20040204/'>XML 1.1</a>]. When a
|
||||
* sequence of characters is encountered that fails normalization checking,
|
||||
* an error with the <code>DOMError.type</code> equals to
|
||||
* "check-character-normalization-failure" is issued. </dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>)Do not check if characters are normalized.</dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"comments"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt>
|
||||
* <code>true</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>)Keep <code>Comment</code> nodes in the document.</dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>[<em>required</em>]Discard <code>Comment</code> nodes in the document.</dd>
|
||||
* </dl></dd>
|
||||
* <dt>
|
||||
* <code>"datatype-normalization"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>optional</em>] Expose schema normalized values in the tree, such as <a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#key-nv'>XML
|
||||
* Schema normalized values</a> in the case of XML Schema. Since this parameter requires to have schema
|
||||
* information, the "validate" parameter will also be set to
|
||||
* <code>true</code>. Having this parameter activated when "validate" is
|
||||
* <code>false</code> has no effect and no schema-normalization will happen.
|
||||
* <p ><b>Note:</b> Since the document contains the result of the XML 1.0
|
||||
* processing, this parameter does not apply to attribute value
|
||||
* normalization as defined in section 3.3.3 of [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>] and is only
|
||||
* meant for schema languages other than Document Type Definition (DTD). </dd>
|
||||
* <dt>
|
||||
* <code>false</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>) Do not perform schema normalization on the tree. </dd>
|
||||
* </dl></dd>
|
||||
* <dt>
|
||||
* <code>"element-content-whitespace"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>)Keep all whitespaces in the document.</dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>[<em>optional</em>] Discard all <code>Text</code> nodes that contain whitespaces in element
|
||||
* content, as described in <a href='http://www.w3.org/TR/2004/REC-xml-infoset-20040204#infoitem.character'>
|
||||
* [element content whitespace]</a>. The implementation is expected to use the attribute
|
||||
* <code>Text.isElementContentWhitespace</code> to determine if a
|
||||
* <code>Text</code> node should be discarded or not.</dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"entities"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt>
|
||||
* <code>true</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>)Keep <code>EntityReference</code> nodes in the document.</dd>
|
||||
* <dt>
|
||||
* <code>false</code></dt>
|
||||
* <dd>[<em>required</em>] Remove all <code>EntityReference</code> nodes from the document,
|
||||
* putting the entity expansions directly in their place. <code>Text</code>
|
||||
* nodes are normalized, as defined in <code>Node.normalize</code>. Only <a href='http://www.w3.org/TR/2004/REC-xml-infoset-20040204/#infoitem.rse'>
|
||||
* unexpanded entity references</a> are kept in the document. </dd>
|
||||
* </dl>
|
||||
* <p ><b>Note:</b> This parameter does not affect <code>Entity</code> nodes. </dd>
|
||||
* <dt>
|
||||
* <code>"error-handler"</code></dt>
|
||||
* <dd>[<em>required</em>] Contains a <code>DOMErrorHandler</code> object. If an error is
|
||||
* encountered in the document, the implementation will call back the
|
||||
* <code>DOMErrorHandler</code> registered using this parameter. The
|
||||
* implementation may provide a default <code>DOMErrorHandler</code> object.
|
||||
* When called, <code>DOMError.relatedData</code> will contain the closest
|
||||
* node to where the error occurred. If the implementation is unable to
|
||||
* determine the node where the error occurs,
|
||||
* <code>DOMError.relatedData</code> will contain the <code>Document</code>
|
||||
* node. Mutations to the document from within an error handler will result
|
||||
* in implementation dependent behavior. </dd>
|
||||
* <dt><code>"infoset"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt>
|
||||
* <code>true</code></dt>
|
||||
* <dd>[<em>required</em>]Keep in the document the information defined in the XML Information Set [<a href='http://www.w3.org/TR/2004/REC-xml-infoset-20040204/'>XML Information Set</a>]
|
||||
* .This forces the following parameters to <code>false</code>: "
|
||||
* validate-if-schema", "entities", "datatype-normalization", "cdata-sections
|
||||
* ".This forces the following parameters to <code>true</code>: "
|
||||
* namespace-declarations", "well-formed", "element-content-whitespace", "
|
||||
* comments", "namespaces".Other parameters are not changed unless
|
||||
* explicitly specified in the description of the parameters. Note that
|
||||
* querying this parameter with <code>getParameter</code> returns
|
||||
* <code>true</code> only if the individual parameters specified above are
|
||||
* appropriately set.</dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>Setting <code>infoset</code> to
|
||||
* <code>false</code> has no effect.</dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"namespaces"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt>
|
||||
* <code>true</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>) Perform the namespace processing as defined in . </dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>[<em>optional</em>] Do not perform the namespace processing. </dd>
|
||||
* </dl></dd>
|
||||
* <dt>
|
||||
* <code>"namespace-declarations"</code></dt>
|
||||
* <dd> This parameter has no effect if the
|
||||
* parameter "namespaces" is set to <code>false</code>.
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>) Include namespace declaration attributes, specified or defaulted from
|
||||
* the schema, in the document. See also the sections "Declaring Namespaces"
|
||||
* in [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* and [<a href='http://www.w3.org/TR/2004/REC-xml-names11-20040204/'>XML Namespaces 1.1</a>]
|
||||
* .</dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>[<em>required</em>]Discard all namespace declaration attributes. The namespace prefixes (
|
||||
* <code>Node.prefix</code>) are retained even if this parameter is set to
|
||||
* <code>false</code>.</dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"normalize-characters"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>optional</em>] <a href='http://www.w3.org/TR/2004/REC-xml11-20040204/#dt-fullnorm'>Fully
|
||||
* normalized</a> the characters in the document as defined in appendix B of [<a href='http://www.w3.org/TR/2004/REC-xml11-20040204/'>XML 1.1</a>]. </dd>
|
||||
* <dt>
|
||||
* <code>false</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>)Do not perform character normalization.</dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"schema-location"</code></dt>
|
||||
* <dd>[<em>optional</em>] Represent a <code>DOMString</code> object containing a list of URIs,
|
||||
* separated by whitespaces (characters matching the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#NT-S'>nonterminal
|
||||
* production S</a> defined in section 2.3 [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]), that
|
||||
* represents the schemas against which validation should occur, i.e. the
|
||||
* current schema. The types of schemas referenced in this list must match
|
||||
* the type specified with <code>schema-type</code>, otherwise the behavior
|
||||
* of an implementation is undefined. The schemas specified using this
|
||||
* property take precedence to the schema information specified in the
|
||||
* document itself. For namespace aware schema, if a schema specified using
|
||||
* this property and a schema specified in the document instance (i.e. using
|
||||
* the <code>schemaLocation</code> attribute) in a schema document (i.e.
|
||||
* using schema <code>import</code> mechanisms) share the same
|
||||
* <code>targetNamespace</code>, the schema specified by the user using this
|
||||
* property will be used. If two schemas specified using this property share
|
||||
* the same <code>targetNamespace</code> or have no namespace, the behavior
|
||||
* is implementation dependent. If no location has been provided, this
|
||||
* parameter is <code>null</code>.
|
||||
* <p ><b>Note:</b> The <code>"schema-location"</code> parameter is ignored
|
||||
* unless the "schema-type" parameter value is set. It is strongly
|
||||
* recommended that <code>Document.documentURI</code> will be set so that an
|
||||
* implementation can successfully resolve any external entities referenced. </dd>
|
||||
* <dt>
|
||||
* <code>"schema-type"</code></dt>
|
||||
* <dd>[<em>optional</em>] Represent a <code>DOMString</code> object containing an absolute URI
|
||||
* and representing the type of the schema language used to validate a
|
||||
* document against. Note that no lexical checking is done on the absolute
|
||||
* URI. If this parameter is not set, a default value may be provided by
|
||||
* the implementation, based on the schema languages supported and on the
|
||||
* schema language used at load time. If no value is provided, this
|
||||
* parameter is <code>null</code>.
|
||||
* <p ><b>Note:</b> For XML Schema [<a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/'>XML Schema Part 1</a>]
|
||||
* , applications must use the value
|
||||
* <code>"http://www.w3.org/2001/XMLSchema"</code>. For XML DTD [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>],
|
||||
* applications must use the value
|
||||
* <code>"http://www.w3.org/TR/REC-xml"</code>. Other schema languages are
|
||||
* outside the scope of the W3C and therefore should recommend an absolute
|
||||
* URI in order to use this method. </dd>
|
||||
* <dt><code>"split-cdata-sections"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt>
|
||||
* <code>true</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>)Split CDATA sections containing the CDATA section termination marker
|
||||
* ']]>'. When a CDATA section is split a warning is issued with a
|
||||
* <code>DOMError.type</code> equals to
|
||||
* <code>"cdata-sections-splitted"</code> and
|
||||
* <code>DOMError.relatedData</code> equals to the first
|
||||
* <code>CDATASection</code> node in document order resulting from the split.</dd>
|
||||
* <dt>
|
||||
* <code>false</code></dt>
|
||||
* <dd>[<em>required</em>]Signal an error if a <code>CDATASection</code> contains an
|
||||
* unrepresentable character.</dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"validate"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>optional</em>] Require the validation against a schema (i.e. XML schema, DTD, any
|
||||
* other type or representation of schema) of the document as it is being
|
||||
* normalized as defined by [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]. If
|
||||
* validation errors are found, or no schema was found, the error handler is
|
||||
* notified. Schema-normalized values will not be exposed according to the
|
||||
* schema in used unless the parameter "datatype-normalization" is
|
||||
* <code>true</code>. This parameter will reevaluate:
|
||||
* <ul>
|
||||
* <li> Attribute nodes with
|
||||
* <code>Attr.specified</code> equals to <code>false</code>, as specified in
|
||||
* the description of the <code>Attr</code> interface;
|
||||
* </li>
|
||||
* <li> The value of the
|
||||
* attribute <code>Text.isElementContentWhitespace</code> for all
|
||||
* <code>Text</code> nodes;
|
||||
* </li>
|
||||
* <li> The value of the attribute
|
||||
* <code>Attr.isId</code> for all <code>Attr</code> nodes;
|
||||
* </li>
|
||||
* <li> The attributes
|
||||
* <code>Element.schemaTypeInfo</code> and <code>Attr.schemaTypeInfo</code>.
|
||||
* </li>
|
||||
* </ul>
|
||||
* <p ><b>Note:</b> "validate-if-schema" and "validate" are mutually
|
||||
* exclusive, setting one of them to <code>true</code> will set the other
|
||||
* one to <code>false</code>. Applications should also consider setting the
|
||||
* parameter "well-formed" to <code>true</code>, which is the default for
|
||||
* that option, when validating the document. </dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>) Do not accomplish schema processing, including the internal subset
|
||||
* processing. Default attribute values information are kept. Note that
|
||||
* validation might still happen if "validate-if-schema" is <code>true</code>
|
||||
* . </dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"validate-if-schema"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>optional</em>]Enable validation only if a declaration for the document element can be
|
||||
* found in a schema (independently of where it is found, i.e. XML schema,
|
||||
* DTD, or any other type or representation of schema). If validation is
|
||||
* enabled, this parameter has the same behavior as the parameter "validate"
|
||||
* set to <code>true</code>.
|
||||
* <p ><b>Note:</b> "validate-if-schema" and "validate" are mutually
|
||||
* exclusive, setting one of them to <code>true</code> will set the other
|
||||
* one to <code>false</code>. </dd>
|
||||
* <dt><code>false</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>) No schema processing should be performed if the document has a schema,
|
||||
* including internal subset processing. Default attribute values
|
||||
* information are kept. Note that validation must still happen if "validate
|
||||
* " is <code>true</code>. </dd>
|
||||
* </dl></dd>
|
||||
* <dt><code>"well-formed"</code></dt>
|
||||
* <dd>
|
||||
* <dl>
|
||||
* <dt><code>true</code></dt>
|
||||
* <dd>[<em>required</em>] (<em>default</em>) Check if all nodes are XML well formed according to the XML version in
|
||||
* use in <code>Document.xmlVersion</code>:
|
||||
* <ul>
|
||||
* <li> check if the attribute
|
||||
* <code>Node.nodeName</code> contains invalid characters according to its
|
||||
* node type and generate a <code>DOMError</code> of type
|
||||
* <code>"wf-invalid-character-in-node-name"</code>, with a
|
||||
* <code>DOMError.SEVERITY_ERROR</code> severity, if necessary;
|
||||
* </li>
|
||||
* <li> check if
|
||||
* the text content inside <code>Attr</code>, <code>Element</code>,
|
||||
* <code>Comment</code>, <code>Text</code>, <code>CDATASection</code> nodes
|
||||
* for invalid characters and generate a <code>DOMError</code> of type
|
||||
* <code>"wf-invalid-character"</code>, with a
|
||||
* <code>DOMError.SEVERITY_ERROR</code> severity, if necessary;
|
||||
* </li>
|
||||
* <li> check if
|
||||
* the data inside <code>ProcessingInstruction</code> nodes for invalid
|
||||
* characters and generate a <code>DOMError</code> of type
|
||||
* <code>"wf-invalid-character"</code>, with a
|
||||
* <code>DOMError.SEVERITY_ERROR</code> severity, if necessary;
|
||||
* </li>
|
||||
* </ul></dd>
|
||||
* <dt>
|
||||
* <code>false</code></dt>
|
||||
* <dd>[<em>optional</em>] Do not check for XML well-formedness. </dd>
|
||||
* </dl></dd>
|
||||
* </dl>
|
||||
* <p> The resolution of the system identifiers associated with entities is
|
||||
* done using <code>Document.documentURI</code>. However, when the feature
|
||||
* "LS" defined in [<a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407'>DOM Level 3 Load and Save</a>]
|
||||
* is supported by the DOM implementation, the parameter
|
||||
* "resource-resolver" can also be used on <code>DOMConfiguration</code>
|
||||
* objects attached to <code>Document</code> nodes. If this parameter is
|
||||
* set, <code>Document.normalizeDocument()</code> will invoke the resource
|
||||
* resolver instead of using <code>Document.documentURI</code>.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface DOMConfiguration {
|
||||
/**
|
||||
* Set the value of a parameter.
|
||||
* @param name The name of the parameter to set.
|
||||
* @param value The new value or <code>null</code> if the user wishes to
|
||||
* unset the parameter. While the type of the value parameter is
|
||||
* defined as <code>DOMUserData</code>, the object type must match the
|
||||
* type defined by the definition of the parameter. For example, if
|
||||
* the parameter is "error-handler", the value must be of type
|
||||
* <code>DOMErrorHandler</code>.
|
||||
* @exception DOMException
|
||||
* NOT_FOUND_ERR: Raised when the parameter name is not recognized.
|
||||
* <br> NOT_SUPPORTED_ERR: Raised when the parameter name is recognized
|
||||
* but the requested value cannot be set.
|
||||
* <br> TYPE_MISMATCH_ERR: Raised if the value type for this parameter
|
||||
* name is incompatible with the expected value type.
|
||||
*/
|
||||
public void setParameter(String name,
|
||||
Object value)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Return the value of a parameter if known.
|
||||
* @param name The name of the parameter.
|
||||
* @return The current object associated with the specified parameter or
|
||||
* <code>null</code> if no object has been associated or if the
|
||||
* parameter is not supported.
|
||||
* @exception DOMException
|
||||
* NOT_FOUND_ERR: Raised when the parameter name is not recognized.
|
||||
*/
|
||||
public Object getParameter(String name)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Check if setting a parameter to a specific value is supported.
|
||||
* @param name The name of the parameter to check.
|
||||
* @param value An object. if <code>null</code>, the returned value is
|
||||
* <code>true</code>.
|
||||
* @return <code>true</code> if the parameter could be successfully set
|
||||
* to the specified value, or <code>false</code> if the parameter is
|
||||
* not recognized or the requested value is not supported. This does
|
||||
* not change the current value of the parameter itself.
|
||||
*/
|
||||
public boolean canSetParameter(String name,
|
||||
Object value);
|
||||
|
||||
/**
|
||||
* The list of the parameters supported by this
|
||||
* <code>DOMConfiguration</code> object and for which at least one value
|
||||
* can be set by the application. Note that this list can also contain
|
||||
* parameter names defined outside this specification.
|
||||
*/
|
||||
public DOMStringList getParameterNames();
|
||||
|
||||
}
|
87
libjava/external/w3c_dom/org/w3c/dom/DOMError.java
vendored
Normal file
87
libjava/external/w3c_dom/org/w3c/dom/DOMError.java
vendored
Normal file
@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* <code>DOMError</code> is an interface that describes an error.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface DOMError {
|
||||
// ErrorSeverity
|
||||
/**
|
||||
* The severity of the error described by the <code>DOMError</code> is
|
||||
* warning. A <code>SEVERITY_WARNING</code> will not cause the
|
||||
* processing to stop, unless <code>DOMErrorHandler.handleError()</code>
|
||||
* returns <code>false</code>.
|
||||
*/
|
||||
public static final short SEVERITY_WARNING = 1;
|
||||
/**
|
||||
* The severity of the error described by the <code>DOMError</code> is
|
||||
* error. A <code>SEVERITY_ERROR</code> may not cause the processing to
|
||||
* stop if the error can be recovered, unless
|
||||
* <code>DOMErrorHandler.handleError()</code> returns <code>false</code>.
|
||||
*/
|
||||
public static final short SEVERITY_ERROR = 2;
|
||||
/**
|
||||
* The severity of the error described by the <code>DOMError</code> is
|
||||
* fatal error. A <code>SEVERITY_FATAL_ERROR</code> will cause the
|
||||
* normal processing to stop. The return value of
|
||||
* <code>DOMErrorHandler.handleError()</code> is ignored unless the
|
||||
* implementation chooses to continue, in which case the behavior
|
||||
* becomes undefined.
|
||||
*/
|
||||
public static final short SEVERITY_FATAL_ERROR = 3;
|
||||
|
||||
/**
|
||||
* The severity of the error, either <code>SEVERITY_WARNING</code>,
|
||||
* <code>SEVERITY_ERROR</code>, or <code>SEVERITY_FATAL_ERROR</code>.
|
||||
*/
|
||||
public short getSeverity();
|
||||
|
||||
/**
|
||||
* An implementation specific string describing the error that occurred.
|
||||
*/
|
||||
public String getMessage();
|
||||
|
||||
/**
|
||||
* A <code>DOMString</code> indicating which related data is expected in
|
||||
* <code>relatedData</code>. Users should refer to the specification of
|
||||
* the error in order to find its <code>DOMString</code> type and
|
||||
* <code>relatedData</code> definitions if any.
|
||||
* <p ><b>Note:</b> As an example,
|
||||
* <code>Document.normalizeDocument()</code> does generate warnings when
|
||||
* the "split-cdata-sections" parameter is in use. Therefore, the method
|
||||
* generates a <code>SEVERITY_WARNING</code> with <code>type</code>
|
||||
* <code>"cdata-sections-splitted"</code> and the first
|
||||
* <code>CDATASection</code> node in document order resulting from the
|
||||
* split is returned by the <code>relatedData</code> attribute.
|
||||
*/
|
||||
public String getType();
|
||||
|
||||
/**
|
||||
* The related platform dependent exception if any.
|
||||
*/
|
||||
public Object getRelatedException();
|
||||
|
||||
/**
|
||||
* The related <code>DOMError.type</code> dependent data if any.
|
||||
*/
|
||||
public Object getRelatedData();
|
||||
|
||||
/**
|
||||
* The location of the error.
|
||||
*/
|
||||
public DOMLocator getLocation();
|
||||
|
||||
}
|
45
libjava/external/w3c_dom/org/w3c/dom/DOMErrorHandler.java
vendored
Normal file
45
libjava/external/w3c_dom/org/w3c/dom/DOMErrorHandler.java
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* <code>DOMErrorHandler</code> is a callback interface that the DOM
|
||||
* implementation can call when reporting errors that happens while
|
||||
* processing XML data, or when doing some other processing (e.g. validating
|
||||
* a document). A <code>DOMErrorHandler</code> object can be attached to a
|
||||
* <code>Document</code> using the "error-handler" on the
|
||||
* <code>DOMConfiguration</code> interface. If more than one error needs to
|
||||
* be reported during an operation, the sequence and numbers of the errors
|
||||
* passed to the error handler are implementation dependent.
|
||||
* <p> The application that is using the DOM implementation is expected to
|
||||
* implement this interface.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface DOMErrorHandler {
|
||||
/**
|
||||
* This method is called on the error handler when an error occurs.
|
||||
* <br> If an exception is thrown from this method, it is considered to be
|
||||
* equivalent of returning <code>true</code>.
|
||||
* @param error The error object that describes the error. This object
|
||||
* may be reused by the DOM implementation across multiple calls to
|
||||
* the <code>handleError</code> method.
|
||||
* @return If the <code>handleError</code> method returns
|
||||
* <code>false</code>, the DOM implementation should stop the current
|
||||
* processing when possible. If the method returns <code>true</code>,
|
||||
* the processing may continue depending on
|
||||
* <code>DOMError.severity</code>.
|
||||
*/
|
||||
public boolean handleError(DOMError error);
|
||||
|
||||
}
|
@ -1,117 +1,131 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* DOM operations only raise exceptions in "exceptional" circumstances, i.e.,
|
||||
* when an operation is impossible to perform (either for logical reasons,
|
||||
* because data is lost, or because the implementation has become unstable).
|
||||
* In general, DOM methods return specific error values in ordinary
|
||||
* processing situations, such as out-of-bound errors when using
|
||||
* <code>NodeList</code>.
|
||||
* <p>Implementations should raise other exceptions under other circumstances.
|
||||
* For example, implementations should raise an implementation-dependent
|
||||
* exception if a <code>null</code> argument is passed.
|
||||
* <p>Some languages and object systems do not support the concept of
|
||||
* exceptions. For such systems, error conditions may be indicated using
|
||||
* native error reporting mechanisms. For some bindings, for example,
|
||||
* methods may return error codes similar to those listed in the
|
||||
* corresponding method descriptions.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||
*/
|
||||
public class DOMException extends RuntimeException {
|
||||
public DOMException(short code, String message) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
}
|
||||
/** @serial */
|
||||
public short code;
|
||||
// ExceptionCode
|
||||
/**
|
||||
* If index or size is negative, or greater than the allowed value
|
||||
*/
|
||||
public static final short INDEX_SIZE_ERR = 1;
|
||||
/**
|
||||
* If the specified range of text does not fit into a DOMString
|
||||
*/
|
||||
public static final short DOMSTRING_SIZE_ERR = 2;
|
||||
/**
|
||||
* If any node is inserted somewhere it doesn't belong
|
||||
*/
|
||||
public static final short HIERARCHY_REQUEST_ERR = 3;
|
||||
/**
|
||||
* If a node is used in a different document than the one that created it
|
||||
* (that doesn't support it)
|
||||
*/
|
||||
public static final short WRONG_DOCUMENT_ERR = 4;
|
||||
/**
|
||||
* If an invalid or illegal character is specified, such as in a name. See
|
||||
* production 2 in the XML specification for the definition of a legal
|
||||
* character, and production 5 for the definition of a legal name
|
||||
* character.
|
||||
*/
|
||||
public static final short INVALID_CHARACTER_ERR = 5;
|
||||
/**
|
||||
* If data is specified for a node which does not support data
|
||||
*/
|
||||
public static final short NO_DATA_ALLOWED_ERR = 6;
|
||||
/**
|
||||
* If an attempt is made to modify an object where modifications are not
|
||||
* allowed
|
||||
*/
|
||||
public static final short NO_MODIFICATION_ALLOWED_ERR = 7;
|
||||
/**
|
||||
* If an attempt is made to reference a node in a context where it does
|
||||
* not exist
|
||||
*/
|
||||
public static final short NOT_FOUND_ERR = 8;
|
||||
/**
|
||||
* If the implementation does not support the requested type of object or
|
||||
* operation.
|
||||
*/
|
||||
public static final short NOT_SUPPORTED_ERR = 9;
|
||||
/**
|
||||
* If an attempt is made to add an attribute that is already in use
|
||||
* elsewhere
|
||||
*/
|
||||
public static final short INUSE_ATTRIBUTE_ERR = 10;
|
||||
/**
|
||||
* If an attempt is made to use an object that is not, or is no longer,
|
||||
* usable.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short INVALID_STATE_ERR = 11;
|
||||
/**
|
||||
* If an invalid or illegal string is specified.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short SYNTAX_ERR = 12;
|
||||
/**
|
||||
* If an attempt is made to modify the type of the underlying object.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short INVALID_MODIFICATION_ERR = 13;
|
||||
/**
|
||||
* If an attempt is made to create or change an object in a way which is
|
||||
* incorrect with regard to namespaces.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short NAMESPACE_ERR = 14;
|
||||
/**
|
||||
* If a parameter or an operation is not supported by the underlying
|
||||
* object.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short INVALID_ACCESS_ERR = 15;
|
||||
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* DOM operations only raise exceptions in "exceptional" circumstances, i.e.,
|
||||
* when an operation is impossible to perform (either for logical reasons,
|
||||
* because data is lost, or because the implementation has become unstable).
|
||||
* In general, DOM methods return specific error values in ordinary
|
||||
* processing situations, such as out-of-bound errors when using
|
||||
* <code>NodeList</code>.
|
||||
* <p>Implementations should raise other exceptions under other circumstances.
|
||||
* For example, implementations should raise an implementation-dependent
|
||||
* exception if a <code>null</code> argument is passed when <code>null</code>
|
||||
* was not expected.
|
||||
* <p>Some languages and object systems do not support the concept of
|
||||
* exceptions. For such systems, error conditions may be indicated using
|
||||
* native error reporting mechanisms. For some bindings, for example,
|
||||
* methods may return error codes similar to those listed in the
|
||||
* corresponding method descriptions.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public class DOMException extends RuntimeException {
|
||||
public DOMException(short code, String message) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
}
|
||||
public short code;
|
||||
// ExceptionCode
|
||||
/**
|
||||
* If index or size is negative, or greater than the allowed value.
|
||||
*/
|
||||
public static final short INDEX_SIZE_ERR = 1;
|
||||
/**
|
||||
* If the specified range of text does not fit into a
|
||||
* <code>DOMString</code>.
|
||||
*/
|
||||
public static final short DOMSTRING_SIZE_ERR = 2;
|
||||
/**
|
||||
* If any <code>Node</code> is inserted somewhere it doesn't belong.
|
||||
*/
|
||||
public static final short HIERARCHY_REQUEST_ERR = 3;
|
||||
/**
|
||||
* If a <code>Node</code> is used in a different document than the one
|
||||
* that created it (that doesn't support it).
|
||||
*/
|
||||
public static final short WRONG_DOCUMENT_ERR = 4;
|
||||
/**
|
||||
* If an invalid or illegal character is specified, such as in an XML name.
|
||||
*/
|
||||
public static final short INVALID_CHARACTER_ERR = 5;
|
||||
/**
|
||||
* If data is specified for a <code>Node</code> which does not support
|
||||
* data.
|
||||
*/
|
||||
public static final short NO_DATA_ALLOWED_ERR = 6;
|
||||
/**
|
||||
* If an attempt is made to modify an object where modifications are not
|
||||
* allowed.
|
||||
*/
|
||||
public static final short NO_MODIFICATION_ALLOWED_ERR = 7;
|
||||
/**
|
||||
* If an attempt is made to reference a <code>Node</code> in a context
|
||||
* where it does not exist.
|
||||
*/
|
||||
public static final short NOT_FOUND_ERR = 8;
|
||||
/**
|
||||
* If the implementation does not support the requested type of object or
|
||||
* operation.
|
||||
*/
|
||||
public static final short NOT_SUPPORTED_ERR = 9;
|
||||
/**
|
||||
* If an attempt is made to add an attribute that is already in use
|
||||
* elsewhere.
|
||||
*/
|
||||
public static final short INUSE_ATTRIBUTE_ERR = 10;
|
||||
/**
|
||||
* If an attempt is made to use an object that is not, or is no longer,
|
||||
* usable.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short INVALID_STATE_ERR = 11;
|
||||
/**
|
||||
* If an invalid or illegal string is specified.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short SYNTAX_ERR = 12;
|
||||
/**
|
||||
* If an attempt is made to modify the type of the underlying object.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short INVALID_MODIFICATION_ERR = 13;
|
||||
/**
|
||||
* If an attempt is made to create or change an object in a way which is
|
||||
* incorrect with regard to namespaces.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short NAMESPACE_ERR = 14;
|
||||
/**
|
||||
* If a parameter or an operation is not supported by the underlying
|
||||
* object.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public static final short INVALID_ACCESS_ERR = 15;
|
||||
/**
|
||||
* If a call to a method such as <code>insertBefore</code> or
|
||||
* <code>removeChild</code> would make the <code>Node</code> invalid
|
||||
* with respect to "partial validity", this exception would be raised
|
||||
* and the operation would not be done. This code is used in [<a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Val-20040127/'>DOM Level 3 Validation</a>]
|
||||
* . Refer to this specification for further information.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public static final short VALIDATION_ERR = 16;
|
||||
/**
|
||||
* If the type of an object is incompatible with the expected type of the
|
||||
* parameter associated to the object.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public static final short TYPE_MISMATCH_ERR = 17;
|
||||
|
||||
}
|
136
libjava/external/w3c_dom/org/w3c/dom/DOMImplementation.java
vendored
Normal file
136
libjava/external/w3c_dom/org/w3c/dom/DOMImplementation.java
vendored
Normal file
@ -0,0 +1,136 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>DOMImplementation</code> interface provides a number of methods
|
||||
* for performing operations that are independent of any particular instance
|
||||
* of the document object model.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface DOMImplementation {
|
||||
/**
|
||||
* Test if the DOM implementation implements a specific feature and
|
||||
* version, as specified in .
|
||||
* @param feature The name of the feature to test.
|
||||
* @param version This is the version number of the feature to test.
|
||||
* @return <code>true</code> if the feature is implemented in the
|
||||
* specified version, <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean hasFeature(String feature,
|
||||
String version);
|
||||
|
||||
/**
|
||||
* Creates an empty <code>DocumentType</code> node. Entity declarations
|
||||
* and notations are not made available. Entity reference expansions and
|
||||
* default attribute additions do not occur..
|
||||
* @param qualifiedName The qualified name of the document type to be
|
||||
* created.
|
||||
* @param publicId The external subset public identifier.
|
||||
* @param systemId The external subset system identifier.
|
||||
* @return A new <code>DocumentType</code> node with
|
||||
* <code>Node.ownerDocument</code> set to <code>null</code>.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified qualified name is not
|
||||
* an XML name according to [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>].
|
||||
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||
* malformed.
|
||||
* <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature "XML" and the language exposed through the
|
||||
* Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public DocumentType createDocumentType(String qualifiedName,
|
||||
String publicId,
|
||||
String systemId)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates a DOM Document object of the specified type with its document
|
||||
* element.
|
||||
* <br>Note that based on the <code>DocumentType</code> given to create
|
||||
* the document, the implementation may instantiate specialized
|
||||
* <code>Document</code> objects that support additional features than
|
||||
* the "Core", such as "HTML" [<a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>DOM Level 2 HTML</a>]
|
||||
* . On the other hand, setting the <code>DocumentType</code> after the
|
||||
* document was created makes this very unlikely to happen.
|
||||
* Alternatively, specialized <code>Document</code> creation methods,
|
||||
* such as <code>createHTMLDocument</code> [<a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>DOM Level 2 HTML</a>]
|
||||
* , can be used to obtain specific types of <code>Document</code>
|
||||
* objects.
|
||||
* @param namespaceURI The namespace URI of the document element to
|
||||
* create or <code>null</code>.
|
||||
* @param qualifiedName The qualified name of the document element to be
|
||||
* created or <code>null</code>.
|
||||
* @param doctype The type of document to be created or <code>null</code>.
|
||||
* When <code>doctype</code> is not <code>null</code>, its
|
||||
* <code>Node.ownerDocument</code> attribute is set to the document
|
||||
* being created.
|
||||
* @return A new <code>Document</code> object with its document element.
|
||||
* If the <code>NamespaceURI</code>, <code>qualifiedName</code>, and
|
||||
* <code>doctype</code> are <code>null</code>, the returned
|
||||
* <code>Document</code> is empty with no document element.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified qualified name is not
|
||||
* an XML name according to [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>].
|
||||
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||
* malformed, if the <code>qualifiedName</code> has a prefix and the
|
||||
* <code>namespaceURI</code> is <code>null</code>, or if the
|
||||
* <code>qualifiedName</code> is <code>null</code> and the
|
||||
* <code>namespaceURI</code> is different from <code>null</code>, or
|
||||
* if the <code>qualifiedName</code> has a prefix that is "xml" and
|
||||
* the <code>namespaceURI</code> is different from "<a href='http://www.w3.org/XML/1998/namespace'>
|
||||
* http://www.w3.org/XML/1998/namespace</a>" [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , or if the DOM implementation does not support the
|
||||
* <code>"XML"</code> feature but a non-null namespace URI was
|
||||
* provided, since namespaces were defined by XML.
|
||||
* <br>WRONG_DOCUMENT_ERR: Raised if <code>doctype</code> has already
|
||||
* been used with a different document or was created from a different
|
||||
* implementation.
|
||||
* <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature "XML" and the language exposed through the
|
||||
* Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Document createDocument(String namespaceURI,
|
||||
String qualifiedName,
|
||||
DocumentType doctype)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This method returns a specialized object which implements the
|
||||
* specialized APIs of the specified feature and version, as specified
|
||||
* in . The specialized object may also be obtained by using
|
||||
* binding-specific casting methods but is not necessarily expected to,
|
||||
* as discussed in . This method also allow the implementation to
|
||||
* provide specialized objects which do not support the
|
||||
* <code>DOMImplementation</code> interface.
|
||||
* @param feature The name of the feature requested. Note that any plus
|
||||
* sign "+" prepended to the name of the feature will be ignored since
|
||||
* it is not significant in the context of this method.
|
||||
* @param version This is the version number of the feature to test.
|
||||
* @return Returns an object which implements the specialized APIs of
|
||||
* the specified feature and version, if any, or <code>null</code> if
|
||||
* there is no object which implements interfaces associated with that
|
||||
* feature. If the <code>DOMObject</code> returned by this method
|
||||
* implements the <code>DOMImplementation</code> interface, it must
|
||||
* delegate to the primary core <code>DOMImplementation</code> and not
|
||||
* return results inconsistent with the primary core
|
||||
* <code>DOMImplementation</code> such as <code>hasFeature</code>,
|
||||
* <code>getFeature</code>, etc.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public Object getFeature(String feature,
|
||||
String version);
|
||||
|
||||
}
|
43
libjava/external/w3c_dom/org/w3c/dom/DOMImplementationList.java
vendored
Normal file
43
libjava/external/w3c_dom/org/w3c/dom/DOMImplementationList.java
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>DOMImplementationList</code> interface provides the abstraction
|
||||
* of an ordered collection of DOM implementations, without defining or
|
||||
* constraining how this collection is implemented. The items in the
|
||||
* <code>DOMImplementationList</code> are accessible via an integral index,
|
||||
* starting from 0.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface DOMImplementationList {
|
||||
/**
|
||||
* Returns the <code>index</code>th item in the collection. If
|
||||
* <code>index</code> is greater than or equal to the number of
|
||||
* <code>DOMImplementation</code>s in the list, this returns
|
||||
* <code>null</code>.
|
||||
* @param index Index into the collection.
|
||||
* @return The <code>DOMImplementation</code> at the <code>index</code>
|
||||
* th position in the <code>DOMImplementationList</code>, or
|
||||
* <code>null</code> if that is not a valid index.
|
||||
*/
|
||||
public DOMImplementation item(int index);
|
||||
|
||||
/**
|
||||
* The number of <code>DOMImplementation</code>s in the list. The range
|
||||
* of valid child node indices is 0 to <code>length-1</code> inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
}
|
58
libjava/external/w3c_dom/org/w3c/dom/DOMImplementationSource.java
vendored
Normal file
58
libjava/external/w3c_dom/org/w3c/dom/DOMImplementationSource.java
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* This interface permits a DOM implementer to supply one or more
|
||||
* implementations, based upon requested features and versions, as specified
|
||||
* in . Each implemented <code>DOMImplementationSource</code> object is
|
||||
* listed in the binding-specific list of available sources so that its
|
||||
* <code>DOMImplementation</code> objects are made available.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface DOMImplementationSource {
|
||||
/**
|
||||
* A method to request the first DOM implementation that supports the
|
||||
* specified features.
|
||||
* @param features A string that specifies which features and versions
|
||||
* are required. This is a space separated list in which each feature
|
||||
* is specified by its name optionally followed by a space and a
|
||||
* version number. This method returns the first item of the list
|
||||
* returned by <code>getDOMImplementationList</code>. As an example,
|
||||
* the string <code>"XML 3.0 Traversal +Events 2.0"</code> will
|
||||
* request a DOM implementation that supports the module "XML" for its
|
||||
* 3.0 version, a module that support of the "Traversal" module for
|
||||
* any version, and the module "Events" for its 2.0 version. The
|
||||
* module "Events" must be accessible using the method
|
||||
* <code>Node.getFeature()</code> and
|
||||
* <code>DOMImplementation.getFeature()</code>.
|
||||
* @return The first DOM implementation that support the desired
|
||||
* features, or <code>null</code> if this source has none.
|
||||
*/
|
||||
public DOMImplementation getDOMImplementation(String features);
|
||||
|
||||
/**
|
||||
* A method to request a list of DOM implementations that support the
|
||||
* specified features and versions, as specified in .
|
||||
* @param features A string that specifies which features and versions
|
||||
* are required. This is a space separated list in which each feature
|
||||
* is specified by its name optionally followed by a space and a
|
||||
* version number. This is something like: "XML 3.0 Traversal +Events
|
||||
* 2.0"
|
||||
* @return A list of DOM implementations that support the desired
|
||||
* features.
|
||||
*/
|
||||
public DOMImplementationList getDOMImplementationList(String features);
|
||||
|
||||
}
|
58
libjava/external/w3c_dom/org/w3c/dom/DOMLocator.java
vendored
Normal file
58
libjava/external/w3c_dom/org/w3c/dom/DOMLocator.java
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* <code>DOMLocator</code> is an interface that describes a location (e.g.
|
||||
* where an error occurred).
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface DOMLocator {
|
||||
/**
|
||||
* The line number this locator is pointing to, or <code>-1</code> if
|
||||
* there is no column number available.
|
||||
*/
|
||||
public int getLineNumber();
|
||||
|
||||
/**
|
||||
* The column number this locator is pointing to, or <code>-1</code> if
|
||||
* there is no column number available.
|
||||
*/
|
||||
public int getColumnNumber();
|
||||
|
||||
/**
|
||||
* The byte offset into the input source this locator is pointing to or
|
||||
* <code>-1</code> if there is no byte offset available.
|
||||
*/
|
||||
public int getByteOffset();
|
||||
|
||||
/**
|
||||
* The UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], offset into the input source this locator is pointing to or
|
||||
* <code>-1</code> if there is no UTF-16 offset available.
|
||||
*/
|
||||
public int getUtf16Offset();
|
||||
|
||||
/**
|
||||
* The node this locator is pointing to, or <code>null</code> if no node
|
||||
* is available.
|
||||
*/
|
||||
public Node getRelatedNode();
|
||||
|
||||
/**
|
||||
* The URI this locator is pointing to, or <code>null</code> if no URI is
|
||||
* available.
|
||||
*/
|
||||
public String getUri();
|
||||
|
||||
}
|
50
libjava/external/w3c_dom/org/w3c/dom/DOMStringList.java
vendored
Normal file
50
libjava/external/w3c_dom/org/w3c/dom/DOMStringList.java
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>DOMStringList</code> interface provides the abstraction of an
|
||||
* ordered collection of <code>DOMString</code> values, without defining or
|
||||
* constraining how this collection is implemented. The items in the
|
||||
* <code>DOMStringList</code> are accessible via an integral index, starting
|
||||
* from 0.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface DOMStringList {
|
||||
/**
|
||||
* Returns the <code>index</code>th item in the collection. If
|
||||
* <code>index</code> is greater than or equal to the number of
|
||||
* <code>DOMString</code>s in the list, this returns <code>null</code>.
|
||||
* @param index Index into the collection.
|
||||
* @return The <code>DOMString</code> at the <code>index</code>th
|
||||
* position in the <code>DOMStringList</code>, or <code>null</code> if
|
||||
* that is not a valid index.
|
||||
*/
|
||||
public String item(int index);
|
||||
|
||||
/**
|
||||
* The number of <code>DOMString</code>s in the list. The range of valid
|
||||
* child node indices is 0 to <code>length-1</code> inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Test if a string is part of this <code>DOMStringList</code>.
|
||||
* @param str The string to look for.
|
||||
* @return <code>true</code> if the string has been found,
|
||||
* <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean contains(String str);
|
||||
|
||||
}
|
814
libjava/external/w3c_dom/org/w3c/dom/Document.java
vendored
Normal file
814
libjava/external/w3c_dom/org/w3c/dom/Document.java
vendored
Normal file
@ -0,0 +1,814 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>Document</code> interface represents the entire HTML or XML
|
||||
* document. Conceptually, it is the root of the document tree, and provides
|
||||
* the primary access to the document's data.
|
||||
* <p>Since elements, text nodes, comments, processing instructions, etc.
|
||||
* cannot exist outside the context of a <code>Document</code>, the
|
||||
* <code>Document</code> interface also contains the factory methods needed
|
||||
* to create these objects. The <code>Node</code> objects created have a
|
||||
* <code>ownerDocument</code> attribute which associates them with the
|
||||
* <code>Document</code> within whose context they were created.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface Document extends Node {
|
||||
/**
|
||||
* The Document Type Declaration (see <code>DocumentType</code>)
|
||||
* associated with this document. For XML documents without a document
|
||||
* type declaration this returns <code>null</code>. For HTML documents,
|
||||
* a <code>DocumentType</code> object may be returned, independently of
|
||||
* the presence or absence of document type declaration in the HTML
|
||||
* document.
|
||||
* <br>This provides direct access to the <code>DocumentType</code> node,
|
||||
* child node of this <code>Document</code>. This node can be set at
|
||||
* document creation time and later changed through the use of child
|
||||
* nodes manipulation methods, such as <code>Node.insertBefore</code>,
|
||||
* or <code>Node.replaceChild</code>. Note, however, that while some
|
||||
* implementations may instantiate different types of
|
||||
* <code>Document</code> objects supporting additional features than the
|
||||
* "Core", such as "HTML" [<a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>DOM Level 2 HTML</a>]
|
||||
* , based on the <code>DocumentType</code> specified at creation time,
|
||||
* changing it afterwards is very unlikely to result in a change of the
|
||||
* features supported.
|
||||
* @version DOM Level 3
|
||||
*/
|
||||
public DocumentType getDoctype();
|
||||
|
||||
/**
|
||||
* The <code>DOMImplementation</code> object that handles this document. A
|
||||
* DOM application may use objects from multiple implementations.
|
||||
*/
|
||||
public DOMImplementation getImplementation();
|
||||
|
||||
/**
|
||||
* This is a convenience attribute that allows direct access to the child
|
||||
* node that is the document element of the document.
|
||||
*/
|
||||
public Element getDocumentElement();
|
||||
|
||||
/**
|
||||
* Creates an element of the type specified. Note that the instance
|
||||
* returned implements the <code>Element</code> interface, so attributes
|
||||
* can be specified directly on the returned object.
|
||||
* <br>In addition, if there are known attributes with default values,
|
||||
* <code>Attr</code> nodes representing them are automatically created
|
||||
* and attached to the element.
|
||||
* <br>To create an element with a qualified name and namespace URI, use
|
||||
* the <code>createElementNS</code> method.
|
||||
* @param tagName The name of the element type to instantiate. For XML,
|
||||
* this is case-sensitive, otherwise it depends on the
|
||||
* case-sensitivity of the markup language in use. In that case, the
|
||||
* name is mapped to the canonical form of that markup by the DOM
|
||||
* implementation.
|
||||
* @return A new <code>Element</code> object with the
|
||||
* <code>nodeName</code> attribute set to <code>tagName</code>, and
|
||||
* <code>localName</code>, <code>prefix</code>, and
|
||||
* <code>namespaceURI</code> set to <code>null</code>.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified name is not an XML
|
||||
* name according to the XML version in use specified in the
|
||||
* <code>Document.xmlVersion</code> attribute.
|
||||
*/
|
||||
public Element createElement(String tagName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates an empty <code>DocumentFragment</code> object.
|
||||
* @return A new <code>DocumentFragment</code>.
|
||||
*/
|
||||
public DocumentFragment createDocumentFragment();
|
||||
|
||||
/**
|
||||
* Creates a <code>Text</code> node given the specified string.
|
||||
* @param data The data for the node.
|
||||
* @return The new <code>Text</code> object.
|
||||
*/
|
||||
public Text createTextNode(String data);
|
||||
|
||||
/**
|
||||
* Creates a <code>Comment</code> node given the specified string.
|
||||
* @param data The data for the node.
|
||||
* @return The new <code>Comment</code> object.
|
||||
*/
|
||||
public Comment createComment(String data);
|
||||
|
||||
/**
|
||||
* Creates a <code>CDATASection</code> node whose value is the specified
|
||||
* string.
|
||||
* @param data The data for the <code>CDATASection</code> contents.
|
||||
* @return The new <code>CDATASection</code> object.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
|
||||
*/
|
||||
public CDATASection createCDATASection(String data)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates a <code>ProcessingInstruction</code> node given the specified
|
||||
* name and data strings.
|
||||
* @param target The target part of the processing instruction.Unlike
|
||||
* <code>Document.createElementNS</code> or
|
||||
* <code>Document.createAttributeNS</code>, no namespace well-formed
|
||||
* checking is done on the target name. Applications should invoke
|
||||
* <code>Document.normalizeDocument()</code> with the parameter "
|
||||
* namespaces" set to <code>true</code> in order to ensure that the
|
||||
* target name is namespace well-formed.
|
||||
* @param data The data for the node.
|
||||
* @return The new <code>ProcessingInstruction</code> object.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified target is not an XML
|
||||
* name according to the XML version in use specified in the
|
||||
* <code>Document.xmlVersion</code> attribute.
|
||||
* <br>NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
|
||||
*/
|
||||
public ProcessingInstruction createProcessingInstruction(String target,
|
||||
String data)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates an <code>Attr</code> of the given name. Note that the
|
||||
* <code>Attr</code> instance can then be set on an <code>Element</code>
|
||||
* using the <code>setAttributeNode</code> method.
|
||||
* <br>To create an attribute with a qualified name and namespace URI, use
|
||||
* the <code>createAttributeNS</code> method.
|
||||
* @param name The name of the attribute.
|
||||
* @return A new <code>Attr</code> object with the <code>nodeName</code>
|
||||
* attribute set to <code>name</code>, and <code>localName</code>,
|
||||
* <code>prefix</code>, and <code>namespaceURI</code> set to
|
||||
* <code>null</code>. The value of the attribute is the empty string.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified name is not an XML
|
||||
* name according to the XML version in use specified in the
|
||||
* <code>Document.xmlVersion</code> attribute.
|
||||
*/
|
||||
public Attr createAttribute(String name)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates an <code>EntityReference</code> object. In addition, if the
|
||||
* referenced entity is known, the child list of the
|
||||
* <code>EntityReference</code> node is made the same as that of the
|
||||
* corresponding <code>Entity</code> node.
|
||||
* <p ><b>Note:</b> If any descendant of the <code>Entity</code> node has
|
||||
* an unbound namespace prefix, the corresponding descendant of the
|
||||
* created <code>EntityReference</code> node is also unbound; (its
|
||||
* <code>namespaceURI</code> is <code>null</code>). The DOM Level 2 and
|
||||
* 3 do not support any mechanism to resolve namespace prefixes in this
|
||||
* case.
|
||||
* @param name The name of the entity to reference.Unlike
|
||||
* <code>Document.createElementNS</code> or
|
||||
* <code>Document.createAttributeNS</code>, no namespace well-formed
|
||||
* checking is done on the entity name. Applications should invoke
|
||||
* <code>Document.normalizeDocument()</code> with the parameter "
|
||||
* namespaces" set to <code>true</code> in order to ensure that the
|
||||
* entity name is namespace well-formed.
|
||||
* @return The new <code>EntityReference</code> object.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified name is not an XML
|
||||
* name according to the XML version in use specified in the
|
||||
* <code>Document.xmlVersion</code> attribute.
|
||||
* <br>NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
|
||||
*/
|
||||
public EntityReference createEntityReference(String name)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns a <code>NodeList</code> of all the <code>Elements</code> in
|
||||
* document order with a given tag name and are contained in the
|
||||
* document.
|
||||
* @param tagname The name of the tag to match on. The special value "*"
|
||||
* matches all tags. For XML, the <code>tagname</code> parameter is
|
||||
* case-sensitive, otherwise it depends on the case-sensitivity of the
|
||||
* markup language in use.
|
||||
* @return A new <code>NodeList</code> object containing all the matched
|
||||
* <code>Elements</code>.
|
||||
*/
|
||||
public NodeList getElementsByTagName(String tagname);
|
||||
|
||||
/**
|
||||
* Imports a node from another document to this document, without altering
|
||||
* or removing the source node from the original document; this method
|
||||
* creates a new copy of the source node. The returned node has no
|
||||
* parent; (<code>parentNode</code> is <code>null</code>).
|
||||
* <br>For all nodes, importing a node creates a node object owned by the
|
||||
* importing document, with attribute values identical to the source
|
||||
* node's <code>nodeName</code> and <code>nodeType</code>, plus the
|
||||
* attributes related to namespaces (<code>prefix</code>,
|
||||
* <code>localName</code>, and <code>namespaceURI</code>). As in the
|
||||
* <code>cloneNode</code> operation, the source node is not altered.
|
||||
* User data associated to the imported node is not carried over.
|
||||
* However, if any <code>UserDataHandlers</code> has been specified
|
||||
* along with the associated data these handlers will be called with the
|
||||
* appropriate parameters before this method returns.
|
||||
* <br>Additional information is copied as appropriate to the
|
||||
* <code>nodeType</code>, attempting to mirror the behavior expected if
|
||||
* a fragment of XML or HTML source was copied from one document to
|
||||
* another, recognizing that the two documents may have different DTDs
|
||||
* in the XML case. The following list describes the specifics for each
|
||||
* type of node.
|
||||
* <dl>
|
||||
* <dt>ATTRIBUTE_NODE</dt>
|
||||
* <dd>The <code>ownerElement</code> attribute
|
||||
* is set to <code>null</code> and the <code>specified</code> flag is
|
||||
* set to <code>true</code> on the generated <code>Attr</code>. The
|
||||
* descendants of the source <code>Attr</code> are recursively imported
|
||||
* and the resulting nodes reassembled to form the corresponding subtree.
|
||||
* Note that the <code>deep</code> parameter has no effect on
|
||||
* <code>Attr</code> nodes; they always carry their children with them
|
||||
* when imported.</dd>
|
||||
* <dt>DOCUMENT_FRAGMENT_NODE</dt>
|
||||
* <dd>If the <code>deep</code> option
|
||||
* was set to <code>true</code>, the descendants of the source
|
||||
* <code>DocumentFragment</code> are recursively imported and the
|
||||
* resulting nodes reassembled under the imported
|
||||
* <code>DocumentFragment</code> to form the corresponding subtree.
|
||||
* Otherwise, this simply generates an empty
|
||||
* <code>DocumentFragment</code>.</dd>
|
||||
* <dt>DOCUMENT_NODE</dt>
|
||||
* <dd><code>Document</code>
|
||||
* nodes cannot be imported.</dd>
|
||||
* <dt>DOCUMENT_TYPE_NODE</dt>
|
||||
* <dd><code>DocumentType</code>
|
||||
* nodes cannot be imported.</dd>
|
||||
* <dt>ELEMENT_NODE</dt>
|
||||
* <dd><em>Specified</em> attribute nodes of the source element are imported, and the generated
|
||||
* <code>Attr</code> nodes are attached to the generated
|
||||
* <code>Element</code>. Default attributes are <em>not</em> copied, though if the document being imported into defines default
|
||||
* attributes for this element name, those are assigned. If the
|
||||
* <code>importNode</code> <code>deep</code> parameter was set to
|
||||
* <code>true</code>, the descendants of the source element are
|
||||
* recursively imported and the resulting nodes reassembled to form the
|
||||
* corresponding subtree.</dd>
|
||||
* <dt>ENTITY_NODE</dt>
|
||||
* <dd><code>Entity</code> nodes can be
|
||||
* imported, however in the current release of the DOM the
|
||||
* <code>DocumentType</code> is readonly. Ability to add these imported
|
||||
* nodes to a <code>DocumentType</code> will be considered for addition
|
||||
* to a future release of the DOM.On import, the <code>publicId</code>,
|
||||
* <code>systemId</code>, and <code>notationName</code> attributes are
|
||||
* copied. If a <code>deep</code> import is requested, the descendants
|
||||
* of the the source <code>Entity</code> are recursively imported and
|
||||
* the resulting nodes reassembled to form the corresponding subtree.</dd>
|
||||
* <dt>
|
||||
* ENTITY_REFERENCE_NODE</dt>
|
||||
* <dd>Only the <code>EntityReference</code> itself is
|
||||
* copied, even if a <code>deep</code> import is requested, since the
|
||||
* source and destination documents might have defined the entity
|
||||
* differently. If the document being imported into provides a
|
||||
* definition for this entity name, its value is assigned.</dd>
|
||||
* <dt>NOTATION_NODE</dt>
|
||||
* <dd>
|
||||
* <code>Notation</code> nodes can be imported, however in the current
|
||||
* release of the DOM the <code>DocumentType</code> is readonly. Ability
|
||||
* to add these imported nodes to a <code>DocumentType</code> will be
|
||||
* considered for addition to a future release of the DOM.On import, the
|
||||
* <code>publicId</code> and <code>systemId</code> attributes are copied.
|
||||
* Note that the <code>deep</code> parameter has no effect on this type
|
||||
* of nodes since they cannot have any children.</dd>
|
||||
* <dt>
|
||||
* PROCESSING_INSTRUCTION_NODE</dt>
|
||||
* <dd>The imported node copies its
|
||||
* <code>target</code> and <code>data</code> values from those of the
|
||||
* source node.Note that the <code>deep</code> parameter has no effect
|
||||
* on this type of nodes since they cannot have any children.</dd>
|
||||
* <dt>TEXT_NODE,
|
||||
* CDATA_SECTION_NODE, COMMENT_NODE</dt>
|
||||
* <dd>These three types of nodes inheriting
|
||||
* from <code>CharacterData</code> copy their <code>data</code> and
|
||||
* <code>length</code> attributes from those of the source node.Note
|
||||
* that the <code>deep</code> parameter has no effect on these types of
|
||||
* nodes since they cannot have any children.</dd>
|
||||
* </dl>
|
||||
* @param importedNode The node to import.
|
||||
* @param deep If <code>true</code>, recursively import the subtree under
|
||||
* the specified node; if <code>false</code>, import only the node
|
||||
* itself, as explained above. This has no effect on nodes that cannot
|
||||
* have any children, and on <code>Attr</code>, and
|
||||
* <code>EntityReference</code> nodes.
|
||||
* @return The imported node that belongs to this <code>Document</code>.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: Raised if the type of node being imported is not
|
||||
* supported.
|
||||
* <br>INVALID_CHARACTER_ERR: Raised if one of the imported names is not
|
||||
* an XML name according to the XML version in use specified in the
|
||||
* <code>Document.xmlVersion</code> attribute. This may happen when
|
||||
* importing an XML 1.1 [<a href='http://www.w3.org/TR/2004/REC-xml11-20040204/'>XML 1.1</a>] element
|
||||
* into an XML 1.0 document, for instance.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Node importNode(Node importedNode,
|
||||
boolean deep)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates an element of the given qualified name and namespace URI.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value <code>null</code> as the
|
||||
* namespaceURI parameter for methods if they wish to have no namespace.
|
||||
* @param namespaceURI The namespace URI of the element to create.
|
||||
* @param qualifiedName The qualified name of the element type to
|
||||
* instantiate.
|
||||
* @return A new <code>Element</code> object with the following
|
||||
* attributes:
|
||||
* <table border='1' cellpadding='3'>
|
||||
* <tr>
|
||||
* <th>Attribute</th>
|
||||
* <th>Value</th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.nodeName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.namespaceURI</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>namespaceURI</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.prefix</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>prefix, extracted
|
||||
* from <code>qualifiedName</code>, or <code>null</code> if there is
|
||||
* no prefix</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.localName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>local name, extracted from
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Element.tagName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified
|
||||
* <code>qualifiedName</code> is not an XML name according to the XML
|
||||
* version in use specified in the <code>Document.xmlVersion</code>
|
||||
* attribute.
|
||||
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is a
|
||||
* malformed qualified name, if the <code>qualifiedName</code> has a
|
||||
* prefix and the <code>namespaceURI</code> is <code>null</code>, or
|
||||
* if the <code>qualifiedName</code> has a prefix that is "xml" and
|
||||
* the <code>namespaceURI</code> is different from "<a href='http://www.w3.org/XML/1998/namespace'>
|
||||
* http://www.w3.org/XML/1998/namespace</a>" [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , or if the <code>qualifiedName</code> or its prefix is "xmlns" and
|
||||
* the <code>namespaceURI</code> is different from "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>", or if the <code>namespaceURI</code> is "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>" and neither the <code>qualifiedName</code> nor its prefix is "xmlns".
|
||||
* <br>NOT_SUPPORTED_ERR: Always thrown if the current document does not
|
||||
* support the <code>"XML"</code> feature, since namespaces were
|
||||
* defined by XML.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Element createElementNS(String namespaceURI,
|
||||
String qualifiedName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates an attribute of the given qualified name and namespace URI.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value <code>null</code> as the
|
||||
* <code>namespaceURI</code> parameter for methods if they wish to have
|
||||
* no namespace.
|
||||
* @param namespaceURI The namespace URI of the attribute to create.
|
||||
* @param qualifiedName The qualified name of the attribute to
|
||||
* instantiate.
|
||||
* @return A new <code>Attr</code> object with the following attributes:
|
||||
* <table border='1' cellpadding='3'>
|
||||
* <tr>
|
||||
* <th>
|
||||
* Attribute</th>
|
||||
* <th>Value</th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.nodeName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>qualifiedName</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>Node.namespaceURI</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>namespaceURI</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>Node.prefix</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>prefix, extracted from
|
||||
* <code>qualifiedName</code>, or <code>null</code> if there is no
|
||||
* prefix</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.localName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>local name, extracted from
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Attr.name</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.nodeValue</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>the empty
|
||||
* string</td>
|
||||
* </tr>
|
||||
* </table>
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified
|
||||
* <code>qualifiedName</code> is not an XML name according to the XML
|
||||
* version in use specified in the <code>Document.xmlVersion</code>
|
||||
* attribute.
|
||||
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is a
|
||||
* malformed qualified name, if the <code>qualifiedName</code> has a
|
||||
* prefix and the <code>namespaceURI</code> is <code>null</code>, if
|
||||
* the <code>qualifiedName</code> has a prefix that is "xml" and the
|
||||
* <code>namespaceURI</code> is different from "<a href='http://www.w3.org/XML/1998/namespace'>
|
||||
* http://www.w3.org/XML/1998/namespace</a>", if the <code>qualifiedName</code> or its prefix is "xmlns" and the
|
||||
* <code>namespaceURI</code> is different from "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>", or if the <code>namespaceURI</code> is "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>" and neither the <code>qualifiedName</code> nor its prefix is "xmlns".
|
||||
* <br>NOT_SUPPORTED_ERR: Always thrown if the current document does not
|
||||
* support the <code>"XML"</code> feature, since namespaces were
|
||||
* defined by XML.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Attr createAttributeNS(String namespaceURI,
|
||||
String qualifiedName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns a <code>NodeList</code> of all the <code>Elements</code> with a
|
||||
* given local name and namespace URI in document order.
|
||||
* @param namespaceURI The namespace URI of the elements to match on. The
|
||||
* special value <code>"*"</code> matches all namespaces.
|
||||
* @param localName The local name of the elements to match on. The
|
||||
* special value "*" matches all local names.
|
||||
* @return A new <code>NodeList</code> object containing all the matched
|
||||
* <code>Elements</code>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public NodeList getElementsByTagNameNS(String namespaceURI,
|
||||
String localName);
|
||||
|
||||
/**
|
||||
* Returns the <code>Element</code> that has an ID attribute with the
|
||||
* given value. If no such element exists, this returns <code>null</code>
|
||||
* . If more than one element has an ID attribute with that value, what
|
||||
* is returned is undefined.
|
||||
* <br> The DOM implementation is expected to use the attribute
|
||||
* <code>Attr.isId</code> to determine if an attribute is of type ID.
|
||||
* <p ><b>Note:</b> Attributes with the name "ID" or "id" are not of type
|
||||
* ID unless so defined.
|
||||
* @param elementId The unique <code>id</code> value for an element.
|
||||
* @return The matching element or <code>null</code> if there is none.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Element getElementById(String elementId);
|
||||
|
||||
/**
|
||||
* An attribute specifying the encoding used for this document at the time
|
||||
* of the parsing. This is <code>null</code> when it is not known, such
|
||||
* as when the <code>Document</code> was created in memory.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getInputEncoding();
|
||||
|
||||
/**
|
||||
* An attribute specifying, as part of the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#NT-XMLDecl'>XML declaration</a>, the encoding of this document. This is <code>null</code> when
|
||||
* unspecified or when it is not known, such as when the
|
||||
* <code>Document</code> was created in memory.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getXmlEncoding();
|
||||
|
||||
/**
|
||||
* An attribute specifying, as part of the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#NT-XMLDecl'>XML declaration</a>, whether this document is standalone. This is <code>false</code> when
|
||||
* unspecified.
|
||||
* <p ><b>Note:</b> No verification is done on the value when setting
|
||||
* this attribute. Applications should use
|
||||
* <code>Document.normalizeDocument()</code> with the "validate"
|
||||
* parameter to verify if the value matches the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#sec-rmd'>validity
|
||||
* constraint for standalone document declaration</a> as defined in [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>].
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public boolean getXmlStandalone();
|
||||
/**
|
||||
* An attribute specifying, as part of the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#NT-XMLDecl'>XML declaration</a>, whether this document is standalone. This is <code>false</code> when
|
||||
* unspecified.
|
||||
* <p ><b>Note:</b> No verification is done on the value when setting
|
||||
* this attribute. Applications should use
|
||||
* <code>Document.normalizeDocument()</code> with the "validate"
|
||||
* parameter to verify if the value matches the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#sec-rmd'>validity
|
||||
* constraint for standalone document declaration</a> as defined in [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>].
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: Raised if this document does not support the
|
||||
* "XML" feature.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void setXmlStandalone(boolean xmlStandalone)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* An attribute specifying, as part of the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#NT-XMLDecl'>XML declaration</a>, the version number of this document. If there is no declaration and if
|
||||
* this document supports the "XML" feature, the value is
|
||||
* <code>"1.0"</code>. If this document does not support the "XML"
|
||||
* feature, the value is always <code>null</code>. Changing this
|
||||
* attribute will affect methods that check for invalid characters in
|
||||
* XML names. Application should invoke
|
||||
* <code>Document.normalizeDocument()</code> in order to check for
|
||||
* invalid characters in the <code>Node</code>s that are already part of
|
||||
* this <code>Document</code>.
|
||||
* <br> DOM applications may use the
|
||||
* <code>DOMImplementation.hasFeature(feature, version)</code> method
|
||||
* with parameter values "XMLVersion" and "1.0" (respectively) to
|
||||
* determine if an implementation supports [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]. DOM
|
||||
* applications may use the same method with parameter values
|
||||
* "XMLVersion" and "1.1" (respectively) to determine if an
|
||||
* implementation supports [<a href='http://www.w3.org/TR/2004/REC-xml11-20040204/'>XML 1.1</a>]. In both
|
||||
* cases, in order to support XML, an implementation must also support
|
||||
* the "XML" feature defined in this specification. <code>Document</code>
|
||||
* objects supporting a version of the "XMLVersion" feature must not
|
||||
* raise a <code>NOT_SUPPORTED_ERR</code> exception for the same version
|
||||
* number when using <code>Document.xmlVersion</code>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getXmlVersion();
|
||||
/**
|
||||
* An attribute specifying, as part of the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#NT-XMLDecl'>XML declaration</a>, the version number of this document. If there is no declaration and if
|
||||
* this document supports the "XML" feature, the value is
|
||||
* <code>"1.0"</code>. If this document does not support the "XML"
|
||||
* feature, the value is always <code>null</code>. Changing this
|
||||
* attribute will affect methods that check for invalid characters in
|
||||
* XML names. Application should invoke
|
||||
* <code>Document.normalizeDocument()</code> in order to check for
|
||||
* invalid characters in the <code>Node</code>s that are already part of
|
||||
* this <code>Document</code>.
|
||||
* <br> DOM applications may use the
|
||||
* <code>DOMImplementation.hasFeature(feature, version)</code> method
|
||||
* with parameter values "XMLVersion" and "1.0" (respectively) to
|
||||
* determine if an implementation supports [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]. DOM
|
||||
* applications may use the same method with parameter values
|
||||
* "XMLVersion" and "1.1" (respectively) to determine if an
|
||||
* implementation supports [<a href='http://www.w3.org/TR/2004/REC-xml11-20040204/'>XML 1.1</a>]. In both
|
||||
* cases, in order to support XML, an implementation must also support
|
||||
* the "XML" feature defined in this specification. <code>Document</code>
|
||||
* objects supporting a version of the "XMLVersion" feature must not
|
||||
* raise a <code>NOT_SUPPORTED_ERR</code> exception for the same version
|
||||
* number when using <code>Document.xmlVersion</code>.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
|
||||
* not supported by this <code>Document</code> or if this document
|
||||
* does not support the "XML" feature.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void setXmlVersion(String xmlVersion)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* An attribute specifying whether error checking is enforced or not. When
|
||||
* set to <code>false</code>, the implementation is free to not test
|
||||
* every possible error case normally defined on DOM operations, and not
|
||||
* raise any <code>DOMException</code> on DOM operations or report
|
||||
* errors while using <code>Document.normalizeDocument()</code>. In case
|
||||
* of error, the behavior is undefined. This attribute is
|
||||
* <code>true</code> by default.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public boolean getStrictErrorChecking();
|
||||
/**
|
||||
* An attribute specifying whether error checking is enforced or not. When
|
||||
* set to <code>false</code>, the implementation is free to not test
|
||||
* every possible error case normally defined on DOM operations, and not
|
||||
* raise any <code>DOMException</code> on DOM operations or report
|
||||
* errors while using <code>Document.normalizeDocument()</code>. In case
|
||||
* of error, the behavior is undefined. This attribute is
|
||||
* <code>true</code> by default.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void setStrictErrorChecking(boolean strictErrorChecking);
|
||||
|
||||
/**
|
||||
* The location of the document or <code>null</code> if undefined or if
|
||||
* the <code>Document</code> was created using
|
||||
* <code>DOMImplementation.createDocument</code>. No lexical checking is
|
||||
* performed when setting this attribute; this could result in a
|
||||
* <code>null</code> value returned when using <code>Node.baseURI</code>
|
||||
* .
|
||||
* <br> Beware that when the <code>Document</code> supports the feature
|
||||
* "HTML" [<a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>DOM Level 2 HTML</a>]
|
||||
* , the href attribute of the HTML BASE element takes precedence over
|
||||
* this attribute when computing <code>Node.baseURI</code>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getDocumentURI();
|
||||
/**
|
||||
* The location of the document or <code>null</code> if undefined or if
|
||||
* the <code>Document</code> was created using
|
||||
* <code>DOMImplementation.createDocument</code>. No lexical checking is
|
||||
* performed when setting this attribute; this could result in a
|
||||
* <code>null</code> value returned when using <code>Node.baseURI</code>
|
||||
* .
|
||||
* <br> Beware that when the <code>Document</code> supports the feature
|
||||
* "HTML" [<a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>DOM Level 2 HTML</a>]
|
||||
* , the href attribute of the HTML BASE element takes precedence over
|
||||
* this attribute when computing <code>Node.baseURI</code>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void setDocumentURI(String documentURI);
|
||||
|
||||
/**
|
||||
* Attempts to adopt a node from another document to this document. If
|
||||
* supported, it changes the <code>ownerDocument</code> of the source
|
||||
* node, its children, as well as the attached attribute nodes if there
|
||||
* are any. If the source node has a parent it is first removed from the
|
||||
* child list of its parent. This effectively allows moving a subtree
|
||||
* from one document to another (unlike <code>importNode()</code> which
|
||||
* create a copy of the source node instead of moving it). When it
|
||||
* fails, applications should use <code>Document.importNode()</code>
|
||||
* instead. Note that if the adopted node is already part of this
|
||||
* document (i.e. the source and target document are the same), this
|
||||
* method still has the effect of removing the source node from the
|
||||
* child list of its parent, if any. The following list describes the
|
||||
* specifics for each type of node.
|
||||
* <dl>
|
||||
* <dt>ATTRIBUTE_NODE</dt>
|
||||
* <dd>The
|
||||
* <code>ownerElement</code> attribute is set to <code>null</code> and
|
||||
* the <code>specified</code> flag is set to <code>true</code> on the
|
||||
* adopted <code>Attr</code>. The descendants of the source
|
||||
* <code>Attr</code> are recursively adopted.</dd>
|
||||
* <dt>DOCUMENT_FRAGMENT_NODE</dt>
|
||||
* <dd>The
|
||||
* descendants of the source node are recursively adopted.</dd>
|
||||
* <dt>DOCUMENT_NODE</dt>
|
||||
* <dd>
|
||||
* <code>Document</code> nodes cannot be adopted.</dd>
|
||||
* <dt>DOCUMENT_TYPE_NODE</dt>
|
||||
* <dd>
|
||||
* <code>DocumentType</code> nodes cannot be adopted.</dd>
|
||||
* <dt>ELEMENT_NODE</dt>
|
||||
* <dd><em>Specified</em> attribute nodes of the source element are adopted. Default attributes
|
||||
* are discarded, though if the document being adopted into defines
|
||||
* default attributes for this element name, those are assigned. The
|
||||
* descendants of the source element are recursively adopted.</dd>
|
||||
* <dt>ENTITY_NODE</dt>
|
||||
* <dd>
|
||||
* <code>Entity</code> nodes cannot be adopted.</dd>
|
||||
* <dt>ENTITY_REFERENCE_NODE</dt>
|
||||
* <dd>Only
|
||||
* the <code>EntityReference</code> node itself is adopted, the
|
||||
* descendants are discarded, since the source and destination documents
|
||||
* might have defined the entity differently. If the document being
|
||||
* imported into provides a definition for this entity name, its value
|
||||
* is assigned.</dd>
|
||||
* <dt>NOTATION_NODE</dt>
|
||||
* <dd><code>Notation</code> nodes cannot be
|
||||
* adopted.</dd>
|
||||
* <dt>PROCESSING_INSTRUCTION_NODE, TEXT_NODE, CDATA_SECTION_NODE,
|
||||
* COMMENT_NODE</dt>
|
||||
* <dd>These nodes can all be adopted. No specifics.</dd>
|
||||
* </dl>
|
||||
* <p ><b>Note:</b> Since it does not create new nodes unlike the
|
||||
* <code>Document.importNode()</code> method, this method does not raise
|
||||
* an <code>INVALID_CHARACTER_ERR</code> exception, and applications
|
||||
* should use the <code>Document.normalizeDocument()</code> method to
|
||||
* check if an imported name is not an XML name according to the XML
|
||||
* version in use.
|
||||
* @param source The node to move into this document.
|
||||
* @return The adopted node, or <code>null</code> if this operation
|
||||
* fails, such as when the source node comes from a different
|
||||
* implementation.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: Raised if the source node is of type
|
||||
* <code>DOCUMENT</code>, <code>DOCUMENT_TYPE</code>.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised when the source node is
|
||||
* readonly.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public Node adoptNode(Node source)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The configuration used when <code>Document.normalizeDocument()</code>
|
||||
* is invoked.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public DOMConfiguration getDomConfig();
|
||||
|
||||
/**
|
||||
* This method acts as if the document was going through a save and load
|
||||
* cycle, putting the document in a "normal" form. As a consequence,
|
||||
* this method updates the replacement tree of
|
||||
* <code>EntityReference</code> nodes and normalizes <code>Text</code>
|
||||
* nodes, as defined in the method <code>Node.normalize()</code>.
|
||||
* <br> Otherwise, the actual result depends on the features being set on
|
||||
* the <code>Document.domConfig</code> object and governing what
|
||||
* operations actually take place. Noticeably this method could also
|
||||
* make the document namespace well-formed according to the algorithm
|
||||
* described in , check the character normalization, remove the
|
||||
* <code>CDATASection</code> nodes, etc. See
|
||||
* <code>DOMConfiguration</code> for details.
|
||||
* <pre>// Keep in the document
|
||||
* the information defined // in the XML Information Set (Java example)
|
||||
* DOMConfiguration docConfig = myDocument.getDomConfig();
|
||||
* docConfig.setParameter("infoset", Boolean.TRUE);
|
||||
* myDocument.normalizeDocument();</pre>
|
||||
*
|
||||
* <br>Mutation events, when supported, are generated to reflect the
|
||||
* changes occurring on the document.
|
||||
* <br> If errors occur during the invocation of this method, such as an
|
||||
* attempt to update a read-only node or a <code>Node.nodeName</code>
|
||||
* contains an invalid character according to the XML version in use,
|
||||
* errors or warnings (<code>DOMError.SEVERITY_ERROR</code> or
|
||||
* <code>DOMError.SEVERITY_WARNING</code>) will be reported using the
|
||||
* <code>DOMErrorHandler</code> object associated with the "error-handler
|
||||
* " parameter. Note this method might also report fatal errors (
|
||||
* <code>DOMError.SEVERITY_FATAL_ERROR</code>) if an implementation
|
||||
* cannot recover from an error.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void normalizeDocument();
|
||||
|
||||
/**
|
||||
* Rename an existing node of type <code>ELEMENT_NODE</code> or
|
||||
* <code>ATTRIBUTE_NODE</code>.
|
||||
* <br>When possible this simply changes the name of the given node,
|
||||
* otherwise this creates a new node with the specified name and
|
||||
* replaces the existing node with the new node as described below.
|
||||
* <br>If simply changing the name of the given node is not possible, the
|
||||
* following operations are performed: a new node is created, any
|
||||
* registered event listener is registered on the new node, any user
|
||||
* data attached to the old node is removed from that node, the old node
|
||||
* is removed from its parent if it has one, the children are moved to
|
||||
* the new node, if the renamed node is an <code>Element</code> its
|
||||
* attributes are moved to the new node, the new node is inserted at the
|
||||
* position the old node used to have in its parent's child nodes list
|
||||
* if it has one, the user data that was attached to the old node is
|
||||
* attached to the new node.
|
||||
* <br>When the node being renamed is an <code>Element</code> only the
|
||||
* specified attributes are moved, default attributes originated from
|
||||
* the DTD are updated according to the new element name. In addition,
|
||||
* the implementation may update default attributes from other schemas.
|
||||
* Applications should use <code>Document.normalizeDocument()</code> to
|
||||
* guarantee these attributes are up-to-date.
|
||||
* <br>When the node being renamed is an <code>Attr</code> that is
|
||||
* attached to an <code>Element</code>, the node is first removed from
|
||||
* the <code>Element</code> attributes map. Then, once renamed, either
|
||||
* by modifying the existing node or creating a new one as described
|
||||
* above, it is put back.
|
||||
* <br>In addition,
|
||||
* <ul>
|
||||
* <li> a user data event <code>NODE_RENAMED</code> is fired,
|
||||
* </li>
|
||||
* <li>
|
||||
* when the implementation supports the feature "MutationNameEvents",
|
||||
* each mutation operation involved in this method fires the appropriate
|
||||
* event, and in the end the event {
|
||||
* <code>http://www.w3.org/2001/xml-events</code>,
|
||||
* <code>DOMElementNameChanged</code>} or {
|
||||
* <code>http://www.w3.org/2001/xml-events</code>,
|
||||
* <code>DOMAttributeNameChanged</code>} is fired.
|
||||
* </li>
|
||||
* </ul>
|
||||
* @param n The node to rename.
|
||||
* @param namespaceURI The new namespace URI.
|
||||
* @param qualifiedName The new qualified name.
|
||||
* @return The renamed node. This is either the specified node or the new
|
||||
* node that was created to replace the specified node.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: Raised when the type of the specified node is
|
||||
* neither <code>ELEMENT_NODE</code> nor <code>ATTRIBUTE_NODE</code>,
|
||||
* or if the implementation does not support the renaming of the
|
||||
* document element.
|
||||
* <br>INVALID_CHARACTER_ERR: Raised if the new qualified name is not an
|
||||
* XML name according to the XML version in use specified in the
|
||||
* <code>Document.xmlVersion</code> attribute.
|
||||
* <br>WRONG_DOCUMENT_ERR: Raised when the specified node was created
|
||||
* from a different document than this document.
|
||||
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is a
|
||||
* malformed qualified name, if the <code>qualifiedName</code> has a
|
||||
* prefix and the <code>namespaceURI</code> is <code>null</code>, or
|
||||
* if the <code>qualifiedName</code> has a prefix that is "xml" and
|
||||
* the <code>namespaceURI</code> is different from "<a href='http://www.w3.org/XML/1998/namespace'>
|
||||
* http://www.w3.org/XML/1998/namespace</a>" [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* . Also raised, when the node being renamed is an attribute, if the
|
||||
* <code>qualifiedName</code>, or its prefix, is "xmlns" and the
|
||||
* <code>namespaceURI</code> is different from "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>".
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public Node renameNode(Node n,
|
||||
String namespaceURI,
|
||||
String qualifiedName)
|
||||
throws DOMException;
|
||||
|
||||
}
|
@ -1,52 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* <code>DocumentFragment</code> is a "lightweight" or "minimal"
|
||||
* <code>Document</code> object. It is very common to want to be able to
|
||||
* extract a portion of a document's tree or to create a new fragment of a
|
||||
* document. Imagine implementing a user command like cut or rearranging a
|
||||
* document by moving fragments around. It is desirable to have an object
|
||||
* which can hold such fragments and it is quite natural to use a Node for
|
||||
* this purpose. While it is true that a <code>Document</code> object could
|
||||
* fulfill this role, a <code>Document</code> object can potentially be a
|
||||
* heavyweight object, depending on the underlying implementation. What is
|
||||
* really needed for this is a very lightweight object.
|
||||
* <code>DocumentFragment</code> is such an object.
|
||||
* <p>Furthermore, various operations -- such as inserting nodes as children
|
||||
* of another <code>Node</code> -- may take <code>DocumentFragment</code>
|
||||
* objects as arguments; this results in all the child nodes of the
|
||||
* <code>DocumentFragment</code> being moved to the child list of this node.
|
||||
* <p>The children of a <code>DocumentFragment</code> node are zero or more
|
||||
* nodes representing the tops of any sub-trees defining the structure of
|
||||
* the document. <code>DocumentFragment</code> nodes do not need to be
|
||||
* well-formed XML documents (although they do need to follow the rules
|
||||
* imposed upon well-formed XML parsed entities, which can have multiple top
|
||||
* nodes). For example, a <code>DocumentFragment</code> might have only one
|
||||
* child and that child node could be a <code>Text</code> node. Such a
|
||||
* structure model represents neither an HTML document nor a well-formed XML
|
||||
* document.
|
||||
* <p>When a <code>DocumentFragment</code> is inserted into a
|
||||
* <code>Document</code> (or indeed any other <code>Node</code> that may
|
||||
* take children) the children of the <code>DocumentFragment</code> and not
|
||||
* the <code>DocumentFragment</code> itself are inserted into the
|
||||
* <code>Node</code>. This makes the <code>DocumentFragment</code> very
|
||||
* useful when the user wishes to create nodes that are siblings; the
|
||||
* <code>DocumentFragment</code> acts as the parent of these nodes so that
|
||||
* the user can use the standard methods from the <code>Node</code>
|
||||
* interface, such as <code>insertBefore</code> and <code>appendChild</code>.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||
*/
|
||||
public interface DocumentFragment extends Node {
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* <code>DocumentFragment</code> is a "lightweight" or "minimal"
|
||||
* <code>Document</code> object. It is very common to want to be able to
|
||||
* extract a portion of a document's tree or to create a new fragment of a
|
||||
* document. Imagine implementing a user command like cut or rearranging a
|
||||
* document by moving fragments around. It is desirable to have an object
|
||||
* which can hold such fragments and it is quite natural to use a Node for
|
||||
* this purpose. While it is true that a <code>Document</code> object could
|
||||
* fulfill this role, a <code>Document</code> object can potentially be a
|
||||
* heavyweight object, depending on the underlying implementation. What is
|
||||
* really needed for this is a very lightweight object.
|
||||
* <code>DocumentFragment</code> is such an object.
|
||||
* <p>Furthermore, various operations -- such as inserting nodes as children
|
||||
* of another <code>Node</code> -- may take <code>DocumentFragment</code>
|
||||
* objects as arguments; this results in all the child nodes of the
|
||||
* <code>DocumentFragment</code> being moved to the child list of this node.
|
||||
* <p>The children of a <code>DocumentFragment</code> node are zero or more
|
||||
* nodes representing the tops of any sub-trees defining the structure of
|
||||
* the document. <code>DocumentFragment</code> nodes do not need to be
|
||||
* well-formed XML documents (although they do need to follow the rules
|
||||
* imposed upon well-formed XML parsed entities, which can have multiple top
|
||||
* nodes). For example, a <code>DocumentFragment</code> might have only one
|
||||
* child and that child node could be a <code>Text</code> node. Such a
|
||||
* structure model represents neither an HTML document nor a well-formed XML
|
||||
* document.
|
||||
* <p>When a <code>DocumentFragment</code> is inserted into a
|
||||
* <code>Document</code> (or indeed any other <code>Node</code> that may
|
||||
* take children) the children of the <code>DocumentFragment</code> and not
|
||||
* the <code>DocumentFragment</code> itself are inserted into the
|
||||
* <code>Node</code>. This makes the <code>DocumentFragment</code> very
|
||||
* useful when the user wishes to create nodes that are siblings; the
|
||||
* <code>DocumentFragment</code> acts as the parent of these nodes so that
|
||||
* the user can use the standard methods from the <code>Node</code>
|
||||
* interface, such as <code>Node.insertBefore</code> and
|
||||
* <code>Node.appendChild</code>.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface DocumentFragment extends Node {
|
||||
}
|
@ -1,79 +1,83 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* Each <code>Document</code> has a <code>doctype</code> attribute whose value
|
||||
* is either <code>null</code> or a <code>DocumentType</code> object. The
|
||||
* <code>DocumentType</code> interface in the DOM Core provides an interface
|
||||
* to the list of entities that are defined for the document, and little
|
||||
* else because the effect of namespaces and the various XML schema efforts
|
||||
* on DTD representation are not clearly understood as of this writing.
|
||||
* <p>The DOM Level 2 doesn't support editing <code>DocumentType</code> nodes.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||
*/
|
||||
public interface DocumentType extends Node {
|
||||
/**
|
||||
* The name of DTD; i.e., the name immediately following the
|
||||
* <code>DOCTYPE</code> keyword.
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/**
|
||||
* A <code>NamedNodeMap</code> containing the general entities, both
|
||||
* external and internal, declared in the DTD. Parameter entities are
|
||||
* not contained. Duplicates are discarded. For example in:
|
||||
* <pre><!DOCTYPE
|
||||
* ex SYSTEM "ex.dtd" [ <!ENTITY foo "foo"> <!ENTITY bar
|
||||
* "bar"> <!ENTITY bar "bar2"> <!ENTITY % baz "baz">
|
||||
* ]> <ex/></pre>
|
||||
* the interface provides access to <code>foo</code>
|
||||
* and the first declaration of <code>bar</code> but not the second
|
||||
* declaration of <code>bar</code> or <code>baz</code>. Every node in
|
||||
* this map also implements the <code>Entity</code> interface.
|
||||
* <br>The DOM Level 2 does not support editing entities, therefore
|
||||
* <code>entities</code> cannot be altered in any way.
|
||||
*/
|
||||
public NamedNodeMap getEntities();
|
||||
|
||||
/**
|
||||
* A <code>NamedNodeMap</code> containing the notations declared in the
|
||||
* DTD. Duplicates are discarded. Every node in this map also implements
|
||||
* the <code>Notation</code> interface.
|
||||
* <br>The DOM Level 2 does not support editing notations, therefore
|
||||
* <code>notations</code> cannot be altered in any way.
|
||||
*/
|
||||
public NamedNodeMap getNotations();
|
||||
|
||||
/**
|
||||
* The public identifier of the external subset.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getPublicId();
|
||||
|
||||
/**
|
||||
* The system identifier of the external subset.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getSystemId();
|
||||
|
||||
/**
|
||||
* The internal subset as a string.The actual content returned depends on
|
||||
* how much information is available to the implementation. This may
|
||||
* vary depending on various parameters, including the XML processor
|
||||
* used to build the document.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getInternalSubset();
|
||||
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* Each <code>Document</code> has a <code>doctype</code> attribute whose value
|
||||
* is either <code>null</code> or a <code>DocumentType</code> object. The
|
||||
* <code>DocumentType</code> interface in the DOM Core provides an interface
|
||||
* to the list of entities that are defined for the document, and little
|
||||
* else because the effect of namespaces and the various XML schema efforts
|
||||
* on DTD representation are not clearly understood as of this writing.
|
||||
* <p>DOM Level 3 doesn't support editing <code>DocumentType</code> nodes.
|
||||
* <code>DocumentType</code> nodes are read-only.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface DocumentType extends Node {
|
||||
/**
|
||||
* The name of DTD; i.e., the name immediately following the
|
||||
* <code>DOCTYPE</code> keyword.
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/**
|
||||
* A <code>NamedNodeMap</code> containing the general entities, both
|
||||
* external and internal, declared in the DTD. Parameter entities are
|
||||
* not contained. Duplicates are discarded. For example in:
|
||||
* <pre><!DOCTYPE
|
||||
* ex SYSTEM "ex.dtd" [ <!ENTITY foo "foo"> <!ENTITY bar
|
||||
* "bar"> <!ENTITY bar "bar2"> <!ENTITY % baz "baz">
|
||||
* ]> <ex/></pre>
|
||||
* the interface provides access to <code>foo</code>
|
||||
* and the first declaration of <code>bar</code> but not the second
|
||||
* declaration of <code>bar</code> or <code>baz</code>. Every node in
|
||||
* this map also implements the <code>Entity</code> interface.
|
||||
* <br>The DOM Level 2 does not support editing entities, therefore
|
||||
* <code>entities</code> cannot be altered in any way.
|
||||
*/
|
||||
public NamedNodeMap getEntities();
|
||||
|
||||
/**
|
||||
* A <code>NamedNodeMap</code> containing the notations declared in the
|
||||
* DTD. Duplicates are discarded. Every node in this map also implements
|
||||
* the <code>Notation</code> interface.
|
||||
* <br>The DOM Level 2 does not support editing notations, therefore
|
||||
* <code>notations</code> cannot be altered in any way.
|
||||
*/
|
||||
public NamedNodeMap getNotations();
|
||||
|
||||
/**
|
||||
* The public identifier of the external subset.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getPublicId();
|
||||
|
||||
/**
|
||||
* The system identifier of the external subset. This may be an absolute
|
||||
* URI or not.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getSystemId();
|
||||
|
||||
/**
|
||||
* The internal subset as a string, or <code>null</code> if there is none.
|
||||
* This is does not contain the delimiting square brackets.
|
||||
* <p ><b>Note:</b> The actual content returned depends on how much
|
||||
* information is available to the implementation. This may vary
|
||||
* depending on various parameters, including the XML processor used to
|
||||
* build the document.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getInternalSubset();
|
||||
|
||||
}
|
439
libjava/external/w3c_dom/org/w3c/dom/Element.java
vendored
Normal file
439
libjava/external/w3c_dom/org/w3c/dom/Element.java
vendored
Normal file
@ -0,0 +1,439 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>Element</code> interface represents an element in an HTML or XML
|
||||
* document. Elements may have attributes associated with them; since the
|
||||
* <code>Element</code> interface inherits from <code>Node</code>, the
|
||||
* generic <code>Node</code> interface attribute <code>attributes</code> may
|
||||
* be used to retrieve the set of all attributes for an element. There are
|
||||
* methods on the <code>Element</code> interface to retrieve either an
|
||||
* <code>Attr</code> object by name or an attribute value by name. In XML,
|
||||
* where an attribute value may contain entity references, an
|
||||
* <code>Attr</code> object should be retrieved to examine the possibly
|
||||
* fairly complex sub-tree representing the attribute value. On the other
|
||||
* hand, in HTML, where all attributes have simple string values, methods to
|
||||
* directly access an attribute value can safely be used as a convenience.
|
||||
* <p ><b>Note:</b> In DOM Level 2, the method <code>normalize</code> is
|
||||
* inherited from the <code>Node</code> interface where it was moved.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface Element extends Node {
|
||||
/**
|
||||
* The name of the element. If <code>Node.localName</code> is different
|
||||
* from <code>null</code>, this attribute is a qualified name. For
|
||||
* example, in:
|
||||
* <pre> <elementExample id="demo"> ...
|
||||
* </elementExample> , </pre>
|
||||
* <code>tagName</code> has the value
|
||||
* <code>"elementExample"</code>. Note that this is case-preserving in
|
||||
* XML, as are all of the operations of the DOM. The HTML DOM returns
|
||||
* the <code>tagName</code> of an HTML element in the canonical
|
||||
* uppercase form, regardless of the case in the source HTML document.
|
||||
*/
|
||||
public String getTagName();
|
||||
|
||||
/**
|
||||
* Retrieves an attribute value by name.
|
||||
* @param name The name of the attribute to retrieve.
|
||||
* @return The <code>Attr</code> value as a string, or the empty string
|
||||
* if that attribute does not have a specified or default value.
|
||||
*/
|
||||
public String getAttribute(String name);
|
||||
|
||||
/**
|
||||
* Adds a new attribute. If an attribute with that name is already present
|
||||
* in the element, its value is changed to be that of the value
|
||||
* parameter. This value is a simple string; it is not parsed as it is
|
||||
* being set. So any markup (such as syntax to be recognized as an
|
||||
* entity reference) is treated as literal text, and needs to be
|
||||
* appropriately escaped by the implementation when it is written out.
|
||||
* In order to assign an attribute value that contains entity
|
||||
* references, the user must create an <code>Attr</code> node plus any
|
||||
* <code>Text</code> and <code>EntityReference</code> nodes, build the
|
||||
* appropriate subtree, and use <code>setAttributeNode</code> to assign
|
||||
* it as the value of an attribute.
|
||||
* <br>To set an attribute with a qualified name and namespace URI, use
|
||||
* the <code>setAttributeNS</code> method.
|
||||
* @param name The name of the attribute to create or alter.
|
||||
* @param value Value to set in string form.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified name is not an XML
|
||||
* name according to the XML version in use specified in the
|
||||
* <code>Document.xmlVersion</code> attribute.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void setAttribute(String name,
|
||||
String value)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Removes an attribute by name. If a default value for the removed
|
||||
* attribute is defined in the DTD, a new attribute immediately appears
|
||||
* with the default value as well as the corresponding namespace URI,
|
||||
* local name, and prefix when applicable. The implementation may handle
|
||||
* default values from other schemas similarly but applications should
|
||||
* use <code>Document.normalizeDocument()</code> to guarantee this
|
||||
* information is up-to-date.
|
||||
* <br>If no attribute with this name is found, this method has no effect.
|
||||
* <br>To remove an attribute by local name and namespace URI, use the
|
||||
* <code>removeAttributeNS</code> method.
|
||||
* @param name The name of the attribute to remove.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public void removeAttribute(String name)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Retrieves an attribute node by name.
|
||||
* <br>To retrieve an attribute node by qualified name and namespace URI,
|
||||
* use the <code>getAttributeNodeNS</code> method.
|
||||
* @param name The name (<code>nodeName</code>) of the attribute to
|
||||
* retrieve.
|
||||
* @return The <code>Attr</code> node with the specified name (
|
||||
* <code>nodeName</code>) or <code>null</code> if there is no such
|
||||
* attribute.
|
||||
*/
|
||||
public Attr getAttributeNode(String name);
|
||||
|
||||
/**
|
||||
* Adds a new attribute node. If an attribute with that name (
|
||||
* <code>nodeName</code>) is already present in the element, it is
|
||||
* replaced by the new one. Replacing an attribute node by itself has no
|
||||
* effect.
|
||||
* <br>To add a new attribute node with a qualified name and namespace
|
||||
* URI, use the <code>setAttributeNodeNS</code> method.
|
||||
* @param newAttr The <code>Attr</code> node to add to the attribute list.
|
||||
* @return If the <code>newAttr</code> attribute replaces an existing
|
||||
* attribute, the replaced <code>Attr</code> node is returned,
|
||||
* otherwise <code>null</code> is returned.
|
||||
* @exception DOMException
|
||||
* WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a
|
||||
* different document than the one that created the element.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an
|
||||
* attribute of another <code>Element</code> object. The DOM user must
|
||||
* explicitly clone <code>Attr</code> nodes to re-use them in other
|
||||
* elements.
|
||||
*/
|
||||
public Attr setAttributeNode(Attr newAttr)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Removes the specified attribute node. If a default value for the
|
||||
* removed <code>Attr</code> node is defined in the DTD, a new node
|
||||
* immediately appears with the default value as well as the
|
||||
* corresponding namespace URI, local name, and prefix when applicable.
|
||||
* The implementation may handle default values from other schemas
|
||||
* similarly but applications should use
|
||||
* <code>Document.normalizeDocument()</code> to guarantee this
|
||||
* information is up-to-date.
|
||||
* @param oldAttr The <code>Attr</code> node to remove from the attribute
|
||||
* list.
|
||||
* @return The <code>Attr</code> node that was removed.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>NOT_FOUND_ERR: Raised if <code>oldAttr</code> is not an attribute
|
||||
* of the element.
|
||||
*/
|
||||
public Attr removeAttributeNode(Attr oldAttr)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns a <code>NodeList</code> of all descendant <code>Elements</code>
|
||||
* with a given tag name, in document order.
|
||||
* @param name The name of the tag to match on. The special value "*"
|
||||
* matches all tags.
|
||||
* @return A list of matching <code>Element</code> nodes.
|
||||
*/
|
||||
public NodeList getElementsByTagName(String name);
|
||||
|
||||
/**
|
||||
* Retrieves an attribute value by local name and namespace URI.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value <code>null</code> as the
|
||||
* <code>namespaceURI</code> parameter for methods if they wish to have
|
||||
* no namespace.
|
||||
* @param namespaceURI The namespace URI of the attribute to retrieve.
|
||||
* @param localName The local name of the attribute to retrieve.
|
||||
* @return The <code>Attr</code> value as a string, or the empty string
|
||||
* if that attribute does not have a specified or default value.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature <code>"XML"</code> and the language exposed
|
||||
* through the Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getAttributeNS(String namespaceURI,
|
||||
String localName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Adds a new attribute. If an attribute with the same local name and
|
||||
* namespace URI is already present on the element, its prefix is
|
||||
* changed to be the prefix part of the <code>qualifiedName</code>, and
|
||||
* its value is changed to be the <code>value</code> parameter. This
|
||||
* value is a simple string; it is not parsed as it is being set. So any
|
||||
* markup (such as syntax to be recognized as an entity reference) is
|
||||
* treated as literal text, and needs to be appropriately escaped by the
|
||||
* implementation when it is written out. In order to assign an
|
||||
* attribute value that contains entity references, the user must create
|
||||
* an <code>Attr</code> node plus any <code>Text</code> and
|
||||
* <code>EntityReference</code> nodes, build the appropriate subtree,
|
||||
* and use <code>setAttributeNodeNS</code> or
|
||||
* <code>setAttributeNode</code> to assign it as the value of an
|
||||
* attribute.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value <code>null</code> as the
|
||||
* <code>namespaceURI</code> parameter for methods if they wish to have
|
||||
* no namespace.
|
||||
* @param namespaceURI The namespace URI of the attribute to create or
|
||||
* alter.
|
||||
* @param qualifiedName The qualified name of the attribute to create or
|
||||
* alter.
|
||||
* @param value The value to set in string form.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified qualified name is not
|
||||
* an XML name according to the XML version in use specified in the
|
||||
* <code>Document.xmlVersion</code> attribute.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||
* malformed per the Namespaces in XML specification, if the
|
||||
* <code>qualifiedName</code> has a prefix and the
|
||||
* <code>namespaceURI</code> is <code>null</code>, if the
|
||||
* <code>qualifiedName</code> has a prefix that is "xml" and the
|
||||
* <code>namespaceURI</code> is different from "<a href='http://www.w3.org/XML/1998/namespace'>
|
||||
* http://www.w3.org/XML/1998/namespace</a>", if the <code>qualifiedName</code> or its prefix is "xmlns" and the
|
||||
* <code>namespaceURI</code> is different from "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>", or if the <code>namespaceURI</code> is "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>" and neither the <code>qualifiedName</code> nor its prefix is "xmlns".
|
||||
* <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature <code>"XML"</code> and the language exposed
|
||||
* through the Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public void setAttributeNS(String namespaceURI,
|
||||
String qualifiedName,
|
||||
String value)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Removes an attribute by local name and namespace URI. If a default
|
||||
* value for the removed attribute is defined in the DTD, a new
|
||||
* attribute immediately appears with the default value as well as the
|
||||
* corresponding namespace URI, local name, and prefix when applicable.
|
||||
* The implementation may handle default values from other schemas
|
||||
* similarly but applications should use
|
||||
* <code>Document.normalizeDocument()</code> to guarantee this
|
||||
* information is up-to-date.
|
||||
* <br>If no attribute with this local name and namespace URI is found,
|
||||
* this method has no effect.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value <code>null</code> as the
|
||||
* <code>namespaceURI</code> parameter for methods if they wish to have
|
||||
* no namespace.
|
||||
* @param namespaceURI The namespace URI of the attribute to remove.
|
||||
* @param localName The local name of the attribute to remove.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature <code>"XML"</code> and the language exposed
|
||||
* through the Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public void removeAttributeNS(String namespaceURI,
|
||||
String localName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Retrieves an <code>Attr</code> node by local name and namespace URI.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value <code>null</code> as the
|
||||
* <code>namespaceURI</code> parameter for methods if they wish to have
|
||||
* no namespace.
|
||||
* @param namespaceURI The namespace URI of the attribute to retrieve.
|
||||
* @param localName The local name of the attribute to retrieve.
|
||||
* @return The <code>Attr</code> node with the specified attribute local
|
||||
* name and namespace URI or <code>null</code> if there is no such
|
||||
* attribute.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature <code>"XML"</code> and the language exposed
|
||||
* through the Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Attr getAttributeNodeNS(String namespaceURI,
|
||||
String localName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Adds a new attribute. If an attribute with that local name and that
|
||||
* namespace URI is already present in the element, it is replaced by
|
||||
* the new one. Replacing an attribute node by itself has no effect.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value <code>null</code> as the
|
||||
* <code>namespaceURI</code> parameter for methods if they wish to have
|
||||
* no namespace.
|
||||
* @param newAttr The <code>Attr</code> node to add to the attribute list.
|
||||
* @return If the <code>newAttr</code> attribute replaces an existing
|
||||
* attribute with the same local name and namespace URI, the replaced
|
||||
* <code>Attr</code> node is returned, otherwise <code>null</code> is
|
||||
* returned.
|
||||
* @exception DOMException
|
||||
* WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a
|
||||
* different document than the one that created the element.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an
|
||||
* attribute of another <code>Element</code> object. The DOM user must
|
||||
* explicitly clone <code>Attr</code> nodes to re-use them in other
|
||||
* elements.
|
||||
* <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature <code>"XML"</code> and the language exposed
|
||||
* through the Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Attr setAttributeNodeNS(Attr newAttr)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns a <code>NodeList</code> of all the descendant
|
||||
* <code>Elements</code> with a given local name and namespace URI in
|
||||
* document order.
|
||||
* @param namespaceURI The namespace URI of the elements to match on. The
|
||||
* special value "*" matches all namespaces.
|
||||
* @param localName The local name of the elements to match on. The
|
||||
* special value "*" matches all local names.
|
||||
* @return A new <code>NodeList</code> object containing all the matched
|
||||
* <code>Elements</code>.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature <code>"XML"</code> and the language exposed
|
||||
* through the Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public NodeList getElementsByTagNameNS(String namespaceURI,
|
||||
String localName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> when an attribute with a given name is
|
||||
* specified on this element or has a default value, <code>false</code>
|
||||
* otherwise.
|
||||
* @param name The name of the attribute to look for.
|
||||
* @return <code>true</code> if an attribute with the given name is
|
||||
* specified on this element or has a default value, <code>false</code>
|
||||
* otherwise.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public boolean hasAttribute(String name);
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> when an attribute with a given local name and
|
||||
* namespace URI is specified on this element or has a default value,
|
||||
* <code>false</code> otherwise.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value <code>null</code> as the
|
||||
* <code>namespaceURI</code> parameter for methods if they wish to have
|
||||
* no namespace.
|
||||
* @param namespaceURI The namespace URI of the attribute to look for.
|
||||
* @param localName The local name of the attribute to look for.
|
||||
* @return <code>true</code> if an attribute with the given local name
|
||||
* and namespace URI is specified or has a default value on this
|
||||
* element, <code>false</code> otherwise.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature <code>"XML"</code> and the language exposed
|
||||
* through the Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public boolean hasAttributeNS(String namespaceURI,
|
||||
String localName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The type information associated with this element.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public TypeInfo getSchemaTypeInfo();
|
||||
|
||||
/**
|
||||
* If the parameter <code>isId</code> is <code>true</code>, this method
|
||||
* declares the specified attribute to be a user-determined ID attribute
|
||||
* . This affects the value of <code>Attr.isId</code> and the behavior
|
||||
* of <code>Document.getElementById</code>, but does not change any
|
||||
* schema that may be in use, in particular this does not affect the
|
||||
* <code>Attr.schemaTypeInfo</code> of the specified <code>Attr</code>
|
||||
* node. Use the value <code>false</code> for the parameter
|
||||
* <code>isId</code> to undeclare an attribute for being a
|
||||
* user-determined ID attribute.
|
||||
* <br> To specify an attribute by local name and namespace URI, use the
|
||||
* <code>setIdAttributeNS</code> method.
|
||||
* @param name The name of the attribute.
|
||||
* @param isId Whether the attribute is a of type ID.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>NOT_FOUND_ERR: Raised if the specified node is not an attribute
|
||||
* of this element.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void setIdAttribute(String name,
|
||||
boolean isId)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* If the parameter <code>isId</code> is <code>true</code>, this method
|
||||
* declares the specified attribute to be a user-determined ID attribute
|
||||
* . This affects the value of <code>Attr.isId</code> and the behavior
|
||||
* of <code>Document.getElementById</code>, but does not change any
|
||||
* schema that may be in use, in particular this does not affect the
|
||||
* <code>Attr.schemaTypeInfo</code> of the specified <code>Attr</code>
|
||||
* node. Use the value <code>false</code> for the parameter
|
||||
* <code>isId</code> to undeclare an attribute for being a
|
||||
* user-determined ID attribute.
|
||||
* @param namespaceURI The namespace URI of the attribute.
|
||||
* @param localName The local name of the attribute.
|
||||
* @param isId Whether the attribute is a of type ID.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>NOT_FOUND_ERR: Raised if the specified node is not an attribute
|
||||
* of this element.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void setIdAttributeNS(String namespaceURI,
|
||||
String localName,
|
||||
boolean isId)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* If the parameter <code>isId</code> is <code>true</code>, this method
|
||||
* declares the specified attribute to be a user-determined ID attribute
|
||||
* . This affects the value of <code>Attr.isId</code> and the behavior
|
||||
* of <code>Document.getElementById</code>, but does not change any
|
||||
* schema that may be in use, in particular this does not affect the
|
||||
* <code>Attr.schemaTypeInfo</code> of the specified <code>Attr</code>
|
||||
* node. Use the value <code>false</code> for the parameter
|
||||
* <code>isId</code> to undeclare an attribute for being a
|
||||
* user-determined ID attribute.
|
||||
* @param idAttr The attribute node.
|
||||
* @param isId Whether the attribute is a of type ID.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>NOT_FOUND_ERR: Raised if the specified node is not an attribute
|
||||
* of this element.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void setIdAttributeNode(Attr idAttr,
|
||||
boolean isId)
|
||||
throws DOMException;
|
||||
|
||||
}
|
90
libjava/external/w3c_dom/org/w3c/dom/Entity.java
vendored
Normal file
90
libjava/external/w3c_dom/org/w3c/dom/Entity.java
vendored
Normal file
@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* This interface represents a known entity, either parsed or unparsed, in an
|
||||
* XML document. Note that this models the entity itself <em>not</em> the entity declaration.
|
||||
* <p>The <code>nodeName</code> attribute that is inherited from
|
||||
* <code>Node</code> contains the name of the entity.
|
||||
* <p>An XML processor may choose to completely expand entities before the
|
||||
* structure model is passed to the DOM; in this case there will be no
|
||||
* <code>EntityReference</code> nodes in the document tree.
|
||||
* <p>XML does not mandate that a non-validating XML processor read and
|
||||
* process entity declarations made in the external subset or declared in
|
||||
* parameter entities. This means that parsed entities declared in the
|
||||
* external subset need not be expanded by some classes of applications, and
|
||||
* that the replacement text of the entity may not be available. When the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#intern-replacement'>
|
||||
* replacement text</a> is available, the corresponding <code>Entity</code> node's child list
|
||||
* represents the structure of that replacement value. Otherwise, the child
|
||||
* list is empty.
|
||||
* <p>DOM Level 3 does not support editing <code>Entity</code> nodes; if a
|
||||
* user wants to make changes to the contents of an <code>Entity</code>,
|
||||
* every related <code>EntityReference</code> node has to be replaced in the
|
||||
* structure model by a clone of the <code>Entity</code>'s contents, and
|
||||
* then the desired changes must be made to each of those clones instead.
|
||||
* <code>Entity</code> nodes and all their descendants are readonly.
|
||||
* <p>An <code>Entity</code> node does not have any parent.
|
||||
* <p ><b>Note:</b> If the entity contains an unbound namespace prefix, the
|
||||
* <code>namespaceURI</code> of the corresponding node in the
|
||||
* <code>Entity</code> node subtree is <code>null</code>. The same is true
|
||||
* for <code>EntityReference</code> nodes that refer to this entity, when
|
||||
* they are created using the <code>createEntityReference</code> method of
|
||||
* the <code>Document</code> interface.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface Entity extends Node {
|
||||
/**
|
||||
* The public identifier associated with the entity if specified, and
|
||||
* <code>null</code> otherwise.
|
||||
*/
|
||||
public String getPublicId();
|
||||
|
||||
/**
|
||||
* The system identifier associated with the entity if specified, and
|
||||
* <code>null</code> otherwise. This may be an absolute URI or not.
|
||||
*/
|
||||
public String getSystemId();
|
||||
|
||||
/**
|
||||
* For unparsed entities, the name of the notation for the entity. For
|
||||
* parsed entities, this is <code>null</code>.
|
||||
*/
|
||||
public String getNotationName();
|
||||
|
||||
/**
|
||||
* An attribute specifying the encoding used for this entity at the time
|
||||
* of parsing, when it is an external parsed entity. This is
|
||||
* <code>null</code> if it an entity from the internal subset or if it
|
||||
* is not known.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getInputEncoding();
|
||||
|
||||
/**
|
||||
* An attribute specifying, as part of the text declaration, the encoding
|
||||
* of this entity, when it is an external parsed entity. This is
|
||||
* <code>null</code> otherwise.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getXmlEncoding();
|
||||
|
||||
/**
|
||||
* An attribute specifying, as part of the text declaration, the version
|
||||
* number of this entity, when it is an external parsed entity. This is
|
||||
* <code>null</code> otherwise.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getXmlVersion();
|
||||
|
||||
}
|
43
libjava/external/w3c_dom/org/w3c/dom/EntityReference.java
vendored
Normal file
43
libjava/external/w3c_dom/org/w3c/dom/EntityReference.java
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* <code>EntityReference</code> nodes may be used to represent an entity
|
||||
* reference in the tree. Note that character references and references to
|
||||
* predefined entities are considered to be expanded by the HTML or XML
|
||||
* processor so that characters are represented by their Unicode equivalent
|
||||
* rather than by an entity reference. Moreover, the XML processor may
|
||||
* completely expand references to entities while building the
|
||||
* <code>Document</code>, instead of providing <code>EntityReference</code>
|
||||
* nodes. If it does provide such nodes, then for an
|
||||
* <code>EntityReference</code> node that represents a reference to a known
|
||||
* entity an <code>Entity</code> exists, and the subtree of the
|
||||
* <code>EntityReference</code> node is a copy of the <code>Entity</code>
|
||||
* node subtree. However, the latter may not be true when an entity contains
|
||||
* an unbound namespace prefix. In such a case, because the namespace prefix
|
||||
* resolution depends on where the entity reference is, the descendants of
|
||||
* the <code>EntityReference</code> node may be bound to different namespace
|
||||
* URIs. When an <code>EntityReference</code> node represents a reference to
|
||||
* an unknown entity, the node has no children and its replacement value,
|
||||
* when used by <code>Attr.value</code> for example, is empty.
|
||||
* <p>As for <code>Entity</code> nodes, <code>EntityReference</code> nodes and
|
||||
* all their descendants are readonly.
|
||||
* <p ><b>Note:</b> <code>EntityReference</code> nodes may cause element
|
||||
* content and attribute value normalization problems when, such as in XML
|
||||
* 1.0 and XML Schema, the normalization is performed after entity reference
|
||||
* are expanded.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface EntityReference extends Node {
|
||||
}
|
68
libjava/external/w3c_dom/org/w3c/dom/NameList.java
vendored
Normal file
68
libjava/external/w3c_dom/org/w3c/dom/NameList.java
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>NameList</code> interface provides the abstraction of an ordered
|
||||
* collection of parallel pairs of name and namespace values (which could be
|
||||
* null values), without defining or constraining how this collection is
|
||||
* implemented. The items in the <code>NameList</code> are accessible via an
|
||||
* integral index, starting from 0.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface NameList {
|
||||
/**
|
||||
* Returns the <code>index</code>th name item in the collection.
|
||||
* @param index Index into the collection.
|
||||
* @return The name at the <code>index</code>th position in the
|
||||
* <code>NameList</code>, or <code>null</code> if there is no name for
|
||||
* the specified index or if the index is out of range.
|
||||
*/
|
||||
public String getName(int index);
|
||||
|
||||
/**
|
||||
* Returns the <code>index</code>th namespaceURI item in the collection.
|
||||
* @param index Index into the collection.
|
||||
* @return The namespace URI at the <code>index</code>th position in the
|
||||
* <code>NameList</code>, or <code>null</code> if there is no name for
|
||||
* the specified index or if the index is out of range.
|
||||
*/
|
||||
public String getNamespaceURI(int index);
|
||||
|
||||
/**
|
||||
* The number of pairs (name and namespaceURI) in the list. The range of
|
||||
* valid child node indices is 0 to <code>length-1</code> inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Test if a name is part of this <code>NameList</code>.
|
||||
* @param str The name to look for.
|
||||
* @return <code>true</code> if the name has been found,
|
||||
* <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean contains(String str);
|
||||
|
||||
/**
|
||||
* Test if the pair namespaceURI/name is part of this
|
||||
* <code>NameList</code>.
|
||||
* @param namespaceURI The namespace URI to look for.
|
||||
* @param name The name to look for.
|
||||
* @return <code>true</code> if the pair namespaceURI/name has been
|
||||
* found, <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean containsNS(String namespaceURI,
|
||||
String name);
|
||||
|
||||
}
|
@ -1,156 +1,183 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* Objects implementing the <code>NamedNodeMap</code> interface are used to
|
||||
* represent collections of nodes that can be accessed by name. Note that
|
||||
* <code>NamedNodeMap</code> does not inherit from <code>NodeList</code>;
|
||||
* <code>NamedNodeMaps</code> are not maintained in any particular order.
|
||||
* Objects contained in an object implementing <code>NamedNodeMap</code> may
|
||||
* also be accessed by an ordinal index, but this is simply to allow
|
||||
* convenient enumeration of the contents of a <code>NamedNodeMap</code>,
|
||||
* and does not imply that the DOM specifies an order to these Nodes.
|
||||
* <p><code>NamedNodeMap</code> objects in the DOM are live.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||
*/
|
||||
public interface NamedNodeMap {
|
||||
/**
|
||||
* Retrieves a node specified by name.
|
||||
* @param nameThe <code>nodeName</code> of a node to retrieve.
|
||||
* @return A <code>Node</code> (of any type) with the specified
|
||||
* <code>nodeName</code>, or <code>null</code> if it does not identify
|
||||
* any node in this map.
|
||||
*/
|
||||
public Node getNamedItem(String name);
|
||||
|
||||
/**
|
||||
* Adds a node using its <code>nodeName</code> attribute. If a node with
|
||||
* that name is already present in this map, it is replaced by the new
|
||||
* one.
|
||||
* <br>As the <code>nodeName</code> attribute is used to derive the name
|
||||
* which the node must be stored under, multiple nodes of certain types
|
||||
* (those that have a "special" string value) cannot be stored as the
|
||||
* names would clash. This is seen as preferable to allowing nodes to be
|
||||
* aliased.
|
||||
* @param argA node to store in this map. The node will later be
|
||||
* accessible using the value of its <code>nodeName</code> attribute.
|
||||
* @return If the new <code>Node</code> replaces an existing node the
|
||||
* replaced <code>Node</code> is returned, otherwise <code>null</code>
|
||||
* is returned.
|
||||
* @exception DOMException
|
||||
* WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a
|
||||
* different document than the one that created this map.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
|
||||
* <code>Attr</code> that is already an attribute of another
|
||||
* <code>Element</code> object. The DOM user must explicitly clone
|
||||
* <code>Attr</code> nodes to re-use them in other elements.
|
||||
*/
|
||||
public Node setNamedItem(Node arg)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Removes a node specified by name. When this map contains the attributes
|
||||
* attached to an element, if the removed attribute is known to have a
|
||||
* default value, an attribute immediately appears containing the
|
||||
* default value as well as the corresponding namespace URI, local name,
|
||||
* and prefix when applicable.
|
||||
* @param nameThe <code>nodeName</code> of the node to remove.
|
||||
* @return The node removed from this map if a node with such a name
|
||||
* exists.
|
||||
* @exception DOMException
|
||||
* NOT_FOUND_ERR: Raised if there is no node named <code>name</code> in
|
||||
* this map.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||
*/
|
||||
public Node removeNamedItem(String name)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns the <code>index</code>th item in the map. If <code>index</code>
|
||||
* is greater than or equal to the number of nodes in this map, this
|
||||
* returns <code>null</code>.
|
||||
* @param indexIndex into this map.
|
||||
* @return The node at the <code>index</code>th position in the map, or
|
||||
* <code>null</code> if that is not a valid index.
|
||||
*/
|
||||
public Node item(int index);
|
||||
|
||||
/**
|
||||
* The number of nodes in this map. The range of valid child node indices
|
||||
* is <code>0</code> to <code>length-1</code> inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Retrieves a node specified by local name and namespace URI. HTML-only
|
||||
* DOM implementations do not need to implement this method.
|
||||
* @param namespaceURIThe namespace URI of the node to retrieve.
|
||||
* @param localNameThe local name of the node to retrieve.
|
||||
* @return A <code>Node</code> (of any type) with the specified local
|
||||
* name and namespace URI, or <code>null</code> if they do not
|
||||
* identify any node in this map.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Node getNamedItemNS(String namespaceURI,
|
||||
String localName);
|
||||
|
||||
/**
|
||||
* Adds a node using its <code>namespaceURI</code> and
|
||||
* <code>localName</code>. If a node with that namespace URI and that
|
||||
* local name is already present in this map, it is replaced by the new
|
||||
* one.
|
||||
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||
* @param argA node to store in this map. The node will later be
|
||||
* accessible using the value of its <code>namespaceURI</code> and
|
||||
* <code>localName</code> attributes.
|
||||
* @return If the new <code>Node</code> replaces an existing node the
|
||||
* replaced <code>Node</code> is returned, otherwise <code>null</code>
|
||||
* is returned.
|
||||
* @exception DOMException
|
||||
* WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a
|
||||
* different document than the one that created this map.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
|
||||
* <code>Attr</code> that is already an attribute of another
|
||||
* <code>Element</code> object. The DOM user must explicitly clone
|
||||
* <code>Attr</code> nodes to re-use them in other elements.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Node setNamedItemNS(Node arg)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Removes a node specified by local name and namespace URI. A removed
|
||||
* attribute may be known to have a default value when this map contains
|
||||
* the attributes attached to an element, as returned by the attributes
|
||||
* attribute of the <code>Node</code> interface. If so, an attribute
|
||||
* immediately appears containing the default value as well as the
|
||||
* corresponding namespace URI, local name, and prefix when applicable.
|
||||
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||
* @param namespaceURIThe namespace URI of the node to remove.
|
||||
* @param localNameThe local name of the node to remove.
|
||||
* @return The node removed from this map if a node with such a local
|
||||
* name and namespace URI exists.
|
||||
* @exception DOMException
|
||||
* NOT_FOUND_ERR: Raised if there is no node with the specified
|
||||
* <code>namespaceURI</code> and <code>localName</code> in this map.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Node removeNamedItemNS(String namespaceURI,
|
||||
String localName)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* Objects implementing the <code>NamedNodeMap</code> interface are used to
|
||||
* represent collections of nodes that can be accessed by name. Note that
|
||||
* <code>NamedNodeMap</code> does not inherit from <code>NodeList</code>;
|
||||
* <code>NamedNodeMaps</code> are not maintained in any particular order.
|
||||
* Objects contained in an object implementing <code>NamedNodeMap</code> may
|
||||
* also be accessed by an ordinal index, but this is simply to allow
|
||||
* convenient enumeration of the contents of a <code>NamedNodeMap</code>,
|
||||
* and does not imply that the DOM specifies an order to these Nodes.
|
||||
* <p><code>NamedNodeMap</code> objects in the DOM are live.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface NamedNodeMap {
|
||||
/**
|
||||
* Retrieves a node specified by name.
|
||||
* @param name The <code>nodeName</code> of a node to retrieve.
|
||||
* @return A <code>Node</code> (of any type) with the specified
|
||||
* <code>nodeName</code>, or <code>null</code> if it does not identify
|
||||
* any node in this map.
|
||||
*/
|
||||
public Node getNamedItem(String name);
|
||||
|
||||
/**
|
||||
* Adds a node using its <code>nodeName</code> attribute. If a node with
|
||||
* that name is already present in this map, it is replaced by the new
|
||||
* one. Replacing a node by itself has no effect.
|
||||
* <br>As the <code>nodeName</code> attribute is used to derive the name
|
||||
* which the node must be stored under, multiple nodes of certain types
|
||||
* (those that have a "special" string value) cannot be stored as the
|
||||
* names would clash. This is seen as preferable to allowing nodes to be
|
||||
* aliased.
|
||||
* @param arg A node to store in this map. The node will later be
|
||||
* accessible using the value of its <code>nodeName</code> attribute.
|
||||
* @return If the new <code>Node</code> replaces an existing node the
|
||||
* replaced <code>Node</code> is returned, otherwise <code>null</code>
|
||||
* is returned.
|
||||
* @exception DOMException
|
||||
* WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a
|
||||
* different document than the one that created this map.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
|
||||
* <code>Attr</code> that is already an attribute of another
|
||||
* <code>Element</code> object. The DOM user must explicitly clone
|
||||
* <code>Attr</code> nodes to re-use them in other elements.
|
||||
* <br>HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node
|
||||
* doesn't belong in this NamedNodeMap. Examples would include trying
|
||||
* to insert something other than an Attr node into an Element's map
|
||||
* of attributes, or a non-Entity node into the DocumentType's map of
|
||||
* Entities.
|
||||
*/
|
||||
public Node setNamedItem(Node arg)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Removes a node specified by name. When this map contains the attributes
|
||||
* attached to an element, if the removed attribute is known to have a
|
||||
* default value, an attribute immediately appears containing the
|
||||
* default value as well as the corresponding namespace URI, local name,
|
||||
* and prefix when applicable.
|
||||
* @param name The <code>nodeName</code> of the node to remove.
|
||||
* @return The node removed from this map if a node with such a name
|
||||
* exists.
|
||||
* @exception DOMException
|
||||
* NOT_FOUND_ERR: Raised if there is no node named <code>name</code> in
|
||||
* this map.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||
*/
|
||||
public Node removeNamedItem(String name)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns the <code>index</code>th item in the map. If <code>index</code>
|
||||
* is greater than or equal to the number of nodes in this map, this
|
||||
* returns <code>null</code>.
|
||||
* @param index Index into this map.
|
||||
* @return The node at the <code>index</code>th position in the map, or
|
||||
* <code>null</code> if that is not a valid index.
|
||||
*/
|
||||
public Node item(int index);
|
||||
|
||||
/**
|
||||
* The number of nodes in this map. The range of valid child node indices
|
||||
* is <code>0</code> to <code>length-1</code> inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Retrieves a node specified by local name and namespace URI.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value null as the namespaceURI parameter
|
||||
* for methods if they wish to have no namespace.
|
||||
* @param namespaceURI The namespace URI of the node to retrieve.
|
||||
* @param localName The local name of the node to retrieve.
|
||||
* @return A <code>Node</code> (of any type) with the specified local
|
||||
* name and namespace URI, or <code>null</code> if they do not
|
||||
* identify any node in this map.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature "XML" and the language exposed through the
|
||||
* Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Node getNamedItemNS(String namespaceURI,
|
||||
String localName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Adds a node using its <code>namespaceURI</code> and
|
||||
* <code>localName</code>. If a node with that namespace URI and that
|
||||
* local name is already present in this map, it is replaced by the new
|
||||
* one. Replacing a node by itself has no effect.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value null as the namespaceURI parameter
|
||||
* for methods if they wish to have no namespace.
|
||||
* @param arg A node to store in this map. The node will later be
|
||||
* accessible using the value of its <code>namespaceURI</code> and
|
||||
* <code>localName</code> attributes.
|
||||
* @return If the new <code>Node</code> replaces an existing node the
|
||||
* replaced <code>Node</code> is returned, otherwise <code>null</code>
|
||||
* is returned.
|
||||
* @exception DOMException
|
||||
* WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a
|
||||
* different document than the one that created this map.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
|
||||
* <code>Attr</code> that is already an attribute of another
|
||||
* <code>Element</code> object. The DOM user must explicitly clone
|
||||
* <code>Attr</code> nodes to re-use them in other elements.
|
||||
* <br>HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node
|
||||
* doesn't belong in this NamedNodeMap. Examples would include trying
|
||||
* to insert something other than an Attr node into an Element's map
|
||||
* of attributes, or a non-Entity node into the DocumentType's map of
|
||||
* Entities.
|
||||
* <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature "XML" and the language exposed through the
|
||||
* Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Node setNamedItemNS(Node arg)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Removes a node specified by local name and namespace URI. A removed
|
||||
* attribute may be known to have a default value when this map contains
|
||||
* the attributes attached to an element, as returned by the attributes
|
||||
* attribute of the <code>Node</code> interface. If so, an attribute
|
||||
* immediately appears containing the default value as well as the
|
||||
* corresponding namespace URI, local name, and prefix when applicable.
|
||||
* <br>Per [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* , applications must use the value null as the namespaceURI parameter
|
||||
* for methods if they wish to have no namespace.
|
||||
* @param namespaceURI The namespace URI of the node to remove.
|
||||
* @param localName The local name of the node to remove.
|
||||
* @return The node removed from this map if a node with such a local
|
||||
* name and namespace URI exists.
|
||||
* @exception DOMException
|
||||
* NOT_FOUND_ERR: Raised if there is no node with the specified
|
||||
* <code>namespaceURI</code> and <code>localName</code> in this map.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||
* <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not
|
||||
* support the feature "XML" and the language exposed through the
|
||||
* Document does not support XML Namespaces (such as [<a href='http://www.w3.org/TR/1999/REC-html401-19991224/'>HTML 4.01</a>]).
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Node removeNamedItemNS(String namespaceURI,
|
||||
String localName)
|
||||
throws DOMException;
|
||||
|
||||
}
|
900
libjava/external/w3c_dom/org/w3c/dom/Node.java
vendored
Normal file
900
libjava/external/w3c_dom/org/w3c/dom/Node.java
vendored
Normal file
@ -0,0 +1,900 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>Node</code> interface is the primary datatype for the entire
|
||||
* Document Object Model. It represents a single node in the document tree.
|
||||
* While all objects implementing the <code>Node</code> interface expose
|
||||
* methods for dealing with children, not all objects implementing the
|
||||
* <code>Node</code> interface may have children. For example,
|
||||
* <code>Text</code> nodes may not have children, and adding children to
|
||||
* such nodes results in a <code>DOMException</code> being raised.
|
||||
* <p>The attributes <code>nodeName</code>, <code>nodeValue</code> and
|
||||
* <code>attributes</code> are included as a mechanism to get at node
|
||||
* information without casting down to the specific derived interface. In
|
||||
* cases where there is no obvious mapping of these attributes for a
|
||||
* specific <code>nodeType</code> (e.g., <code>nodeValue</code> for an
|
||||
* <code>Element</code> or <code>attributes</code> for a <code>Comment</code>
|
||||
* ), this returns <code>null</code>. Note that the specialized interfaces
|
||||
* may contain additional and more convenient mechanisms to get and set the
|
||||
* relevant information.
|
||||
* <p>The values of <code>nodeName</code>,
|
||||
* <code>nodeValue</code>, and <code>attributes</code> vary according to the
|
||||
* node type as follows:
|
||||
* <table border='1' cellpadding='3'>
|
||||
* <tr>
|
||||
* <th>Interface</th>
|
||||
* <th>nodeName</th>
|
||||
* <th>nodeValue</th>
|
||||
* <th>attributes</th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>Attr</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same as <code>Attr.name</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same as
|
||||
* <code>Attr.value</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>CDATASection</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>"#cdata-section"</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same as <code>CharacterData.data</code>, the
|
||||
* content of the CDATA Section</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Comment</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>"#comment"</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same as <code>CharacterData.data</code>, the
|
||||
* content of the comment</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Document</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>"#document"</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>DocumentFragment</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>"#document-fragment"</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>null</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>DocumentType</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same as
|
||||
* <code>DocumentType.name</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>Element</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same as <code>Element.tagName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>NamedNodeMap</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Entity</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>entity name</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>EntityReference</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>name of entity referenced</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>null</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Notation</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>notation name</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>null</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>ProcessingInstruction</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same
|
||||
* as <code>ProcessingInstruction.target</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same as
|
||||
* <code>ProcessingInstruction.data</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Text</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>"#text"</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>same as <code>CharacterData.data</code>, the content
|
||||
* of the text node</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>null</code></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface Node {
|
||||
// NodeType
|
||||
/**
|
||||
* The node is an <code>Element</code>.
|
||||
*/
|
||||
public static final short ELEMENT_NODE = 1;
|
||||
/**
|
||||
* The node is an <code>Attr</code>.
|
||||
*/
|
||||
public static final short ATTRIBUTE_NODE = 2;
|
||||
/**
|
||||
* The node is a <code>Text</code> node.
|
||||
*/
|
||||
public static final short TEXT_NODE = 3;
|
||||
/**
|
||||
* The node is a <code>CDATASection</code>.
|
||||
*/
|
||||
public static final short CDATA_SECTION_NODE = 4;
|
||||
/**
|
||||
* The node is an <code>EntityReference</code>.
|
||||
*/
|
||||
public static final short ENTITY_REFERENCE_NODE = 5;
|
||||
/**
|
||||
* The node is an <code>Entity</code>.
|
||||
*/
|
||||
public static final short ENTITY_NODE = 6;
|
||||
/**
|
||||
* The node is a <code>ProcessingInstruction</code>.
|
||||
*/
|
||||
public static final short PROCESSING_INSTRUCTION_NODE = 7;
|
||||
/**
|
||||
* The node is a <code>Comment</code>.
|
||||
*/
|
||||
public static final short COMMENT_NODE = 8;
|
||||
/**
|
||||
* The node is a <code>Document</code>.
|
||||
*/
|
||||
public static final short DOCUMENT_NODE = 9;
|
||||
/**
|
||||
* The node is a <code>DocumentType</code>.
|
||||
*/
|
||||
public static final short DOCUMENT_TYPE_NODE = 10;
|
||||
/**
|
||||
* The node is a <code>DocumentFragment</code>.
|
||||
*/
|
||||
public static final short DOCUMENT_FRAGMENT_NODE = 11;
|
||||
/**
|
||||
* The node is a <code>Notation</code>.
|
||||
*/
|
||||
public static final short NOTATION_NODE = 12;
|
||||
|
||||
/**
|
||||
* The name of this node, depending on its type; see the table above.
|
||||
*/
|
||||
public String getNodeName();
|
||||
|
||||
/**
|
||||
* The value of this node, depending on its type; see the table above.
|
||||
* When it is defined to be <code>null</code>, setting it has no effect,
|
||||
* including if the node is read-only.
|
||||
* @exception DOMException
|
||||
* DOMSTRING_SIZE_ERR: Raised when it would return more characters than
|
||||
* fit in a <code>DOMString</code> variable on the implementation
|
||||
* platform.
|
||||
*/
|
||||
public String getNodeValue()
|
||||
throws DOMException;
|
||||
/**
|
||||
* The value of this node, depending on its type; see the table above.
|
||||
* When it is defined to be <code>null</code>, setting it has no effect,
|
||||
* including if the node is read-only.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly and if
|
||||
* it is not defined to be <code>null</code>.
|
||||
*/
|
||||
public void setNodeValue(String nodeValue)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A code representing the type of the underlying object, as defined above.
|
||||
*/
|
||||
public short getNodeType();
|
||||
|
||||
/**
|
||||
* The parent of this node. All nodes, except <code>Attr</code>,
|
||||
* <code>Document</code>, <code>DocumentFragment</code>,
|
||||
* <code>Entity</code>, and <code>Notation</code> may have a parent.
|
||||
* However, if a node has just been created and not yet added to the
|
||||
* tree, or if it has been removed from the tree, this is
|
||||
* <code>null</code>.
|
||||
*/
|
||||
public Node getParentNode();
|
||||
|
||||
/**
|
||||
* A <code>NodeList</code> that contains all children of this node. If
|
||||
* there are no children, this is a <code>NodeList</code> containing no
|
||||
* nodes.
|
||||
*/
|
||||
public NodeList getChildNodes();
|
||||
|
||||
/**
|
||||
* The first child of this node. If there is no such node, this returns
|
||||
* <code>null</code>.
|
||||
*/
|
||||
public Node getFirstChild();
|
||||
|
||||
/**
|
||||
* The last child of this node. If there is no such node, this returns
|
||||
* <code>null</code>.
|
||||
*/
|
||||
public Node getLastChild();
|
||||
|
||||
/**
|
||||
* The node immediately preceding this node. If there is no such node,
|
||||
* this returns <code>null</code>.
|
||||
*/
|
||||
public Node getPreviousSibling();
|
||||
|
||||
/**
|
||||
* The node immediately following this node. If there is no such node,
|
||||
* this returns <code>null</code>.
|
||||
*/
|
||||
public Node getNextSibling();
|
||||
|
||||
/**
|
||||
* A <code>NamedNodeMap</code> containing the attributes of this node (if
|
||||
* it is an <code>Element</code>) or <code>null</code> otherwise.
|
||||
*/
|
||||
public NamedNodeMap getAttributes();
|
||||
|
||||
/**
|
||||
* The <code>Document</code> object associated with this node. This is
|
||||
* also the <code>Document</code> object used to create new nodes. When
|
||||
* this node is a <code>Document</code> or a <code>DocumentType</code>
|
||||
* which is not used with any <code>Document</code> yet, this is
|
||||
* <code>null</code>.
|
||||
* @version DOM Level 2
|
||||
*/
|
||||
public Document getOwnerDocument();
|
||||
|
||||
/**
|
||||
* Inserts the node <code>newChild</code> before the existing child node
|
||||
* <code>refChild</code>. If <code>refChild</code> is <code>null</code>,
|
||||
* insert <code>newChild</code> at the end of the list of children.
|
||||
* <br>If <code>newChild</code> is a <code>DocumentFragment</code> object,
|
||||
* all of its children are inserted, in the same order, before
|
||||
* <code>refChild</code>. If the <code>newChild</code> is already in the
|
||||
* tree, it is first removed.
|
||||
* <p ><b>Note:</b> Inserting a node before itself is implementation
|
||||
* dependent.
|
||||
* @param newChild The node to insert.
|
||||
* @param refChild The reference node, i.e., the node before which the
|
||||
* new node must be inserted.
|
||||
* @return The node being inserted.
|
||||
* @exception DOMException
|
||||
* HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
|
||||
* allow children of the type of the <code>newChild</code> node, or if
|
||||
* the node to insert is one of this node's ancestors or this node
|
||||
* itself, or if this node is of type <code>Document</code> and the
|
||||
* DOM application attempts to insert a second
|
||||
* <code>DocumentType</code> or <code>Element</code> node.
|
||||
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
|
||||
* from a different document than the one that created this node.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or
|
||||
* if the parent of the node being inserted is readonly.
|
||||
* <br>NOT_FOUND_ERR: Raised if <code>refChild</code> is not a child of
|
||||
* this node.
|
||||
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
|
||||
* this exception might be raised if the DOM implementation doesn't
|
||||
* support the insertion of a <code>DocumentType</code> or
|
||||
* <code>Element</code> node.
|
||||
* @version DOM Level 3
|
||||
*/
|
||||
public Node insertBefore(Node newChild,
|
||||
Node refChild)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Replaces the child node <code>oldChild</code> with <code>newChild</code>
|
||||
* in the list of children, and returns the <code>oldChild</code> node.
|
||||
* <br>If <code>newChild</code> is a <code>DocumentFragment</code> object,
|
||||
* <code>oldChild</code> is replaced by all of the
|
||||
* <code>DocumentFragment</code> children, which are inserted in the
|
||||
* same order. If the <code>newChild</code> is already in the tree, it
|
||||
* is first removed.
|
||||
* <p ><b>Note:</b> Replacing a node with itself is implementation
|
||||
* dependent.
|
||||
* @param newChild The new node to put in the child list.
|
||||
* @param oldChild The node being replaced in the list.
|
||||
* @return The node replaced.
|
||||
* @exception DOMException
|
||||
* HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
|
||||
* allow children of the type of the <code>newChild</code> node, or if
|
||||
* the node to put in is one of this node's ancestors or this node
|
||||
* itself, or if this node is of type <code>Document</code> and the
|
||||
* result of the replacement operation would add a second
|
||||
* <code>DocumentType</code> or <code>Element</code> on the
|
||||
* <code>Document</code> node.
|
||||
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
|
||||
* from a different document than the one that created this node.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the parent of
|
||||
* the new node is readonly.
|
||||
* <br>NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a child of
|
||||
* this node.
|
||||
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
|
||||
* this exception might be raised if the DOM implementation doesn't
|
||||
* support the replacement of the <code>DocumentType</code> child or
|
||||
* <code>Element</code> child.
|
||||
* @version DOM Level 3
|
||||
*/
|
||||
public Node replaceChild(Node newChild,
|
||||
Node oldChild)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Removes the child node indicated by <code>oldChild</code> from the list
|
||||
* of children, and returns it.
|
||||
* @param oldChild The node being removed.
|
||||
* @return The node removed.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a child of
|
||||
* this node.
|
||||
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
|
||||
* this exception might be raised if the DOM implementation doesn't
|
||||
* support the removal of the <code>DocumentType</code> child or the
|
||||
* <code>Element</code> child.
|
||||
* @version DOM Level 3
|
||||
*/
|
||||
public Node removeChild(Node oldChild)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Adds the node <code>newChild</code> to the end of the list of children
|
||||
* of this node. If the <code>newChild</code> is already in the tree, it
|
||||
* is first removed.
|
||||
* @param newChild The node to add.If it is a
|
||||
* <code>DocumentFragment</code> object, the entire contents of the
|
||||
* document fragment are moved into the child list of this node
|
||||
* @return The node added.
|
||||
* @exception DOMException
|
||||
* HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
|
||||
* allow children of the type of the <code>newChild</code> node, or if
|
||||
* the node to append is one of this node's ancestors or this node
|
||||
* itself, or if this node is of type <code>Document</code> and the
|
||||
* DOM application attempts to append a second
|
||||
* <code>DocumentType</code> or <code>Element</code> node.
|
||||
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
|
||||
* from a different document than the one that created this node.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or
|
||||
* if the previous parent of the node being inserted is readonly.
|
||||
* <br>NOT_SUPPORTED_ERR: if the <code>newChild</code> node is a child
|
||||
* of the <code>Document</code> node, this exception might be raised
|
||||
* if the DOM implementation doesn't support the removal of the
|
||||
* <code>DocumentType</code> child or <code>Element</code> child.
|
||||
* @version DOM Level 3
|
||||
*/
|
||||
public Node appendChild(Node newChild)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns whether this node has any children.
|
||||
* @return Returns <code>true</code> if this node has any children,
|
||||
* <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean hasChildNodes();
|
||||
|
||||
/**
|
||||
* Returns a duplicate of this node, i.e., serves as a generic copy
|
||||
* constructor for nodes. The duplicate node has no parent (
|
||||
* <code>parentNode</code> is <code>null</code>) and no user data. User
|
||||
* data associated to the imported node is not carried over. However, if
|
||||
* any <code>UserDataHandlers</code> has been specified along with the
|
||||
* associated data these handlers will be called with the appropriate
|
||||
* parameters before this method returns.
|
||||
* <br>Cloning an <code>Element</code> copies all attributes and their
|
||||
* values, including those generated by the XML processor to represent
|
||||
* defaulted attributes, but this method does not copy any children it
|
||||
* contains unless it is a deep clone. This includes text contained in
|
||||
* an the <code>Element</code> since the text is contained in a child
|
||||
* <code>Text</code> node. Cloning an <code>Attr</code> directly, as
|
||||
* opposed to be cloned as part of an <code>Element</code> cloning
|
||||
* operation, returns a specified attribute (<code>specified</code> is
|
||||
* <code>true</code>). Cloning an <code>Attr</code> always clones its
|
||||
* children, since they represent its value, no matter whether this is a
|
||||
* deep clone or not. Cloning an <code>EntityReference</code>
|
||||
* automatically constructs its subtree if a corresponding
|
||||
* <code>Entity</code> is available, no matter whether this is a deep
|
||||
* clone or not. Cloning any other type of node simply returns a copy of
|
||||
* this node.
|
||||
* <br>Note that cloning an immutable subtree results in a mutable copy,
|
||||
* but the children of an <code>EntityReference</code> clone are readonly
|
||||
* . In addition, clones of unspecified <code>Attr</code> nodes are
|
||||
* specified. And, cloning <code>Document</code>,
|
||||
* <code>DocumentType</code>, <code>Entity</code>, and
|
||||
* <code>Notation</code> nodes is implementation dependent.
|
||||
* @param deep If <code>true</code>, recursively clone the subtree under
|
||||
* the specified node; if <code>false</code>, clone only the node
|
||||
* itself (and its attributes, if it is an <code>Element</code>).
|
||||
* @return The duplicate node.
|
||||
*/
|
||||
public Node cloneNode(boolean deep);
|
||||
|
||||
/**
|
||||
* Puts all <code>Text</code> nodes in the full depth of the sub-tree
|
||||
* underneath this <code>Node</code>, including attribute nodes, into a
|
||||
* "normal" form where only structure (e.g., elements, comments,
|
||||
* processing instructions, CDATA sections, and entity references)
|
||||
* separates <code>Text</code> nodes, i.e., there are neither adjacent
|
||||
* <code>Text</code> nodes nor empty <code>Text</code> nodes. This can
|
||||
* be used to ensure that the DOM view of a document is the same as if
|
||||
* it were saved and re-loaded, and is useful when operations (such as
|
||||
* XPointer [<a href='http://www.w3.org/TR/2003/REC-xptr-framework-20030325/'>XPointer</a>]
|
||||
* lookups) that depend on a particular document tree structure are to
|
||||
* be used. If the parameter "normalize-characters" of the
|
||||
* <code>DOMConfiguration</code> object attached to the
|
||||
* <code>Node.ownerDocument</code> is <code>true</code>, this method
|
||||
* will also fully normalize the characters of the <code>Text</code>
|
||||
* nodes.
|
||||
* <p ><b>Note:</b> In cases where the document contains
|
||||
* <code>CDATASections</code>, the normalize operation alone may not be
|
||||
* sufficient, since XPointers do not differentiate between
|
||||
* <code>Text</code> nodes and <code>CDATASection</code> nodes.
|
||||
* @version DOM Level 3
|
||||
*/
|
||||
public void normalize();
|
||||
|
||||
/**
|
||||
* Tests whether the DOM implementation implements a specific feature and
|
||||
* that feature is supported by this node, as specified in .
|
||||
* @param feature The name of the feature to test.
|
||||
* @param version This is the version number of the feature to test.
|
||||
* @return Returns <code>true</code> if the specified feature is
|
||||
* supported on this node, <code>false</code> otherwise.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public boolean isSupported(String feature,
|
||||
String version);
|
||||
|
||||
/**
|
||||
* The namespace URI of this node, or <code>null</code> if it is
|
||||
* unspecified (see ).
|
||||
* <br>This is not a computed value that is the result of a namespace
|
||||
* lookup based on an examination of the namespace declarations in
|
||||
* scope. It is merely the namespace URI given at creation time.
|
||||
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
|
||||
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
|
||||
* method, such as <code>Document.createElement()</code>, this is always
|
||||
* <code>null</code>.
|
||||
* <p ><b>Note:</b> Per the <em>Namespaces in XML</em> Specification [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* an attribute does not inherit its namespace from the element it is
|
||||
* attached to. If an attribute is not explicitly given a namespace, it
|
||||
* simply has no namespace.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getNamespaceURI();
|
||||
|
||||
/**
|
||||
* The namespace prefix of this node, or <code>null</code> if it is
|
||||
* unspecified. When it is defined to be <code>null</code>, setting it
|
||||
* has no effect, including if the node is read-only.
|
||||
* <br>Note that setting this attribute, when permitted, changes the
|
||||
* <code>nodeName</code> attribute, which holds the qualified name, as
|
||||
* well as the <code>tagName</code> and <code>name</code> attributes of
|
||||
* the <code>Element</code> and <code>Attr</code> interfaces, when
|
||||
* applicable.
|
||||
* <br>Setting the prefix to <code>null</code> makes it unspecified,
|
||||
* setting it to an empty string is implementation dependent.
|
||||
* <br>Note also that changing the prefix of an attribute that is known to
|
||||
* have a default value, does not make a new attribute with the default
|
||||
* value and the original prefix appear, since the
|
||||
* <code>namespaceURI</code> and <code>localName</code> do not change.
|
||||
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
|
||||
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
|
||||
* method, such as <code>createElement</code> from the
|
||||
* <code>Document</code> interface, this is always <code>null</code>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getPrefix();
|
||||
/**
|
||||
* The namespace prefix of this node, or <code>null</code> if it is
|
||||
* unspecified. When it is defined to be <code>null</code>, setting it
|
||||
* has no effect, including if the node is read-only.
|
||||
* <br>Note that setting this attribute, when permitted, changes the
|
||||
* <code>nodeName</code> attribute, which holds the qualified name, as
|
||||
* well as the <code>tagName</code> and <code>name</code> attributes of
|
||||
* the <code>Element</code> and <code>Attr</code> interfaces, when
|
||||
* applicable.
|
||||
* <br>Setting the prefix to <code>null</code> makes it unspecified,
|
||||
* setting it to an empty string is implementation dependent.
|
||||
* <br>Note also that changing the prefix of an attribute that is known to
|
||||
* have a default value, does not make a new attribute with the default
|
||||
* value and the original prefix appear, since the
|
||||
* <code>namespaceURI</code> and <code>localName</code> do not change.
|
||||
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
|
||||
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
|
||||
* method, such as <code>createElement</code> from the
|
||||
* <code>Document</code> interface, this is always <code>null</code>.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified prefix contains an
|
||||
* illegal character according to the XML version in use specified in
|
||||
* the <code>Document.xmlVersion</code> attribute.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
* <br>NAMESPACE_ERR: Raised if the specified <code>prefix</code> is
|
||||
* malformed per the Namespaces in XML specification, if the
|
||||
* <code>namespaceURI</code> of this node is <code>null</code>, if the
|
||||
* specified prefix is "xml" and the <code>namespaceURI</code> of this
|
||||
* node is different from "<a href='http://www.w3.org/XML/1998/namespace'>
|
||||
* http://www.w3.org/XML/1998/namespace</a>", if this node is an attribute and the specified prefix is "xmlns" and
|
||||
* the <code>namespaceURI</code> of this node is different from "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>", or if this node is an attribute and the <code>qualifiedName</code> of
|
||||
* this node is "xmlns" [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
|
||||
* .
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public void setPrefix(String prefix)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns the local part of the qualified name of this node.
|
||||
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
|
||||
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
|
||||
* method, such as <code>Document.createElement()</code>, this is always
|
||||
* <code>null</code>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public String getLocalName();
|
||||
|
||||
/**
|
||||
* Returns whether this node (if it is an element) has any attributes.
|
||||
* @return Returns <code>true</code> if this node has any attributes,
|
||||
* <code>false</code> otherwise.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public boolean hasAttributes();
|
||||
|
||||
/**
|
||||
* The absolute base URI of this node or <code>null</code> if the
|
||||
* implementation wasn't able to obtain an absolute URI. This value is
|
||||
* computed as described in . However, when the <code>Document</code>
|
||||
* supports the feature "HTML" [<a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>DOM Level 2 HTML</a>]
|
||||
* , the base URI is computed using first the value of the href
|
||||
* attribute of the HTML BASE element if any, and the value of the
|
||||
* <code>documentURI</code> attribute from the <code>Document</code>
|
||||
* interface otherwise.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getBaseURI();
|
||||
|
||||
// DocumentPosition
|
||||
/**
|
||||
* The two nodes are disconnected. Order between disconnected nodes is
|
||||
* always implementation-specific.
|
||||
*/
|
||||
public static final short DOCUMENT_POSITION_DISCONNECTED = 0x01;
|
||||
/**
|
||||
* The second node precedes the reference node.
|
||||
*/
|
||||
public static final short DOCUMENT_POSITION_PRECEDING = 0x02;
|
||||
/**
|
||||
* The node follows the reference node.
|
||||
*/
|
||||
public static final short DOCUMENT_POSITION_FOLLOWING = 0x04;
|
||||
/**
|
||||
* The node contains the reference node. A node which contains is always
|
||||
* preceding, too.
|
||||
*/
|
||||
public static final short DOCUMENT_POSITION_CONTAINS = 0x08;
|
||||
/**
|
||||
* The node is contained by the reference node. A node which is contained
|
||||
* is always following, too.
|
||||
*/
|
||||
public static final short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
|
||||
/**
|
||||
* The determination of preceding versus following is
|
||||
* implementation-specific.
|
||||
*/
|
||||
public static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
|
||||
|
||||
/**
|
||||
* Compares the reference node, i.e. the node on which this method is
|
||||
* being called, with a node, i.e. the one passed as a parameter, with
|
||||
* regard to their position in the document and according to the
|
||||
* document order.
|
||||
* @param other The node to compare against the reference node.
|
||||
* @return Returns how the node is positioned relatively to the reference
|
||||
* node.
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: when the compared nodes are from different DOM
|
||||
* implementations that do not coordinate to return consistent
|
||||
* implementation-specific results.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public short compareDocumentPosition(Node other)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This attribute returns the text content of this node and its
|
||||
* descendants. When it is defined to be <code>null</code>, setting it
|
||||
* has no effect. On setting, any possible children this node may have
|
||||
* are removed and, if it the new string is not empty or
|
||||
* <code>null</code>, replaced by a single <code>Text</code> node
|
||||
* containing the string this attribute is set to.
|
||||
* <br> On getting, no serialization is performed, the returned string
|
||||
* does not contain any markup. No whitespace normalization is performed
|
||||
* and the returned string does not contain the white spaces in element
|
||||
* content (see the attribute
|
||||
* <code>Text.isElementContentWhitespace</code>). Similarly, on setting,
|
||||
* no parsing is performed either, the input string is taken as pure
|
||||
* textual content.
|
||||
* <br>The string returned is made of the text content of this node
|
||||
* depending on its type, as defined below:
|
||||
* <table border='1' cellpadding='3'>
|
||||
* <tr>
|
||||
* <th>Node type</th>
|
||||
* <th>Content</th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* ELEMENT_NODE, ATTRIBUTE_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE,
|
||||
* DOCUMENT_FRAGMENT_NODE</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>concatenation of the <code>textContent</code>
|
||||
* attribute value of every child node, excluding COMMENT_NODE and
|
||||
* PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if the
|
||||
* node has no children.</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE,
|
||||
* PROCESSING_INSTRUCTION_NODE</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>nodeValue</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>DOCUMENT_NODE,
|
||||
* DOCUMENT_TYPE_NODE, NOTATION_NODE</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><em>null</em></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
* @exception DOMException
|
||||
* DOMSTRING_SIZE_ERR: Raised when it would return more characters than
|
||||
* fit in a <code>DOMString</code> variable on the implementation
|
||||
* platform.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getTextContent()
|
||||
throws DOMException;
|
||||
/**
|
||||
* This attribute returns the text content of this node and its
|
||||
* descendants. When it is defined to be <code>null</code>, setting it
|
||||
* has no effect. On setting, any possible children this node may have
|
||||
* are removed and, if it the new string is not empty or
|
||||
* <code>null</code>, replaced by a single <code>Text</code> node
|
||||
* containing the string this attribute is set to.
|
||||
* <br> On getting, no serialization is performed, the returned string
|
||||
* does not contain any markup. No whitespace normalization is performed
|
||||
* and the returned string does not contain the white spaces in element
|
||||
* content (see the attribute
|
||||
* <code>Text.isElementContentWhitespace</code>). Similarly, on setting,
|
||||
* no parsing is performed either, the input string is taken as pure
|
||||
* textual content.
|
||||
* <br>The string returned is made of the text content of this node
|
||||
* depending on its type, as defined below:
|
||||
* <table border='1' cellpadding='3'>
|
||||
* <tr>
|
||||
* <th>Node type</th>
|
||||
* <th>Content</th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* ELEMENT_NODE, ATTRIBUTE_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE,
|
||||
* DOCUMENT_FRAGMENT_NODE</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>concatenation of the <code>textContent</code>
|
||||
* attribute value of every child node, excluding COMMENT_NODE and
|
||||
* PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if the
|
||||
* node has no children.</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE,
|
||||
* PROCESSING_INSTRUCTION_NODE</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>nodeValue</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>DOCUMENT_NODE,
|
||||
* DOCUMENT_TYPE_NODE, NOTATION_NODE</td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><em>null</em></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public void setTextContent(String textContent)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns whether this node is the same node as the given one.
|
||||
* <br>This method provides a way to determine whether two
|
||||
* <code>Node</code> references returned by the implementation reference
|
||||
* the same object. When two <code>Node</code> references are references
|
||||
* to the same object, even if through a proxy, the references may be
|
||||
* used completely interchangeably, such that all attributes have the
|
||||
* same values and calling the same DOM method on either reference
|
||||
* always has exactly the same effect.
|
||||
* @param other The node to test against.
|
||||
* @return Returns <code>true</code> if the nodes are the same,
|
||||
* <code>false</code> otherwise.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public boolean isSameNode(Node other);
|
||||
|
||||
/**
|
||||
* Look up the prefix associated to the given namespace URI, starting from
|
||||
* this node. The default namespace declarations are ignored by this
|
||||
* method.
|
||||
* <br>See for details on the algorithm used by this method.
|
||||
* @param namespaceURI The namespace URI to look for.
|
||||
* @return Returns an associated namespace prefix if found or
|
||||
* <code>null</code> if none is found. If more than one prefix are
|
||||
* associated to the namespace prefix, the returned namespace prefix
|
||||
* is implementation dependent.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String lookupPrefix(String namespaceURI);
|
||||
|
||||
/**
|
||||
* This method checks if the specified <code>namespaceURI</code> is the
|
||||
* default namespace or not.
|
||||
* @param namespaceURI The namespace URI to look for.
|
||||
* @return Returns <code>true</code> if the specified
|
||||
* <code>namespaceURI</code> is the default namespace,
|
||||
* <code>false</code> otherwise.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public boolean isDefaultNamespace(String namespaceURI);
|
||||
|
||||
/**
|
||||
* Look up the namespace URI associated to the given prefix, starting from
|
||||
* this node.
|
||||
* <br>See for details on the algorithm used by this method.
|
||||
* @param prefix The prefix to look for. If this parameter is
|
||||
* <code>null</code>, the method will return the default namespace URI
|
||||
* if any.
|
||||
* @return Returns the associated namespace URI or <code>null</code> if
|
||||
* none is found.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String lookupNamespaceURI(String prefix);
|
||||
|
||||
/**
|
||||
* Tests whether two nodes are equal.
|
||||
* <br>This method tests for equality of nodes, not sameness (i.e.,
|
||||
* whether the two nodes are references to the same object) which can be
|
||||
* tested with <code>Node.isSameNode()</code>. All nodes that are the
|
||||
* same will also be equal, though the reverse may not be true.
|
||||
* <br>Two nodes are equal if and only if the following conditions are
|
||||
* satisfied:
|
||||
* <ul>
|
||||
* <li>The two nodes are of the same type.
|
||||
* </li>
|
||||
* <li>The following string
|
||||
* attributes are equal: <code>nodeName</code>, <code>localName</code>,
|
||||
* <code>namespaceURI</code>, <code>prefix</code>, <code>nodeValue</code>
|
||||
* . This is: they are both <code>null</code>, or they have the same
|
||||
* length and are character for character identical.
|
||||
* </li>
|
||||
* <li>The
|
||||
* <code>attributes</code> <code>NamedNodeMaps</code> are equal. This
|
||||
* is: they are both <code>null</code>, or they have the same length and
|
||||
* for each node that exists in one map there is a node that exists in
|
||||
* the other map and is equal, although not necessarily at the same
|
||||
* index.
|
||||
* </li>
|
||||
* <li>The <code>childNodes</code> <code>NodeLists</code> are equal.
|
||||
* This is: they are both <code>null</code>, or they have the same
|
||||
* length and contain equal nodes at the same index. Note that
|
||||
* normalization can affect equality; to avoid this, nodes should be
|
||||
* normalized before being compared.
|
||||
* </li>
|
||||
* </ul>
|
||||
* <br>For two <code>DocumentType</code> nodes to be equal, the following
|
||||
* conditions must also be satisfied:
|
||||
* <ul>
|
||||
* <li>The following string attributes
|
||||
* are equal: <code>publicId</code>, <code>systemId</code>,
|
||||
* <code>internalSubset</code>.
|
||||
* </li>
|
||||
* <li>The <code>entities</code>
|
||||
* <code>NamedNodeMaps</code> are equal.
|
||||
* </li>
|
||||
* <li>The <code>notations</code>
|
||||
* <code>NamedNodeMaps</code> are equal.
|
||||
* </li>
|
||||
* </ul>
|
||||
* <br>On the other hand, the following do not affect equality: the
|
||||
* <code>ownerDocument</code>, <code>baseURI</code>, and
|
||||
* <code>parentNode</code> attributes, the <code>specified</code>
|
||||
* attribute for <code>Attr</code> nodes, the <code>schemaTypeInfo</code>
|
||||
* attribute for <code>Attr</code> and <code>Element</code> nodes, the
|
||||
* <code>Text.isElementContentWhitespace</code> attribute for
|
||||
* <code>Text</code> nodes, as well as any user data or event listeners
|
||||
* registered on the nodes.
|
||||
* <p ><b>Note:</b> As a general rule, anything not mentioned in the
|
||||
* description above is not significant in consideration of equality
|
||||
* checking. Note that future versions of this specification may take
|
||||
* into account more attributes and implementations conform to this
|
||||
* specification are expected to be updated accordingly.
|
||||
* @param arg The node to compare equality with.
|
||||
* @return Returns <code>true</code> if the nodes are equal,
|
||||
* <code>false</code> otherwise.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public boolean isEqualNode(Node arg);
|
||||
|
||||
/**
|
||||
* This method returns a specialized object which implements the
|
||||
* specialized APIs of the specified feature and version, as specified
|
||||
* in . The specialized object may also be obtained by using
|
||||
* binding-specific casting methods but is not necessarily expected to,
|
||||
* as discussed in . This method also allow the implementation to
|
||||
* provide specialized objects which do not support the <code>Node</code>
|
||||
* interface.
|
||||
* @param feature The name of the feature requested. Note that any plus
|
||||
* sign "+" prepended to the name of the feature will be ignored since
|
||||
* it is not significant in the context of this method.
|
||||
* @param version This is the version number of the feature to test.
|
||||
* @return Returns an object which implements the specialized APIs of
|
||||
* the specified feature and version, if any, or <code>null</code> if
|
||||
* there is no object which implements interfaces associated with that
|
||||
* feature. If the <code>DOMObject</code> returned by this method
|
||||
* implements the <code>Node</code> interface, it must delegate to the
|
||||
* primary core <code>Node</code> and not return results inconsistent
|
||||
* with the primary core <code>Node</code> such as attributes,
|
||||
* childNodes, etc.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public Object getFeature(String feature,
|
||||
String version);
|
||||
|
||||
/**
|
||||
* Associate an object to a key on this node. The object can later be
|
||||
* retrieved from this node by calling <code>getUserData</code> with the
|
||||
* same key.
|
||||
* @param key The key to associate the object to.
|
||||
* @param data The object to associate to the given key, or
|
||||
* <code>null</code> to remove any existing association to that key.
|
||||
* @param handler The handler to associate to that key, or
|
||||
* <code>null</code>.
|
||||
* @return Returns the <code>DOMUserData</code> previously associated to
|
||||
* the given key on this node, or <code>null</code> if there was none.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public Object setUserData(String key,
|
||||
Object data,
|
||||
UserDataHandler handler);
|
||||
|
||||
/**
|
||||
* Retrieves the object associated to a key on a this node. The object
|
||||
* must first have been set to this node by calling
|
||||
* <code>setUserData</code> with the same key.
|
||||
* @param key The key the object is associated to.
|
||||
* @return Returns the <code>DOMUserData</code> associated to the given
|
||||
* key on this node, or <code>null</code> if there was none.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public Object getUserData(String key);
|
||||
|
||||
}
|
@ -1,41 +1,41 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>NodeList</code> interface provides the abstraction of an ordered
|
||||
* collection of nodes, without defining or constraining how this collection
|
||||
* is implemented. <code>NodeList</code> objects in the DOM are live.
|
||||
* <p>The items in the <code>NodeList</code> are accessible via an integral
|
||||
* index, starting from 0.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||
*/
|
||||
public interface NodeList {
|
||||
/**
|
||||
* Returns the <code>index</code>th item in the collection. If
|
||||
* <code>index</code> is greater than or equal to the number of nodes in
|
||||
* the list, this returns <code>null</code>.
|
||||
* @param indexIndex into the collection.
|
||||
* @return The node at the <code>index</code>th position in the
|
||||
* <code>NodeList</code>, or <code>null</code> if that is not a valid
|
||||
* index.
|
||||
*/
|
||||
public Node item(int index);
|
||||
|
||||
/**
|
||||
* The number of nodes in the list. The range of valid child node indices
|
||||
* is 0 to <code>length-1</code> inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>NodeList</code> interface provides the abstraction of an ordered
|
||||
* collection of nodes, without defining or constraining how this collection
|
||||
* is implemented. <code>NodeList</code> objects in the DOM are live.
|
||||
* <p>The items in the <code>NodeList</code> are accessible via an integral
|
||||
* index, starting from 0.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface NodeList {
|
||||
/**
|
||||
* Returns the <code>index</code>th item in the collection. If
|
||||
* <code>index</code> is greater than or equal to the number of nodes in
|
||||
* the list, this returns <code>null</code>.
|
||||
* @param index Index into the collection.
|
||||
* @return The node at the <code>index</code>th position in the
|
||||
* <code>NodeList</code>, or <code>null</code> if that is not a valid
|
||||
* index.
|
||||
*/
|
||||
public Node item(int index);
|
||||
|
||||
/**
|
||||
* The number of nodes in the list. The range of valid child node indices
|
||||
* is 0 to <code>length-1</code> inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
}
|
40
libjava/external/w3c_dom/org/w3c/dom/Notation.java
vendored
Normal file
40
libjava/external/w3c_dom/org/w3c/dom/Notation.java
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* This interface represents a notation declared in the DTD. A notation either
|
||||
* declares, by name, the format of an unparsed entity (see <a href='http://www.w3.org/TR/2004/REC-xml-20040204#Notations'>section 4.7</a> of the XML 1.0 specification [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]), or is
|
||||
* used for formal declaration of processing instruction targets (see <a href='http://www.w3.org/TR/2004/REC-xml-20040204#sec-pi'>section 2.6</a> of the XML 1.0 specification [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]). The
|
||||
* <code>nodeName</code> attribute inherited from <code>Node</code> is set
|
||||
* to the declared name of the notation.
|
||||
* <p>The DOM Core does not support editing <code>Notation</code> nodes; they
|
||||
* are therefore readonly.
|
||||
* <p>A <code>Notation</code> node does not have any parent.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface Notation extends Node {
|
||||
/**
|
||||
* The public identifier of this notation. If the public identifier was
|
||||
* not specified, this is <code>null</code>.
|
||||
*/
|
||||
public String getPublicId();
|
||||
|
||||
/**
|
||||
* The system identifier of this notation. If the system identifier was
|
||||
* not specified, this is <code>null</code>. This may be an absolute URI
|
||||
* or not.
|
||||
*/
|
||||
public String getSystemId();
|
||||
|
||||
}
|
51
libjava/external/w3c_dom/org/w3c/dom/ProcessingInstruction.java
vendored
Normal file
51
libjava/external/w3c_dom/org/w3c/dom/ProcessingInstruction.java
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>ProcessingInstruction</code> interface represents a "processing
|
||||
* instruction", used in XML as a way to keep processor-specific information
|
||||
* in the text of the document.
|
||||
* <p> No lexical check is done on the content of a processing instruction and
|
||||
* it is therefore possible to have the character sequence
|
||||
* <code>"?>"</code> in the content, which is illegal a processing
|
||||
* instruction per section 2.6 of [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]. The
|
||||
* presence of this character sequence must generate a fatal error during
|
||||
* serialization.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface ProcessingInstruction extends Node {
|
||||
/**
|
||||
* The target of this processing instruction. XML defines this as being
|
||||
* the first token following the markup that begins the processing
|
||||
* instruction.
|
||||
*/
|
||||
public String getTarget();
|
||||
|
||||
/**
|
||||
* The content of this processing instruction. This is from the first non
|
||||
* white space character after the target to the character immediately
|
||||
* preceding the <code>?></code>.
|
||||
*/
|
||||
public String getData();
|
||||
/**
|
||||
* The content of this processing instruction. This is from the first non
|
||||
* white space character after the target to the character immediately
|
||||
* preceding the <code>?></code>.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||
*/
|
||||
public void setData(String data)
|
||||
throws DOMException;
|
||||
|
||||
}
|
126
libjava/external/w3c_dom/org/w3c/dom/Text.java
vendored
Normal file
126
libjava/external/w3c_dom/org/w3c/dom/Text.java
vendored
Normal file
@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>Text</code> interface inherits from <code>CharacterData</code>
|
||||
* and represents the textual content (termed <a href='http://www.w3.org/TR/2004/REC-xml-20040204#syntax'>character data</a> in XML) of an <code>Element</code> or <code>Attr</code>. If there is no
|
||||
* markup inside an element's content, the text is contained in a single
|
||||
* object implementing the <code>Text</code> interface that is the only
|
||||
* child of the element. If there is markup, it is parsed into the
|
||||
* information items (elements, comments, etc.) and <code>Text</code> nodes
|
||||
* that form the list of children of the element.
|
||||
* <p>When a document is first made available via the DOM, there is only one
|
||||
* <code>Text</code> node for each block of text. Users may create adjacent
|
||||
* <code>Text</code> nodes that represent the contents of a given element
|
||||
* without any intervening markup, but should be aware that there is no way
|
||||
* to represent the separations between these nodes in XML or HTML, so they
|
||||
* will not (in general) persist between DOM editing sessions. The
|
||||
* <code>Node.normalize()</code> method merges any such adjacent
|
||||
* <code>Text</code> objects into a single node for each block of text.
|
||||
* <p> No lexical check is done on the content of a <code>Text</code> node
|
||||
* and, depending on its position in the document, some characters must be
|
||||
* escaped during serialization using character references; e.g. the
|
||||
* characters "<&" if the textual content is part of an element or of
|
||||
* an attribute, the character sequence "]]>" when part of an element,
|
||||
* the quotation mark character " or the apostrophe character ' when part of
|
||||
* an attribute.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
*/
|
||||
public interface Text extends CharacterData {
|
||||
/**
|
||||
* Breaks this node into two nodes at the specified <code>offset</code>,
|
||||
* keeping both in the tree as siblings. After being split, this node
|
||||
* will contain all the content up to the <code>offset</code> point. A
|
||||
* new node of the same type, which contains all the content at and
|
||||
* after the <code>offset</code> point, is returned. If the original
|
||||
* node had a parent node, the new node is inserted as the next sibling
|
||||
* of the original node. When the <code>offset</code> is equal to the
|
||||
* length of this node, the new node has no data.
|
||||
* @param offset The 16-bit unit offset at which to split, starting from
|
||||
* <code>0</code>.
|
||||
* @return The new node, of the same type as this node.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
|
||||
* than the number of 16-bit units in <code>data</code>.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||
*/
|
||||
public Text splitText(int offset)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Returns whether this text node contains <a href='http://www.w3.org/TR/2004/REC-xml-infoset-20040204#infoitem.character'>
|
||||
* element content whitespace</a>, often abusively called "ignorable whitespace". The text node is
|
||||
* determined to contain whitespace in element content during the load
|
||||
* of the document or if validation occurs while using
|
||||
* <code>Document.normalizeDocument()</code>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public boolean isElementContentWhitespace();
|
||||
|
||||
/**
|
||||
* Returns all text of <code>Text</code> nodes logically-adjacent text
|
||||
* nodes to this node, concatenated in document order.
|
||||
* <br>For instance, in the example below <code>wholeText</code> on the
|
||||
* <code>Text</code> node that contains "bar" returns "barfoo", while on
|
||||
* the <code>Text</code> node that contains "foo" it returns "barfoo".
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public String getWholeText();
|
||||
|
||||
/**
|
||||
* Replaces the text of the current node and all logically-adjacent text
|
||||
* nodes with the specified text. All logically-adjacent text nodes are
|
||||
* removed including the current node unless it was the recipient of the
|
||||
* replacement text.
|
||||
* <br>This method returns the node which received the replacement text.
|
||||
* The returned node is:
|
||||
* <ul>
|
||||
* <li><code>null</code>, when the replacement text is
|
||||
* the empty string;
|
||||
* </li>
|
||||
* <li>the current node, except when the current node is
|
||||
* read-only;
|
||||
* </li>
|
||||
* <li> a new <code>Text</code> node of the same type (
|
||||
* <code>Text</code> or <code>CDATASection</code>) as the current node
|
||||
* inserted at the location of the replacement.
|
||||
* </li>
|
||||
* </ul>
|
||||
* <br>For instance, in the above example calling
|
||||
* <code>replaceWholeText</code> on the <code>Text</code> node that
|
||||
* contains "bar" with "yo" in argument results in the following:
|
||||
* <br>Where the nodes to be removed are read-only descendants of an
|
||||
* <code>EntityReference</code>, the <code>EntityReference</code> must
|
||||
* be removed instead of the read-only nodes. If any
|
||||
* <code>EntityReference</code> to be removed has descendants that are
|
||||
* not <code>EntityReference</code>, <code>Text</code>, or
|
||||
* <code>CDATASection</code> nodes, the <code>replaceWholeText</code>
|
||||
* method must fail before performing any modification of the document,
|
||||
* raising a <code>DOMException</code> with the code
|
||||
* <code>NO_MODIFICATION_ALLOWED_ERR</code>.
|
||||
* <br>For instance, in the example below calling
|
||||
* <code>replaceWholeText</code> on the <code>Text</code> node that
|
||||
* contains "bar" fails, because the <code>EntityReference</code> node
|
||||
* "ent" contains an <code>Element</code> node which cannot be removed.
|
||||
* @param content The content of the replacing <code>Text</code> node.
|
||||
* @return The <code>Text</code> node created with the specified content.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if one of the <code>Text</code>
|
||||
* nodes being replaced is readonly.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public Text replaceWholeText(String content)
|
||||
throws DOMException;
|
||||
|
||||
}
|
185
libjava/external/w3c_dom/org/w3c/dom/TypeInfo.java
vendored
Normal file
185
libjava/external/w3c_dom/org/w3c/dom/TypeInfo.java
vendored
Normal file
@ -0,0 +1,185 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* The <code>TypeInfo</code> interface represents a type referenced from
|
||||
* <code>Element</code> or <code>Attr</code> nodes, specified in the schemas
|
||||
* associated with the document. The type is a pair of a namespace URI and
|
||||
* name properties, and depends on the document's schema.
|
||||
* <p> If the document's schema is an XML DTD [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>], the values
|
||||
* are computed as follows:
|
||||
* <ul>
|
||||
* <li> If this type is referenced from an
|
||||
* <code>Attr</code> node, <code>typeNamespace</code> is
|
||||
* <code>"http://www.w3.org/TR/REC-xml"</code> and <code>typeName</code>
|
||||
* represents the <b>[attribute type]</b> property in the [<a href='http://www.w3.org/TR/2004/REC-xml-infoset-20040204/'>XML Information Set</a>]
|
||||
* . If there is no declaration for the attribute, <code>typeNamespace</code>
|
||||
* and <code>typeName</code> are <code>null</code>.
|
||||
* </li>
|
||||
* <li> If this type is
|
||||
* referenced from an <code>Element</code> node, <code>typeNamespace</code>
|
||||
* and <code>typeName</code> are <code>null</code>.
|
||||
* </li>
|
||||
* </ul>
|
||||
* <p> If the document's schema is an XML Schema [<a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/'>XML Schema Part 1</a>]
|
||||
* , the values are computed as follows using the post-schema-validation
|
||||
* infoset contributions (also called PSVI contributions):
|
||||
* <ul>
|
||||
* <li> If the <b>[validity]</b> property exists AND is <em>"invalid"</em> or <em>"notKnown"</em>: the {target namespace} and {name} properties of the declared type if
|
||||
* available, otherwise <code>null</code>.
|
||||
* <p ><b>Note:</b> At the time of writing, the XML Schema specification does
|
||||
* not require exposing the declared type. Thus, DOM implementations might
|
||||
* choose not to provide type information if validity is not valid.
|
||||
* </li>
|
||||
* <li> If the <b>[validity]</b> property exists and is <em>"valid"</em>:
|
||||
* <ol>
|
||||
* <li> If <b>[member type definition]</b> exists:
|
||||
* <ol>
|
||||
* <li>If {name} is not absent, then expose {name} and {target
|
||||
* namespace} properties of the <b>[member type definition]</b> property;
|
||||
* </li>
|
||||
* <li>Otherwise, expose the namespace and local name of the
|
||||
* corresponding anonymous type name.
|
||||
* </li>
|
||||
* </ol>
|
||||
* </li>
|
||||
* <li> If the <b>[type definition]</b> property exists:
|
||||
* <ol>
|
||||
* <li>If {name} is not absent, then expose {name} and {target
|
||||
* namespace} properties of the <b>[type definition]</b> property;
|
||||
* </li>
|
||||
* <li>Otherwise, expose the namespace and local name of the
|
||||
* corresponding anonymous type name.
|
||||
* </li>
|
||||
* </ol>
|
||||
* </li>
|
||||
* <li> If the <b>[member type definition anonymous]</b> exists:
|
||||
* <ol>
|
||||
* <li>If it is false, then expose <b>[member type definition name]</b> and <b>[member type definition namespace]</b> properties;
|
||||
* </li>
|
||||
* <li>Otherwise, expose the namespace and local name of the
|
||||
* corresponding anonymous type name.
|
||||
* </li>
|
||||
* </ol>
|
||||
* </li>
|
||||
* <li> If the <b>[type definition anonymous]</b> exists:
|
||||
* <ol>
|
||||
* <li>If it is false, then expose <b>[type definition name]</b> and <b>[type definition namespace]</b> properties;
|
||||
* </li>
|
||||
* <li>Otherwise, expose the namespace and local name of the
|
||||
* corresponding anonymous type name.
|
||||
* </li>
|
||||
* </ol>
|
||||
* </li>
|
||||
* </ol>
|
||||
* </li>
|
||||
* </ul>
|
||||
* <p ><b>Note:</b> Other schema languages are outside the scope of the W3C
|
||||
* and therefore should define how to represent their type systems using
|
||||
* <code>TypeInfo</code>.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface TypeInfo {
|
||||
/**
|
||||
* The name of a type declared for the associated element or attribute,
|
||||
* or <code>null</code> if unknown.
|
||||
*/
|
||||
public String getTypeName();
|
||||
|
||||
/**
|
||||
* The namespace of the type declared for the associated element or
|
||||
* attribute or <code>null</code> if the element does not have
|
||||
* declaration or if no namespace information is available.
|
||||
*/
|
||||
public String getTypeNamespace();
|
||||
|
||||
// DerivationMethods
|
||||
/**
|
||||
* If the document's schema is an XML Schema [<a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/'>XML Schema Part 1</a>]
|
||||
* , this constant represents the derivation by <a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#key-typeRestriction'>
|
||||
* restriction</a> if complex types are involved, or a <a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-restriction'>
|
||||
* restriction</a> if simple types are involved.
|
||||
* <br> The reference type definition is derived by restriction from the
|
||||
* other type definition if the other type definition is the same as the
|
||||
* reference type definition, or if the other type definition can be
|
||||
* reached recursively following the {base type definition} property
|
||||
* from the reference type definition, and all the <em>derivation methods</em> involved are restriction.
|
||||
*/
|
||||
public static final int DERIVATION_RESTRICTION = 0x00000001;
|
||||
/**
|
||||
* If the document's schema is an XML Schema [<a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/'>XML Schema Part 1</a>]
|
||||
* , this constant represents the derivation by <a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#key-typeExtension'>
|
||||
* extension</a>.
|
||||
* <br> The reference type definition is derived by extension from the
|
||||
* other type definition if the other type definition can be reached
|
||||
* recursively following the {base type definition} property from the
|
||||
* reference type definition, and at least one of the <em>derivation methods</em> involved is an extension.
|
||||
*/
|
||||
public static final int DERIVATION_EXTENSION = 0x00000002;
|
||||
/**
|
||||
* If the document's schema is an XML Schema [<a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/'>XML Schema Part 1</a>]
|
||||
* , this constant represents the <a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-union'>
|
||||
* union</a> if simple types are involved.
|
||||
* <br> The reference type definition is derived by union from the other
|
||||
* type definition if there exists two type definitions T1 and T2 such
|
||||
* as the reference type definition is derived from T1 by
|
||||
* <code>DERIVATION_RESTRICTION</code> or
|
||||
* <code>DERIVATION_EXTENSION</code>, T2 is derived from the other type
|
||||
* definition by <code>DERIVATION_RESTRICTION</code>, T1 has {variety} <em>union</em>, and one of the {member type definitions} is T2. Note that T1 could be
|
||||
* the same as the reference type definition, and T2 could be the same
|
||||
* as the other type definition.
|
||||
*/
|
||||
public static final int DERIVATION_UNION = 0x00000004;
|
||||
/**
|
||||
* If the document's schema is an XML Schema [<a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/'>XML Schema Part 1</a>]
|
||||
* , this constant represents the <a href='http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-list'>list</a>.
|
||||
* <br> The reference type definition is derived by list from the other
|
||||
* type definition if there exists two type definitions T1 and T2 such
|
||||
* as the reference type definition is derived from T1 by
|
||||
* <code>DERIVATION_RESTRICTION</code> or
|
||||
* <code>DERIVATION_EXTENSION</code>, T2 is derived from the other type
|
||||
* definition by <code>DERIVATION_RESTRICTION</code>, T1 has {variety} <em>list</em>, and T2 is the {item type definition}. Note that T1 could be the same as
|
||||
* the reference type definition, and T2 could be the same as the other
|
||||
* type definition.
|
||||
*/
|
||||
public static final int DERIVATION_LIST = 0x00000008;
|
||||
|
||||
/**
|
||||
* This method returns if there is a derivation between the reference
|
||||
* type definition, i.e. the <code>TypeInfo</code> on which the method
|
||||
* is being called, and the other type definition, i.e. the one passed
|
||||
* as parameters.
|
||||
* @param typeNamespaceArg the namespace of the other type definition.
|
||||
* @param typeNameArg the name of the other type definition.
|
||||
* @param derivationMethod the type of derivation and conditions applied
|
||||
* between two types, as described in the list of constants provided
|
||||
* in this interface.
|
||||
* @return If the document's schema is a DTD or no schema is associated
|
||||
* with the document, this method will always return <code>false</code>
|
||||
* . If the document's schema is an XML Schema, the method will
|
||||
* <code>true</code> if the reference type definition is derived from
|
||||
* the other type definition according to the derivation parameter. If
|
||||
* the value of the parameter is <code>0</code> (no bit is set to
|
||||
* <code>1</code> for the <code>derivationMethod</code> parameter),
|
||||
* the method will return <code>true</code> if the other type
|
||||
* definition can be reached by recursing any combination of {base
|
||||
* type definition}, {item type definition}, or {member type
|
||||
* definitions} from the reference type definition.
|
||||
*/
|
||||
public boolean isDerivedFrom(String typeNamespaceArg,
|
||||
String typeNameArg,
|
||||
int derivationMethod);
|
||||
|
||||
}
|
72
libjava/external/w3c_dom/org/w3c/dom/UserDataHandler.java
vendored
Normal file
72
libjava/external/w3c_dom/org/w3c/dom/UserDataHandler.java
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* When associating an object to a key on a node using
|
||||
* <code>Node.setUserData()</code> the application can provide a handler
|
||||
* that gets called when the node the object is associated to is being
|
||||
* cloned, imported, or renamed. This can be used by the application to
|
||||
* implement various behaviors regarding the data it associates to the DOM
|
||||
* nodes. This interface defines that handler.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public interface UserDataHandler {
|
||||
// OperationType
|
||||
/**
|
||||
* The node is cloned, using <code>Node.cloneNode()</code>.
|
||||
*/
|
||||
public static final short NODE_CLONED = 1;
|
||||
/**
|
||||
* The node is imported, using <code>Document.importNode()</code>.
|
||||
*/
|
||||
public static final short NODE_IMPORTED = 2;
|
||||
/**
|
||||
* The node is deleted.
|
||||
* <p ><b>Note:</b> This may not be supported or may not be reliable in
|
||||
* certain environments, such as Java, where the implementation has no
|
||||
* real control over when objects are actually deleted.
|
||||
*/
|
||||
public static final short NODE_DELETED = 3;
|
||||
/**
|
||||
* The node is renamed, using <code>Document.renameNode()</code>.
|
||||
*/
|
||||
public static final short NODE_RENAMED = 4;
|
||||
/**
|
||||
* The node is adopted, using <code>Document.adoptNode()</code>.
|
||||
*/
|
||||
public static final short NODE_ADOPTED = 5;
|
||||
|
||||
/**
|
||||
* This method is called whenever the node for which this handler is
|
||||
* registered is imported or cloned.
|
||||
* <br> DOM applications must not raise exceptions in a
|
||||
* <code>UserDataHandler</code>. The effect of throwing exceptions from
|
||||
* the handler is DOM implementation dependent.
|
||||
* @param operation Specifies the type of operation that is being
|
||||
* performed on the node.
|
||||
* @param key Specifies the key for which this handler is being called.
|
||||
* @param data Specifies the data for which this handler is being called.
|
||||
* @param src Specifies the node being cloned, adopted, imported, or
|
||||
* renamed. This is <code>null</code> when the node is being deleted.
|
||||
* @param dst Specifies the node newly created if any, or
|
||||
* <code>null</code>.
|
||||
*/
|
||||
public void handle(short operation,
|
||||
String key,
|
||||
Object data,
|
||||
Node src,
|
||||
Node dst);
|
||||
|
||||
}
|
387
libjava/external/w3c_dom/org/w3c/dom/bootstrap/DOMImplementationRegistry.java
vendored
Normal file
387
libjava/external/w3c_dom/org/w3c/dom/bootstrap/DOMImplementationRegistry.java
vendored
Normal file
@ -0,0 +1,387 @@
|
||||
/*
|
||||
* Copyright (c) 2004 World Wide Web Consortium,
|
||||
*
|
||||
* (Massachusetts Institute of Technology, European Research Consortium for
|
||||
* Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
* work is distributed under the W3C(r) Software License [1] 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.
|
||||
*
|
||||
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
package org.w3c.dom.bootstrap;
|
||||
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.Vector;
|
||||
import org.w3c.dom.DOMImplementationSource;
|
||||
import org.w3c.dom.DOMImplementationList;
|
||||
import org.w3c.dom.DOMImplementation;
|
||||
import java.io.InputStream;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
|
||||
/**
|
||||
* A factory that enables applications to obtain instances of
|
||||
* <code>DOMImplementation</code>.
|
||||
*
|
||||
* <p>
|
||||
* Example:
|
||||
* </p>
|
||||
*
|
||||
* <pre class='example'>
|
||||
* // get an instance of the DOMImplementation registry
|
||||
* DOMImplementationRegistry registry =
|
||||
* DOMImplementationRegistry.newInstance();
|
||||
* // get a DOM implementation the Level 3 XML module
|
||||
* DOMImplementation domImpl =
|
||||
* registry.getDOMImplementation("XML 3.0");
|
||||
* </pre>
|
||||
*
|
||||
* <p>
|
||||
* This provides an application with an implementation-independent starting
|
||||
* point. DOM implementations may modify this class to meet new security
|
||||
* standards or to provide *additional* fallbacks for the list of
|
||||
* DOMImplementationSources.
|
||||
* </p>
|
||||
*
|
||||
* @see DOMImplementation
|
||||
* @see DOMImplementationSource
|
||||
* @since DOM Level 3
|
||||
*/
|
||||
public final class DOMImplementationRegistry {
|
||||
/**
|
||||
* The system property to specify the
|
||||
* DOMImplementationSource class names.
|
||||
*/
|
||||
public static final String PROPERTY =
|
||||
"org.w3c.dom.DOMImplementationSourceList";
|
||||
|
||||
/**
|
||||
* Default columns per line.
|
||||
*/
|
||||
private static final int DEFAULT_LINE_LENGTH = 80;
|
||||
|
||||
/**
|
||||
* The list of DOMImplementationSources.
|
||||
*/
|
||||
private Vector sources;
|
||||
|
||||
/**
|
||||
* Private constructor.
|
||||
* @param srcs Vector List of DOMImplementationSources
|
||||
*/
|
||||
private DOMImplementationRegistry(final Vector srcs) {
|
||||
sources = srcs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtain a new instance of a <code>DOMImplementationRegistry</code>.
|
||||
*
|
||||
|
||||
* The <code>DOMImplementationRegistry</code> is initialized by the
|
||||
* application or the implementation, depending on the context, by
|
||||
* first checking the value of the Java system property
|
||||
* <code>org.w3c.dom.DOMImplementationSourceList</code> and
|
||||
* the the service provider whose contents are at
|
||||
* "<code>META_INF/services/org.w3c.dom.DOMImplementationSourceList</code>"
|
||||
* The value of this property is a white-space separated list of
|
||||
* names of availables classes implementing the
|
||||
* <code>DOMImplementationSource</code> interface. Each class listed
|
||||
* in the class name list is instantiated and any exceptions
|
||||
* encountered are thrown to the application.
|
||||
*
|
||||
* @return an initialized instance of DOMImplementationRegistry
|
||||
* @throws ClassNotFoundException
|
||||
* If any specified class can not be found
|
||||
* @throws InstantiationException
|
||||
* If any specified class is an interface or abstract class
|
||||
* @throws IllegalAccessException
|
||||
* If the default constructor of a specified class is not accessible
|
||||
* @throws ClassCastException
|
||||
* If any specified class does not implement
|
||||
* <code>DOMImplementationSource</code>
|
||||
*/
|
||||
public static DOMImplementationRegistry newInstance()
|
||||
throws
|
||||
ClassNotFoundException,
|
||||
InstantiationException,
|
||||
IllegalAccessException,
|
||||
ClassCastException {
|
||||
Vector sources = new Vector();
|
||||
|
||||
ClassLoader classLoader = getClassLoader();
|
||||
// fetch system property:
|
||||
String p = getSystemProperty(PROPERTY);
|
||||
|
||||
//
|
||||
// if property is not specified then use contents of
|
||||
// META_INF/org.w3c.dom.DOMImplementationSourceList from classpath
|
||||
if (p == null) {
|
||||
p = getServiceValue(classLoader);
|
||||
}
|
||||
if (p == null) {
|
||||
//
|
||||
// DOM Implementations can modify here to add *additional* fallback
|
||||
// mechanisms to access a list of default DOMImplementationSources.
|
||||
p = "gnu.xml.dom.ImplementationSource";
|
||||
}
|
||||
if (p != null) {
|
||||
StringTokenizer st = new StringTokenizer(p);
|
||||
while (st.hasMoreTokens()) {
|
||||
String sourceName = st.nextToken();
|
||||
// Use context class loader, falling back to Class.forName
|
||||
// if and only if this fails...
|
||||
Class sourceClass = null;
|
||||
if (classLoader != null) {
|
||||
sourceClass = classLoader.loadClass(sourceName);
|
||||
} else {
|
||||
sourceClass = Class.forName(sourceName);
|
||||
}
|
||||
DOMImplementationSource source =
|
||||
(DOMImplementationSource) sourceClass.newInstance();
|
||||
sources.addElement(source);
|
||||
}
|
||||
}
|
||||
return new DOMImplementationRegistry(sources);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the first implementation that has the desired
|
||||
* features, or <code>null</code> if none is found.
|
||||
*
|
||||
* @param features
|
||||
* A string that specifies which features are required. This is
|
||||
* a space separated list in which each feature is specified by
|
||||
* its name optionally followed by a space and a version number.
|
||||
* This is something like: "XML 1.0 Traversal +Events 2.0"
|
||||
* @return An implementation that has the desired features,
|
||||
* or <code>null</code> if none found.
|
||||
*/
|
||||
public DOMImplementation getDOMImplementation(final String features) {
|
||||
int size = sources.size();
|
||||
String name = null;
|
||||
for (int i = 0; i < size; i++) {
|
||||
DOMImplementationSource source =
|
||||
(DOMImplementationSource) sources.elementAt(i);
|
||||
DOMImplementation impl = source.getDOMImplementation(features);
|
||||
if (impl != null) {
|
||||
return impl;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a list of implementations that support the
|
||||
* desired features.
|
||||
*
|
||||
* @param features
|
||||
* A string that specifies which features are required. This is
|
||||
* a space separated list in which each feature is specified by
|
||||
* its name optionally followed by a space and a version number.
|
||||
* This is something like: "XML 1.0 Traversal +Events 2.0"
|
||||
* @return A list of DOMImplementations that support the desired features.
|
||||
*/
|
||||
public DOMImplementationList getDOMImplementationList(final String features) {
|
||||
final Vector implementations = new Vector();
|
||||
int size = sources.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
DOMImplementationSource source =
|
||||
(DOMImplementationSource) sources.elementAt(i);
|
||||
DOMImplementationList impls =
|
||||
source.getDOMImplementationList(features);
|
||||
for (int j = 0; j < impls.getLength(); j++) {
|
||||
DOMImplementation impl = impls.item(j);
|
||||
implementations.addElement(impl);
|
||||
}
|
||||
}
|
||||
return new DOMImplementationList() {
|
||||
public DOMImplementation item(final int index) {
|
||||
if (index >= 0 && index < implementations.size()) {
|
||||
try {
|
||||
return (DOMImplementation)
|
||||
implementations.elementAt(index);
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getLength() {
|
||||
return implementations.size();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Register an implementation.
|
||||
*
|
||||
* @param s The source to be registered, may not be <code>null</code>
|
||||
*/
|
||||
public void addSource(final DOMImplementationSource s) {
|
||||
if (s == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
if (!sources.contains(s)) {
|
||||
sources.addElement(s);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Gets a class loader.
|
||||
*
|
||||
* @return A class loader, possibly <code>null</code>
|
||||
*/
|
||||
private static ClassLoader getClassLoader() {
|
||||
try {
|
||||
ClassLoader contextClassLoader = getContextClassLoader();
|
||||
|
||||
if (contextClassLoader != null) {
|
||||
return contextClassLoader;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// Assume that the DOM application is in a JRE 1.1, use the
|
||||
// current ClassLoader
|
||||
return DOMImplementationRegistry.class.getClassLoader();
|
||||
}
|
||||
return DOMImplementationRegistry.class.getClassLoader();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method attempts to return the first line of the resource
|
||||
* META_INF/services/org.w3c.dom.DOMImplementationSourceList
|
||||
* from the provided ClassLoader.
|
||||
*
|
||||
* @param classLoader classLoader, may not be <code>null</code>.
|
||||
* @return first line of resource, or <code>null</code>
|
||||
*/
|
||||
private static String getServiceValue(final ClassLoader classLoader) {
|
||||
String serviceId = "META-INF/services/" + PROPERTY;
|
||||
// try to find services in CLASSPATH
|
||||
try {
|
||||
InputStream is = getResourceAsStream(classLoader, serviceId);
|
||||
|
||||
if (is != null) {
|
||||
BufferedReader rd;
|
||||
try {
|
||||
rd =
|
||||
new BufferedReader(new InputStreamReader(is, "UTF-8"),
|
||||
DEFAULT_LINE_LENGTH);
|
||||
} catch (java.io.UnsupportedEncodingException e) {
|
||||
rd =
|
||||
new BufferedReader(new InputStreamReader(is),
|
||||
DEFAULT_LINE_LENGTH);
|
||||
}
|
||||
String serviceValue = rd.readLine();
|
||||
rd.close();
|
||||
if (serviceValue != null && serviceValue.length() > 0) {
|
||||
return serviceValue;
|
||||
}
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple JRE (Java Runtime Environment) 1.1 test
|
||||
*
|
||||
* @return <code>true</code> if JRE 1.1
|
||||
*/
|
||||
private static boolean isJRE11() {
|
||||
try {
|
||||
Class c = Class.forName("java.security.AccessController");
|
||||
// java.security.AccessController existed since 1.2 so, if no
|
||||
// exception was thrown, the DOM application is running in a JRE
|
||||
// 1.2 or higher
|
||||
return false;
|
||||
} catch (Exception ex) {
|
||||
// ignore
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns the ContextClassLoader or <code>null</code> if
|
||||
* running in a JRE 1.1
|
||||
*
|
||||
* @return The Context Classloader
|
||||
*/
|
||||
private static ClassLoader getContextClassLoader() {
|
||||
return isJRE11()
|
||||
? null
|
||||
: (ClassLoader)
|
||||
AccessController.doPrivileged(new PrivilegedAction() {
|
||||
public Object run() {
|
||||
ClassLoader classLoader = null;
|
||||
try {
|
||||
classLoader =
|
||||
Thread.currentThread().getContextClassLoader();
|
||||
} catch (SecurityException ex) {
|
||||
}
|
||||
return classLoader;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns the system property indicated by the specified name
|
||||
* after checking access control privileges. For a JRE 1.1, this check is
|
||||
* not done.
|
||||
*
|
||||
* @param name the name of the system property
|
||||
* @return the system property
|
||||
*/
|
||||
private static String getSystemProperty(final String name) {
|
||||
return isJRE11()
|
||||
? (String) System.getProperty(name)
|
||||
: (String) AccessController.doPrivileged(new PrivilegedAction() {
|
||||
public Object run() {
|
||||
return System.getProperty(name);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns an Inputstream for the reading resource
|
||||
* META_INF/services/org.w3c.dom.DOMImplementationSourceList after checking
|
||||
* access control privileges. For a JRE 1.1, this check is not done.
|
||||
*
|
||||
* @param classLoader classLoader
|
||||
* @param name the resource
|
||||
* @return an Inputstream for the resource specified
|
||||
*/
|
||||
private static InputStream getResourceAsStream(final ClassLoader classLoader,
|
||||
final String name) {
|
||||
if (isJRE11()) {
|
||||
InputStream ris;
|
||||
if (classLoader == null) {
|
||||
ris = ClassLoader.getSystemResourceAsStream(name);
|
||||
} else {
|
||||
ris = classLoader.getResourceAsStream(name);
|
||||
}
|
||||
return ris;
|
||||
} else {
|
||||
return (InputStream)
|
||||
AccessController.doPrivileged(new PrivilegedAction() {
|
||||
public Object run() {
|
||||
InputStream ris;
|
||||
if (classLoader == null) {
|
||||
ris =
|
||||
ClassLoader.getSystemResourceAsStream(name);
|
||||
} else {
|
||||
ris = classLoader.getResourceAsStream(name);
|
||||
}
|
||||
return ris;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
1777
libjava/external/w3c_dom/org/w3c/dom/css/CSS2Properties.java
vendored
Normal file
1777
libjava/external/w3c_dom/org/w3c/dom/css/CSS2Properties.java
vendored
Normal file
File diff suppressed because it is too large
Load Diff
51
libjava/external/w3c_dom/org/w3c/dom/css/CSSCharsetRule.java
vendored
Normal file
51
libjava/external/w3c_dom/org/w3c/dom/css/CSSCharsetRule.java
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* The <code>CSSCharsetRule</code> interface represents a @charset rule in a
|
||||
* CSS style sheet. The value of the <code>encoding</code> attribute does
|
||||
* not affect the encoding of text data in the DOM objects; this encoding is
|
||||
* always UTF-16. After a stylesheet is loaded, the value of the
|
||||
* <code>encoding</code> attribute is the value found in the
|
||||
* <code>@charset</code> rule. If there was no <code>@charset</code> in the
|
||||
* original document, then no <code>CSSCharsetRule</code> is created. The
|
||||
* value of the <code>encoding</code> attribute may also be used as a hint
|
||||
* for the encoding used on serialization of the style sheet.
|
||||
* <p> The value of the @charset rule (and therefore of the
|
||||
* <code>CSSCharsetRule</code>) may not correspond to the encoding the
|
||||
* document actually came in; character encoding information e.g. in an HTTP
|
||||
* header, has priority (see CSS document representation) but this is not
|
||||
* reflected in the <code>CSSCharsetRule</code>.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSCharsetRule extends CSSRule {
|
||||
/**
|
||||
* The encoding information used in this <code>@charset</code> rule.
|
||||
*/
|
||||
public String getEncoding();
|
||||
/**
|
||||
* The encoding information used in this <code>@charset</code> rule.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: Raised if the specified encoding value has a syntax error
|
||||
* and is unparsable.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this encoding rule is
|
||||
* readonly.
|
||||
*/
|
||||
public void setEncoding(String encoding)
|
||||
throws DOMException;
|
||||
|
||||
}
|
@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
||||
|
||||
/**
|
||||
* This interface inherits from <code>CharacterData</code> and represents the
|
||||
* content of a comment, i.e., all the characters between the starting '
|
||||
* <code><!--</code>' and ending '<code>--></code>'. Note that this is
|
||||
* the definition of a comment in XML, and, in practice, HTML, although some
|
||||
* HTML tools may implement the full SGML comment structure.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||
*/
|
||||
public interface Comment extends CharacterData {
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
/**
|
||||
* The <code>CSSFontFaceRule</code> interface represents a @font-face rule in
|
||||
* a CSS style sheet. The <code>@font-face</code> rule is used to hold a set
|
||||
* of font descriptions.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSFontFaceRule extends CSSRule {
|
||||
/**
|
||||
* The declaration-block of this rule.
|
||||
*/
|
||||
public CSSStyleDeclaration getStyle();
|
||||
|
||||
}
|
44
libjava/external/w3c_dom/org/w3c/dom/css/CSSImportRule.java
vendored
Normal file
44
libjava/external/w3c_dom/org/w3c/dom/css/CSSImportRule.java
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.stylesheets.MediaList;
|
||||
|
||||
/**
|
||||
* The <code>CSSImportRule</code> interface represents a @import rule within
|
||||
* a CSS style sheet. The <code>@import</code> rule is used to import style
|
||||
* rules from other style sheets.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSImportRule extends CSSRule {
|
||||
/**
|
||||
* The location of the style sheet to be imported. The attribute will not
|
||||
* contain the <code>"url(...)"</code> specifier around the URI.
|
||||
*/
|
||||
public String getHref();
|
||||
|
||||
/**
|
||||
* A list of media types for which this style sheet may be used.
|
||||
*/
|
||||
public MediaList getMedia();
|
||||
|
||||
/**
|
||||
* The style sheet referred to by this rule, if it has been loaded. The
|
||||
* value of this attribute is <code>null</code> if the style sheet has
|
||||
* not yet been loaded or if it will not be loaded (e.g. if the style
|
||||
* sheet is for a media type not supported by the user agent).
|
||||
*/
|
||||
public CSSStyleSheet getStyleSheet();
|
||||
|
||||
}
|
76
libjava/external/w3c_dom/org/w3c/dom/css/CSSMediaRule.java
vendored
Normal file
76
libjava/external/w3c_dom/org/w3c/dom/css/CSSMediaRule.java
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
import org.w3c.dom.stylesheets.MediaList;
|
||||
|
||||
/**
|
||||
* The <code>CSSMediaRule</code> interface represents a @media rule in a CSS
|
||||
* style sheet. A <code>@media</code> rule can be used to delimit style
|
||||
* rules for specific media types.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSMediaRule extends CSSRule {
|
||||
/**
|
||||
* A list of media types for this rule.
|
||||
*/
|
||||
public MediaList getMedia();
|
||||
|
||||
/**
|
||||
* A list of all CSS rules contained within the media block.
|
||||
*/
|
||||
public CSSRuleList getCssRules();
|
||||
|
||||
/**
|
||||
* Used to insert a new rule into the media block.
|
||||
* @param rule The parsable text representing the rule. For rule sets
|
||||
* this contains both the selector and the style declaration. For
|
||||
* at-rules, this specifies both the at-identifier and the rule
|
||||
* content.
|
||||
* @param index The index within the media block's rule collection of
|
||||
* the rule before which to insert the specified rule. If the
|
||||
* specified index is equal to the length of the media blocks's rule
|
||||
* collection, the rule will be added to the end of the media block.
|
||||
* @return The index within the media block's rule collection of the
|
||||
* newly inserted rule.
|
||||
* @exception DOMException
|
||||
* HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the
|
||||
* specified index, e.g., if an <code>@import</code> rule is inserted
|
||||
* after a standard rule set or other at-rule.
|
||||
* <br>INDEX_SIZE_ERR: Raised if the specified index is not a valid
|
||||
* insertion point.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is
|
||||
* readonly.
|
||||
* <br>SYNTAX_ERR: Raised if the specified rule has a syntax error and
|
||||
* is unparsable.
|
||||
*/
|
||||
public int insertRule(String rule,
|
||||
int index)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Used to delete a rule from the media block.
|
||||
* @param index The index within the media block's rule collection of
|
||||
* the rule to remove.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified index does not correspond to
|
||||
* a rule in the media rule list.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is
|
||||
* readonly.
|
||||
*/
|
||||
public void deleteRule(int index)
|
||||
throws DOMException;
|
||||
|
||||
}
|
44
libjava/external/w3c_dom/org/w3c/dom/css/CSSPageRule.java
vendored
Normal file
44
libjava/external/w3c_dom/org/w3c/dom/css/CSSPageRule.java
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* The <code>CSSPageRule</code> interface represents a @page rule within a
|
||||
* CSS style sheet. The <code>@page</code> rule is used to specify the
|
||||
* dimensions, orientation, margins, etc. of a page box for paged media.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSPageRule extends CSSRule {
|
||||
/**
|
||||
* The parsable textual representation of the page selector for the rule.
|
||||
*/
|
||||
public String getSelectorText();
|
||||
/**
|
||||
* The parsable textual representation of the page selector for the rule.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||
* error and is unparsable.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.
|
||||
*/
|
||||
public void setSelectorText(String selectorText)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The declaration-block of this rule.
|
||||
*/
|
||||
public CSSStyleDeclaration getStyle();
|
||||
|
||||
}
|
296
libjava/external/w3c_dom/org/w3c/dom/css/CSSPrimitiveValue.java
vendored
Normal file
296
libjava/external/w3c_dom/org/w3c/dom/css/CSSPrimitiveValue.java
vendored
Normal file
@ -0,0 +1,296 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* The <code>CSSPrimitiveValue</code> interface represents a single CSS value
|
||||
* . This interface may be used to determine the value of a specific style
|
||||
* property currently set in a block or to set a specific style property
|
||||
* explicitly within the block. An instance of this interface might be
|
||||
* obtained from the <code>getPropertyCSSValue</code> method of the
|
||||
* <code>CSSStyleDeclaration</code> interface. A
|
||||
* <code>CSSPrimitiveValue</code> object only occurs in a context of a CSS
|
||||
* property.
|
||||
* <p> Conversions are allowed between absolute values (from millimeters to
|
||||
* centimeters, from degrees to radians, and so on) but not between relative
|
||||
* values. (For example, a pixel value cannot be converted to a centimeter
|
||||
* value.) Percentage values can't be converted since they are relative to
|
||||
* the parent value (or another property value). There is one exception for
|
||||
* color percentage values: since a color percentage value is relative to
|
||||
* the range 0-255, a color percentage value can be converted to a number;
|
||||
* (see also the <code>RGBColor</code> interface).
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSPrimitiveValue extends CSSValue {
|
||||
// UnitTypes
|
||||
/**
|
||||
* The value is not a recognized CSS2 value. The value can only be
|
||||
* obtained by using the <code>cssText</code> attribute.
|
||||
*/
|
||||
public static final short CSS_UNKNOWN = 0;
|
||||
/**
|
||||
* The value is a simple number. The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_NUMBER = 1;
|
||||
/**
|
||||
* The value is a percentage. The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_PERCENTAGE = 2;
|
||||
/**
|
||||
* The value is a length (ems). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_EMS = 3;
|
||||
/**
|
||||
* The value is a length (exs). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_EXS = 4;
|
||||
/**
|
||||
* The value is a length (px). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_PX = 5;
|
||||
/**
|
||||
* The value is a length (cm). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_CM = 6;
|
||||
/**
|
||||
* The value is a length (mm). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_MM = 7;
|
||||
/**
|
||||
* The value is a length (in). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_IN = 8;
|
||||
/**
|
||||
* The value is a length (pt). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_PT = 9;
|
||||
/**
|
||||
* The value is a length (pc). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_PC = 10;
|
||||
/**
|
||||
* The value is an angle (deg). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_DEG = 11;
|
||||
/**
|
||||
* The value is an angle (rad). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_RAD = 12;
|
||||
/**
|
||||
* The value is an angle (grad). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_GRAD = 13;
|
||||
/**
|
||||
* The value is a time (ms). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_MS = 14;
|
||||
/**
|
||||
* The value is a time (s). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_S = 15;
|
||||
/**
|
||||
* The value is a frequency (Hz). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_HZ = 16;
|
||||
/**
|
||||
* The value is a frequency (kHz). The value can be obtained by using the
|
||||
* <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_KHZ = 17;
|
||||
/**
|
||||
* The value is a number with an unknown dimension. The value can be
|
||||
* obtained by using the <code>getFloatValue</code> method.
|
||||
*/
|
||||
public static final short CSS_DIMENSION = 18;
|
||||
/**
|
||||
* The value is a STRING. The value can be obtained by using the
|
||||
* <code>getStringValue</code> method.
|
||||
*/
|
||||
public static final short CSS_STRING = 19;
|
||||
/**
|
||||
* The value is a URI. The value can be obtained by using the
|
||||
* <code>getStringValue</code> method.
|
||||
*/
|
||||
public static final short CSS_URI = 20;
|
||||
/**
|
||||
* The value is an identifier. The value can be obtained by using the
|
||||
* <code>getStringValue</code> method.
|
||||
*/
|
||||
public static final short CSS_IDENT = 21;
|
||||
/**
|
||||
* The value is a attribute function. The value can be obtained by using
|
||||
* the <code>getStringValue</code> method.
|
||||
*/
|
||||
public static final short CSS_ATTR = 22;
|
||||
/**
|
||||
* The value is a counter or counters function. The value can be obtained
|
||||
* by using the <code>getCounterValue</code> method.
|
||||
*/
|
||||
public static final short CSS_COUNTER = 23;
|
||||
/**
|
||||
* The value is a rect function. The value can be obtained by using the
|
||||
* <code>getRectValue</code> method.
|
||||
*/
|
||||
public static final short CSS_RECT = 24;
|
||||
/**
|
||||
* The value is a RGB color. The value can be obtained by using the
|
||||
* <code>getRGBColorValue</code> method.
|
||||
*/
|
||||
public static final short CSS_RGBCOLOR = 25;
|
||||
|
||||
/**
|
||||
* The type of the value as defined by the constants specified above.
|
||||
*/
|
||||
public short getPrimitiveType();
|
||||
|
||||
/**
|
||||
* A method to set the float value with a specified unit. If the property
|
||||
* attached with this value can not accept the specified unit or the
|
||||
* float value, the value will be unchanged and a
|
||||
* <code>DOMException</code> will be raised.
|
||||
* @param unitType A unit code as defined above. The unit code can only
|
||||
* be a float unit type (i.e. <code>CSS_NUMBER</code>,
|
||||
* <code>CSS_PERCENTAGE</code>, <code>CSS_EMS</code>,
|
||||
* <code>CSS_EXS</code>, <code>CSS_PX</code>, <code>CSS_CM</code>,
|
||||
* <code>CSS_MM</code>, <code>CSS_IN</code>, <code>CSS_PT</code>,
|
||||
* <code>CSS_PC</code>, <code>CSS_DEG</code>, <code>CSS_RAD</code>,
|
||||
* <code>CSS_GRAD</code>, <code>CSS_MS</code>, <code>CSS_S</code>,
|
||||
* <code>CSS_HZ</code>, <code>CSS_KHZ</code>,
|
||||
* <code>CSS_DIMENSION</code>).
|
||||
* @param floatValue The new float value.
|
||||
* @exception DOMException
|
||||
* INVALID_ACCESS_ERR: Raised if the attached property doesn't support
|
||||
* the float value or the unit type.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
|
||||
*/
|
||||
public void setFloatValue(short unitType,
|
||||
float floatValue)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This method is used to get a float value in a specified unit. If this
|
||||
* CSS value doesn't contain a float value or can't be converted into
|
||||
* the specified unit, a <code>DOMException</code> is raised.
|
||||
* @param unitType A unit code to get the float value. The unit code can
|
||||
* only be a float unit type (i.e. <code>CSS_NUMBER</code>,
|
||||
* <code>CSS_PERCENTAGE</code>, <code>CSS_EMS</code>,
|
||||
* <code>CSS_EXS</code>, <code>CSS_PX</code>, <code>CSS_CM</code>,
|
||||
* <code>CSS_MM</code>, <code>CSS_IN</code>, <code>CSS_PT</code>,
|
||||
* <code>CSS_PC</code>, <code>CSS_DEG</code>, <code>CSS_RAD</code>,
|
||||
* <code>CSS_GRAD</code>, <code>CSS_MS</code>, <code>CSS_S</code>,
|
||||
* <code>CSS_HZ</code>, <code>CSS_KHZ</code>,
|
||||
* <code>CSS_DIMENSION</code>).
|
||||
* @return The float value in the specified unit.
|
||||
* @exception DOMException
|
||||
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a float
|
||||
* value or if the float value can't be converted into the specified
|
||||
* unit.
|
||||
*/
|
||||
public float getFloatValue(short unitType)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A method to set the string value with the specified unit. If the
|
||||
* property attached to this value can't accept the specified unit or
|
||||
* the string value, the value will be unchanged and a
|
||||
* <code>DOMException</code> will be raised.
|
||||
* @param stringType A string code as defined above. The string code can
|
||||
* only be a string unit type (i.e. <code>CSS_STRING</code>,
|
||||
* <code>CSS_URI</code>, <code>CSS_IDENT</code>, and
|
||||
* <code>CSS_ATTR</code>).
|
||||
* @param stringValue The new string value.
|
||||
* @exception DOMException
|
||||
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string
|
||||
* value or if the string value can't be converted into the specified
|
||||
* unit.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
|
||||
*/
|
||||
public void setStringValue(short stringType,
|
||||
String stringValue)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This method is used to get the string value. If the CSS value doesn't
|
||||
* contain a string value, a <code>DOMException</code> is raised. Some
|
||||
* properties (like 'font-family' or 'voice-family') convert a
|
||||
* whitespace separated list of idents to a string.
|
||||
* @return The string value in the current unit. The current
|
||||
* <code>primitiveType</code> can only be a string unit type (i.e.
|
||||
* <code>CSS_STRING</code>, <code>CSS_URI</code>,
|
||||
* <code>CSS_IDENT</code> and <code>CSS_ATTR</code>).
|
||||
* @exception DOMException
|
||||
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string
|
||||
* value.
|
||||
*/
|
||||
public String getStringValue()
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This method is used to get the Counter value. If this CSS value
|
||||
* doesn't contain a counter value, a <code>DOMException</code> is
|
||||
* raised. Modification to the corresponding style property can be
|
||||
* achieved using the <code>Counter</code> interface.
|
||||
* @return The Counter value.
|
||||
* @exception DOMException
|
||||
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a
|
||||
* Counter value (e.g. this is not <code>CSS_COUNTER</code>).
|
||||
*/
|
||||
public Counter getCounterValue()
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This method is used to get the Rect value. If this CSS value doesn't
|
||||
* contain a rect value, a <code>DOMException</code> is raised.
|
||||
* Modification to the corresponding style property can be achieved
|
||||
* using the <code>Rect</code> interface.
|
||||
* @return The Rect value.
|
||||
* @exception DOMException
|
||||
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect
|
||||
* value. (e.g. this is not <code>CSS_RECT</code>).
|
||||
*/
|
||||
public Rect getRectValue()
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This method is used to get the RGB color. If this CSS value doesn't
|
||||
* contain a RGB color value, a <code>DOMException</code> is raised.
|
||||
* Modification to the corresponding style property can be achieved
|
||||
* using the <code>RGBColor</code> interface.
|
||||
* @return the RGB color value.
|
||||
* @exception DOMException
|
||||
* INVALID_ACCESS_ERR: Raised if the attached property can't return a
|
||||
* RGB color value (e.g. this is not <code>CSS_RGBCOLOR</code>).
|
||||
*/
|
||||
public RGBColor getRGBColorValue()
|
||||
throws DOMException;
|
||||
|
||||
}
|
97
libjava/external/w3c_dom/org/w3c/dom/css/CSSRule.java
vendored
Normal file
97
libjava/external/w3c_dom/org/w3c/dom/css/CSSRule.java
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* The <code>CSSRule</code> interface is the abstract base interface for any
|
||||
* type of CSS statement. This includes both rule sets and at-rules. An
|
||||
* implementation is expected to preserve all rules specified in a CSS style
|
||||
* sheet, even if the rule is not recognized by the parser. Unrecognized
|
||||
* rules are represented using the <code>CSSUnknownRule</code> interface.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSRule {
|
||||
// RuleType
|
||||
/**
|
||||
* The rule is a <code>CSSUnknownRule</code>.
|
||||
*/
|
||||
public static final short UNKNOWN_RULE = 0;
|
||||
/**
|
||||
* The rule is a <code>CSSStyleRule</code>.
|
||||
*/
|
||||
public static final short STYLE_RULE = 1;
|
||||
/**
|
||||
* The rule is a <code>CSSCharsetRule</code>.
|
||||
*/
|
||||
public static final short CHARSET_RULE = 2;
|
||||
/**
|
||||
* The rule is a <code>CSSImportRule</code>.
|
||||
*/
|
||||
public static final short IMPORT_RULE = 3;
|
||||
/**
|
||||
* The rule is a <code>CSSMediaRule</code>.
|
||||
*/
|
||||
public static final short MEDIA_RULE = 4;
|
||||
/**
|
||||
* The rule is a <code>CSSFontFaceRule</code>.
|
||||
*/
|
||||
public static final short FONT_FACE_RULE = 5;
|
||||
/**
|
||||
* The rule is a <code>CSSPageRule</code>.
|
||||
*/
|
||||
public static final short PAGE_RULE = 6;
|
||||
|
||||
/**
|
||||
* The type of the rule, as defined above. The expectation is that
|
||||
* binding-specific casting methods can be used to cast down from an
|
||||
* instance of the <code>CSSRule</code> interface to the specific
|
||||
* derived interface implied by the <code>type</code>.
|
||||
*/
|
||||
public short getType();
|
||||
|
||||
/**
|
||||
* The parsable textual representation of the rule. This reflects the
|
||||
* current state of the rule and not its initial value.
|
||||
*/
|
||||
public String getCssText();
|
||||
/**
|
||||
* The parsable textual representation of the rule. This reflects the
|
||||
* current state of the rule and not its initial value.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||
* error and is unparsable.
|
||||
* <br>INVALID_MODIFICATION_ERR: Raised if the specified CSS string
|
||||
* value represents a different type of rule than the current one.
|
||||
* <br>HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at
|
||||
* this point in the style sheet.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if the rule is readonly.
|
||||
*/
|
||||
public void setCssText(String cssText)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The style sheet that contains this rule.
|
||||
*/
|
||||
public CSSStyleSheet getParentStyleSheet();
|
||||
|
||||
/**
|
||||
* If this rule is contained inside another rule (e.g. a style rule
|
||||
* inside an @media block), this is the containing rule. If this rule is
|
||||
* not nested inside any other rules, this returns <code>null</code>.
|
||||
*/
|
||||
public CSSRule getParentRule();
|
||||
|
||||
}
|
43
libjava/external/w3c_dom/org/w3c/dom/css/CSSRuleList.java
vendored
Normal file
43
libjava/external/w3c_dom/org/w3c/dom/css/CSSRuleList.java
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
/**
|
||||
* The <code>CSSRuleList</code> interface provides the abstraction of an
|
||||
* ordered collection of CSS rules.
|
||||
* <p> The items in the <code>CSSRuleList</code> are accessible via an
|
||||
* integral index, starting from 0.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSRuleList {
|
||||
/**
|
||||
* The number of <code>CSSRules</code> in the list. The range of valid
|
||||
* child rule indices is <code>0</code> to <code>length-1</code>
|
||||
* inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Used to retrieve a CSS rule by ordinal index. The order in this
|
||||
* collection represents the order of the rules in the CSS style sheet.
|
||||
* If index is greater than or equal to the number of rules in the list,
|
||||
* this returns <code>null</code>.
|
||||
* @param index Index into the collection
|
||||
* @return The style rule at the <code>index</code> position in the
|
||||
* <code>CSSRuleList</code>, or <code>null</code> if that is not a
|
||||
* valid index.
|
||||
*/
|
||||
public CSSRule item(int index);
|
||||
|
||||
}
|
162
libjava/external/w3c_dom/org/w3c/dom/css/CSSStyleDeclaration.java
vendored
Normal file
162
libjava/external/w3c_dom/org/w3c/dom/css/CSSStyleDeclaration.java
vendored
Normal file
@ -0,0 +1,162 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* The <code>CSSStyleDeclaration</code> interface represents a single CSS
|
||||
* declaration block. This interface may be used to determine the style
|
||||
* properties currently set in a block or to set style properties explicitly
|
||||
* within the block.
|
||||
* <p> While an implementation may not recognize all CSS properties within a
|
||||
* CSS declaration block, it is expected to provide access to all specified
|
||||
* properties in the style sheet through the <code>CSSStyleDeclaration</code>
|
||||
* interface. Furthermore, implementations that support a specific level of
|
||||
* CSS should correctly handle CSS shorthand properties for that level. For
|
||||
* a further discussion of shorthand properties, see the
|
||||
* <code>CSS2Properties</code> interface.
|
||||
* <p> This interface is also used to provide a read-only access to the
|
||||
* computed values of an element. See also the <code>ViewCSS</code>
|
||||
* interface. The CSS Object Model doesn't provide an access to the
|
||||
* specified or actual values of the CSS cascade.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSStyleDeclaration {
|
||||
/**
|
||||
* The parsable textual representation of the declaration block
|
||||
* (excluding the surrounding curly braces). Setting this attribute will
|
||||
* result in the parsing of the new value and resetting of all the
|
||||
* properties in the declaration block including the removal or addition
|
||||
* of properties.
|
||||
*/
|
||||
public String getCssText();
|
||||
/**
|
||||
* The parsable textual representation of the declaration block
|
||||
* (excluding the surrounding curly braces). Setting this attribute will
|
||||
* result in the parsing of the new value and resetting of all the
|
||||
* properties in the declaration block including the removal or addition
|
||||
* of properties.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||
* error and is unparsable.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
|
||||
* readonly or a property is readonly.
|
||||
*/
|
||||
public void setCssText(String cssText)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Used to retrieve the value of a CSS property if it has been explicitly
|
||||
* set within this declaration block.
|
||||
* @param propertyName The name of the CSS property. See the CSS
|
||||
* property index.
|
||||
* @return Returns the value of the property if it has been explicitly
|
||||
* set for this declaration block. Returns the empty string if the
|
||||
* property has not been set.
|
||||
*/
|
||||
public String getPropertyValue(String propertyName);
|
||||
|
||||
/**
|
||||
* Used to retrieve the object representation of the value of a CSS
|
||||
* property if it has been explicitly set within this declaration block.
|
||||
* This method returns <code>null</code> if the property is a shorthand
|
||||
* property. Shorthand property values can only be accessed and modified
|
||||
* as strings, using the <code>getPropertyValue</code> and
|
||||
* <code>setProperty</code> methods.
|
||||
* @param propertyName The name of the CSS property. See the CSS
|
||||
* property index.
|
||||
* @return Returns the value of the property if it has been explicitly
|
||||
* set for this declaration block. Returns <code>null</code> if the
|
||||
* property has not been set.
|
||||
*/
|
||||
public CSSValue getPropertyCSSValue(String propertyName);
|
||||
|
||||
/**
|
||||
* Used to remove a CSS property if it has been explicitly set within
|
||||
* this declaration block.
|
||||
* @param propertyName The name of the CSS property. See the CSS
|
||||
* property index.
|
||||
* @return Returns the value of the property if it has been explicitly
|
||||
* set for this declaration block. Returns the empty string if the
|
||||
* property has not been set or the property name does not correspond
|
||||
* to a known CSS property.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly
|
||||
* or the property is readonly.
|
||||
*/
|
||||
public String removeProperty(String propertyName)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Used to retrieve the priority of a CSS property (e.g. the
|
||||
* <code>"important"</code> qualifier) if the priority has been
|
||||
* explicitly set in this declaration block.
|
||||
* @param propertyName The name of the CSS property. See the CSS
|
||||
* property index.
|
||||
* @return A string representing the priority (e.g.
|
||||
* <code>"important"</code>) if the property has been explicitly set
|
||||
* in this declaration block and has a priority specified. The empty
|
||||
* string otherwise.
|
||||
*/
|
||||
public String getPropertyPriority(String propertyName);
|
||||
|
||||
/**
|
||||
* Used to set a property value and priority within this declaration
|
||||
* block. <code>setProperty</code> permits to modify a property or add a
|
||||
* new one in the declaration block. Any call to this method may modify
|
||||
* the order of properties in the <code>item</code> method.
|
||||
* @param propertyName The name of the CSS property. See the CSS
|
||||
* property index.
|
||||
* @param value The new value of the property.
|
||||
* @param priority The new priority of the property (e.g.
|
||||
* <code>"important"</code>) or the empty string if none.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: Raised if the specified value has a syntax error and is
|
||||
* unparsable.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
|
||||
* readonly or the property is readonly.
|
||||
*/
|
||||
public void setProperty(String propertyName,
|
||||
String value,
|
||||
String priority)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The number of properties that have been explicitly set in this
|
||||
* declaration block. The range of valid indices is 0 to length-1
|
||||
* inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Used to retrieve the properties that have been explicitly set in this
|
||||
* declaration block. The order of the properties retrieved using this
|
||||
* method does not have to be the order in which they were set. This
|
||||
* method can be used to iterate over all properties in this declaration
|
||||
* block.
|
||||
* @param index Index of the property name to retrieve.
|
||||
* @return The name of the property at this ordinal position. The empty
|
||||
* string if no property exists at this position.
|
||||
*/
|
||||
public String item(int index);
|
||||
|
||||
/**
|
||||
* The CSS rule that contains this declaration block or <code>null</code>
|
||||
* if this <code>CSSStyleDeclaration</code> is not attached to a
|
||||
* <code>CSSRule</code>.
|
||||
*/
|
||||
public CSSRule getParentRule();
|
||||
|
||||
}
|
47
libjava/external/w3c_dom/org/w3c/dom/css/CSSStyleRule.java
vendored
Normal file
47
libjava/external/w3c_dom/org/w3c/dom/css/CSSStyleRule.java
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* The <code>CSSStyleRule</code> interface represents a single rule set in a
|
||||
* CSS style sheet.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSStyleRule extends CSSRule {
|
||||
/**
|
||||
* The textual representation of the selector for the rule set. The
|
||||
* implementation may have stripped out insignificant whitespace while
|
||||
* parsing the selector.
|
||||
*/
|
||||
public String getSelectorText();
|
||||
/**
|
||||
* The textual representation of the selector for the rule set. The
|
||||
* implementation may have stripped out insignificant whitespace while
|
||||
* parsing the selector.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||
* error and is unparsable.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.
|
||||
*/
|
||||
public void setSelectorText(String selectorText)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The declaration-block of this rule set.
|
||||
*/
|
||||
public CSSStyleDeclaration getStyle();
|
||||
|
||||
}
|
85
libjava/external/w3c_dom/org/w3c/dom/css/CSSStyleSheet.java
vendored
Normal file
85
libjava/external/w3c_dom/org/w3c/dom/css/CSSStyleSheet.java
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
import org.w3c.dom.stylesheets.StyleSheet;
|
||||
|
||||
/**
|
||||
* The <code>CSSStyleSheet</code> interface is a concrete interface used to
|
||||
* represent a CSS style sheet i.e., a style sheet whose content type is
|
||||
* "text/css".
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSStyleSheet extends StyleSheet {
|
||||
/**
|
||||
* If this style sheet comes from an <code>@import</code> rule, the
|
||||
* <code>ownerRule</code> attribute will contain the
|
||||
* <code>CSSImportRule</code>. In that case, the <code>ownerNode</code>
|
||||
* attribute in the <code>StyleSheet</code> interface will be
|
||||
* <code>null</code>. If the style sheet comes from an element or a
|
||||
* processing instruction, the <code>ownerRule</code> attribute will be
|
||||
* <code>null</code> and the <code>ownerNode</code> attribute will
|
||||
* contain the <code>Node</code>.
|
||||
*/
|
||||
public CSSRule getOwnerRule();
|
||||
|
||||
/**
|
||||
* The list of all CSS rules contained within the style sheet. This
|
||||
* includes both rule sets and at-rules.
|
||||
*/
|
||||
public CSSRuleList getCssRules();
|
||||
|
||||
/**
|
||||
* Used to insert a new rule into the style sheet. The new rule now
|
||||
* becomes part of the cascade.
|
||||
* @param rule The parsable text representing the rule. For rule sets
|
||||
* this contains both the selector and the style declaration. For
|
||||
* at-rules, this specifies both the at-identifier and the rule
|
||||
* content.
|
||||
* @param index The index within the style sheet's rule list of the rule
|
||||
* before which to insert the specified rule. If the specified index
|
||||
* is equal to the length of the style sheet's rule collection, the
|
||||
* rule will be added to the end of the style sheet.
|
||||
* @return The index within the style sheet's rule collection of the
|
||||
* newly inserted rule.
|
||||
* @exception DOMException
|
||||
* HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the
|
||||
* specified index e.g. if an <code>@import</code> rule is inserted
|
||||
* after a standard rule set or other at-rule.
|
||||
* <br>INDEX_SIZE_ERR: Raised if the specified index is not a valid
|
||||
* insertion point.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is
|
||||
* readonly.
|
||||
* <br>SYNTAX_ERR: Raised if the specified rule has a syntax error and
|
||||
* is unparsable.
|
||||
*/
|
||||
public int insertRule(String rule,
|
||||
int index)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Used to delete a rule from the style sheet.
|
||||
* @param index The index within the style sheet's rule list of the rule
|
||||
* to remove.
|
||||
* @exception DOMException
|
||||
* INDEX_SIZE_ERR: Raised if the specified index does not correspond to
|
||||
* a rule in the style sheet's rule list.
|
||||
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is
|
||||
* readonly.
|
||||
*/
|
||||
public void deleteRule(int index)
|
||||
throws DOMException;
|
||||
|
||||
}
|
22
libjava/external/w3c_dom/org/w3c/dom/css/CSSUnknownRule.java
vendored
Normal file
22
libjava/external/w3c_dom/org/w3c/dom/css/CSSUnknownRule.java
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
/**
|
||||
* The <code>CSSUnknownRule</code> interface represents an at-rule not
|
||||
* supported by this user agent.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSUnknownRule extends CSSRule {
|
||||
}
|
71
libjava/external/w3c_dom/org/w3c/dom/css/CSSValue.java
vendored
Normal file
71
libjava/external/w3c_dom/org/w3c/dom/css/CSSValue.java
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* The <code>CSSValue</code> interface represents a simple or a complex
|
||||
* value. A <code>CSSValue</code> object only occurs in a context of a CSS
|
||||
* property.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSValue {
|
||||
// UnitTypes
|
||||
/**
|
||||
* The value is inherited and the <code>cssText</code> contains "inherit".
|
||||
*/
|
||||
public static final short CSS_INHERIT = 0;
|
||||
/**
|
||||
* The value is a primitive value and an instance of the
|
||||
* <code>CSSPrimitiveValue</code> interface can be obtained by using
|
||||
* binding-specific casting methods on this instance of the
|
||||
* <code>CSSValue</code> interface.
|
||||
*/
|
||||
public static final short CSS_PRIMITIVE_VALUE = 1;
|
||||
/**
|
||||
* The value is a <code>CSSValue</code> list and an instance of the
|
||||
* <code>CSSValueList</code> interface can be obtained by using
|
||||
* binding-specific casting methods on this instance of the
|
||||
* <code>CSSValue</code> interface.
|
||||
*/
|
||||
public static final short CSS_VALUE_LIST = 2;
|
||||
/**
|
||||
* The value is a custom value.
|
||||
*/
|
||||
public static final short CSS_CUSTOM = 3;
|
||||
|
||||
/**
|
||||
* A string representation of the current value.
|
||||
*/
|
||||
public String getCssText();
|
||||
/**
|
||||
* A string representation of the current value.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||
* error (according to the attached property) or is unparsable.
|
||||
* <br>INVALID_MODIFICATION_ERR: Raised if the specified CSS string
|
||||
* value represents a different type of values than the values allowed
|
||||
* by the CSS property.
|
||||
* <br> NO_MODIFICATION_ALLOWED_ERR: Raised if this value is readonly.
|
||||
*/
|
||||
public void setCssText(String cssText)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A code defining the type of the value as defined above.
|
||||
*/
|
||||
public short getCssValueType();
|
||||
|
||||
}
|
46
libjava/external/w3c_dom/org/w3c/dom/css/CSSValueList.java
vendored
Normal file
46
libjava/external/w3c_dom/org/w3c/dom/css/CSSValueList.java
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
/**
|
||||
* The <code>CSSValueList</code> interface provides the abstraction of an
|
||||
* ordered collection of CSS values.
|
||||
* <p> Some properties allow an empty list into their syntax. In that case,
|
||||
* these properties take the <code>none</code> identifier. So, an empty list
|
||||
* means that the property has the value <code>none</code>.
|
||||
* <p> The items in the <code>CSSValueList</code> are accessible via an
|
||||
* integral index, starting from 0.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface CSSValueList extends CSSValue {
|
||||
/**
|
||||
* The number of <code>CSSValues</code> in the list. The range of valid
|
||||
* values of the indices is <code>0</code> to <code>length-1</code>
|
||||
* inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
/**
|
||||
* Used to retrieve a <code>CSSValue</code> by ordinal index. The order in
|
||||
* this collection represents the order of the values in the CSS style
|
||||
* property. If index is greater than or equal to the number of values
|
||||
* in the list, this returns <code>null</code>.
|
||||
* @param index Index into the collection.
|
||||
* @return The <code>CSSValue</code> at the <code>index</code> position
|
||||
* in the <code>CSSValueList</code>, or <code>null</code> if that is
|
||||
* not a valid index.
|
||||
*/
|
||||
public CSSValue item(int index);
|
||||
|
||||
}
|
38
libjava/external/w3c_dom/org/w3c/dom/css/Counter.java
vendored
Normal file
38
libjava/external/w3c_dom/org/w3c/dom/css/Counter.java
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
/**
|
||||
* The <code>Counter</code> interface is used to represent any counter or
|
||||
* counters function value. This interface reflects the values in the
|
||||
* underlying style property.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface Counter {
|
||||
/**
|
||||
* This attribute is used for the identifier of the counter.
|
||||
*/
|
||||
public String getIdentifier();
|
||||
|
||||
/**
|
||||
* This attribute is used for the style of the list.
|
||||
*/
|
||||
public String getListStyle();
|
||||
|
||||
/**
|
||||
* This attribute is used for the separator of the nested counters.
|
||||
*/
|
||||
public String getSeparator();
|
||||
|
||||
}
|
40
libjava/external/w3c_dom/org/w3c/dom/css/DOMImplementationCSS.java
vendored
Normal file
40
libjava/external/w3c_dom/org/w3c/dom/css/DOMImplementationCSS.java
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program 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 W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.css;
|
||||
|
||||
import org.w3c.dom.DOMImplementation;
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* This interface allows the DOM user to create a <code>CSSStyleSheet</code>
|
||||
* outside the context of a document. There is no way to associate the new
|
||||
* <code>CSSStyleSheet</code> with a document in DOM Level 2.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface DOMImplementationCSS extends DOMImplementation {
|
||||
/**
|
||||
* Creates a new <code>CSSStyleSheet</code>.
|
||||
* @param title The advisory title. See also the section.
|
||||
* @param media The comma-separated list of media associated with the
|
||||
* new style sheet. See also the section.
|
||||
* @return A new CSS style sheet.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: Raised if the specified media string value has a syntax
|
||||
* error and is unparsable.
|
||||
*/
|
||||
public CSSStyleSheet createCSSStyleSheet(String title,
|
||||
String media)
|
||||
throws DOMException;
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user