~ubuntu-branches/ubuntu/karmic/libxerces2-java/karmic

« back to all changes in this revision

Viewing changes to src/org/apache/xerces/dom/DeferredDOMImplementationImpl.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-12-04 17:37:55 UTC
  • mfrom: (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20061204173755-hb6ybrrrk097zhx7
Tags: 2.8.1-1ubuntu1
* Merge with Debian unstable; remaining changes:
  - Build -gcj package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 320096 2004-10-05 17:12:51Z mrglavas $
 
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
}