01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.xerces.dom;
18:
19: import org.w3c.dom.DOMImplementation;
20:
21: /**
22: * <p>This DOMImplementation class is description of a particular
23: * implementation of the Document Object Model. As such its data is
24: * static, shared by all instances of this implementation.</p>
25: *
26: * <p>This implementation simply extends DOMImplementationImpl to differentiate
27: * between the Deferred DOM Implementations and Non-Deferred DOM Implementations.</p>
28: *
29: * @xerces.internal
30: *
31: * @author Neil Delima, IBM
32: *
33: * @version $Id: DeferredDOMImplementationImpl.java 447266 2006-09-18 05:57:49Z mrglavas $
34: */
35: public class DeferredDOMImplementationImpl extends
36: DOMImplementationImpl {
37:
38: //
39: // Data
40: //
41:
42: // static
43:
44: /** Dom implementation singleton. */
45: static DeferredDOMImplementationImpl singleton = new DeferredDOMImplementationImpl();
46:
47: //
48: // Public methods
49: //
50:
51: /** NON-DOM: Obtain and return the single shared object */
52: public static DOMImplementation getDOMImplementation() {
53: return singleton;
54: }
55: }
|