11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xerces.internal.impl.xs.opti;
23 import org.w3c.dom.DOMException;
24 import org.w3c.dom.DOMImplementation;
25 import org.w3c.dom.Document;
26 import org.w3c.dom.DocumentType;
27
28 /**
29 * @xerces.internal
30 *
31 * @version $Id: SchemaDOMImplementation.java,v 1.2 2010-10-26 23:01:18 joehw Exp $
32 */
33 final class SchemaDOMImplementation implements DOMImplementation {
34
35 private static final SchemaDOMImplementation singleton = new SchemaDOMImplementation();
36
37 /** NON-DOM: Obtain and return the single shared object */
38 public static DOMImplementation getDOMImplementation() {
39 return singleton;
40 }
41
42 private SchemaDOMImplementation() {}
43
44 public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
45 throws DOMException {
46 throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
47 }
48
49 public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId)
50 throws DOMException {
51 throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
|
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xerces.internal.impl.xs.opti;
23 import org.w3c.dom.DOMException;
24 import org.w3c.dom.DOMImplementation;
25 import org.w3c.dom.Document;
26 import org.w3c.dom.DocumentType;
27
28 /**
29 * @xerces.internal
30 *
31 */
32 final class SchemaDOMImplementation implements DOMImplementation {
33
34 private static final SchemaDOMImplementation singleton = new SchemaDOMImplementation();
35
36 /** NON-DOM: Obtain and return the single shared object */
37 public static DOMImplementation getDOMImplementation() {
38 return singleton;
39 }
40
41 private SchemaDOMImplementation() {}
42
43 public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
44 throws DOMException {
45 throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
46 }
47
48 public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId)
49 throws DOMException {
50 throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
|