286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 286N/A * This code is free software; you can redistribute it and/or modify it 286N/A * under the terms of the GNU General Public License version 2 only, as 286N/A * published by the Free Software Foundation. Oracle designates this 286N/A * particular file as subject to the "Classpath" exception as provided 286N/A * by Oracle in the LICENSE file that accompanied this code. 286N/A * This code is distributed in the hope that it will be useful, but WITHOUT 286N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 286N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 286N/A * version 2 for more details (a copy is included in the LICENSE file that 286N/A * accompanied this code). 286N/A * You should have received a copy of the GNU General Public License version 286N/A * 2 along with this work; if not, write to the Free Software Foundation, 286N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 286N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 286N/A * or visit www.oracle.com if you need additional information or have any 286N/A * This file is available under and governed by the GNU General Public 286N/A * License version 2 only, as published by the Free Software Foundation. 286N/A * However, the following notice accompanied the original version of this 286N/A * file and, per its terms, should not be removed: 286N/A * Copyright (c) 2004 World Wide Web Consortium, 286N/A * (Massachusetts Institute of Technology, European Research Consortium for 286N/A * Informatics and Mathematics, Keio University). All Rights Reserved. This 286N/A * work is distributed under the W3C(r) Software License [1] in the hope that 286N/A * it will be useful, but WITHOUT ANY WARRANTY; without even the implied 286N/A * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 286N/A * The <code>DOMImplementation</code> interface provides a number of methods 286N/A * for performing operations that are independent of any particular instance 286N/A * of the document object model. 286N/A * Test if the DOM implementation implements a specific feature and 286N/A * @param feature The name of the feature to test. 286N/A * @param version This is the version number of the feature to test. 286N/A * @return <code>true</code> if the feature is implemented in the 286N/A * specified version, <code>false</code> otherwise. 286N/A * Creates an empty <code>DocumentType</code> node. Entity declarations 286N/A * and notations are not made available. Entity reference expansions and 286N/A * default attribute additions do not occur.. 286N/A * @param qualifiedName The qualified name of the document type to be 286N/A * @param publicId The external subset public identifier. 286N/A * @param systemId The external subset system identifier. 286N/A * @return A new <code>DocumentType</code> node with 286N/A * <code>Node.ownerDocument</code> set to <code>null</code>. 286N/A * @exception DOMException 286N/A * INVALID_CHARACTER_ERR: Raised if the specified qualified name is not 286N/A * <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is 286N/A * <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not 286N/A * support the feature "XML" and the language exposed through the 286N/A * Creates a DOM Document object of the specified type with its document 286N/A * <br>Note that based on the <code>DocumentType</code> given to create 286N/A * the document, the implementation may instantiate specialized 286N/A * <code>Document</code> objects that support additional features than 286N/A * . On the other hand, setting the <code>DocumentType</code> after the 286N/A * document was created makes this very unlikely to happen. 286N/A * Alternatively, specialized <code>Document</code> creation methods, 286N/A * , can be used to obtain specific types of <code>Document</code> 286N/A * @param namespaceURI The namespace URI of the document element to 286N/A * create or <code>null</code>. 286N/A * @param qualifiedName The qualified name of the document element to be 286N/A * created or <code>null</code>. 286N/A * @param doctype The type of document to be created or <code>null</code>. 286N/A * When <code>doctype</code> is not <code>null</code>, its 286N/A * <code>Node.ownerDocument</code> attribute is set to the document 286N/A * @return A new <code>Document</code> object with its document element. 286N/A * If the <code>NamespaceURI</code>, <code>qualifiedName</code>, and 286N/A * <code>doctype</code> are <code>null</code>, the returned 286N/A * <code>Document</code> is empty with no document element. 286N/A * @exception DOMException 286N/A * INVALID_CHARACTER_ERR: Raised if the specified qualified name is not 286N/A * <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is 286N/A * malformed, if the <code>qualifiedName</code> has a prefix and the 286N/A * <code>namespaceURI</code> is <code>null</code>, or if the 286N/A * <code>qualifiedName</code> is <code>null</code> and the 286N/A * <code>namespaceURI</code> is different from <code>null</code>, or 286N/A * if the <code>qualifiedName</code> has a prefix that is "xml" and 286N/A * , or if the DOM implementation does not support the 286N/A * <code>"XML"</code> feature but a non-null namespace URI was 286N/A * provided, since namespaces were defined by XML. 286N/A * <br>WRONG_DOCUMENT_ERR: Raised if <code>doctype</code> has already 286N/A * been used with a different document or was created from a different 286N/A * <br>NOT_SUPPORTED_ERR: May be raised if the implementation does not 286N/A * support the feature "XML" and the language exposed through the 286N/A * This method returns a specialized object which implements the 286N/A * specialized APIs of the specified feature and version, as specified 286N/A * binding-specific casting methods but is not necessarily expected to, 286N/A * as discussed in . This method also allow the implementation to 286N/A * provide specialized objects which do not support the 286N/A * <code>DOMImplementation</code> interface. 286N/A * @param feature The name of the feature requested. Note that any plus 286N/A * sign "+" prepended to the name of the feature will be ignored since 286N/A * it is not significant in the context of this method. 286N/A * @param version This is the version number of the feature to test. 286N/A * @return Returns an object which implements the specialized APIs of 286N/A * the specified feature and version, if any, or <code>null</code> if 286N/A * there is no object which implements interfaces associated with that 286N/A * feature. If the <code>DOMObject</code> returned by this method 286N/A * implements the <code>DOMImplementation</code> interface, it must 286N/A * delegate to the primary core <code>DOMImplementation</code> and not 286N/A * return results inconsistent with the primary core 286N/A * <code>DOMImplementation</code> such as <code>hasFeature</code>, 286N/A * <code>getFeature</code>, etc.