1 /* 2 * Copyright 2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.apache.xerces.dom; 17 18 import org.w3c.dom.DOMImplementation; 19 20 /** 21 * <p>This DOMImplementation class is description of a particular 22 * implementation of the Document Object Model. As such its data is 23 * static, shared by all instances of this implementation.</p> 24 * 25 * <p>This implementation simply extends DOMImplementationImpl to differentiate 26 * between the Deferred DOM Implementations and Non-Deferred DOM Implementations.</p> 27 * 28 * @xerces.internal 29 * 30 * @author Neil Delima, IBM 31 * 32 * @version $Id: DeferredDOMImplementationImpl.java,v 1.3 2004/10/05 17:12:50 mrglavas Exp $ 33 */ 34 public class DeferredDOMImplementationImpl 35 extends DOMImplementationImpl { 36 37 // 38 // Data 39 // 40 41 // static 42 43 /** Dom implementation singleton. */ 44 static DeferredDOMImplementationImpl singleton = new DeferredDOMImplementationImpl(); 45 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 } 56