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

« back to all changes in this revision

Viewing changes to src/org/apache/xerces/dom3/DOMImplementationSource.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 (c) 2003 World Wide Web Consortium,
3
 
 *
4
 
 * (Massachusetts Institute of Technology, European Research Consortium for
5
 
 * Informatics and Mathematics, Keio University). All Rights Reserved. This
6
 
 * work is distributed under the W3C(r) Software License [1] in the hope that
7
 
 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
8
 
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9
 
 *
10
 
 * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
11
 
 */
12
 
 
13
 
package org.apache.xerces.dom3;
14
 
 
15
 
import org.w3c.dom.DOMImplementation;
16
 
 
17
 
/**
18
 
 * This interface permits a DOM implementer to supply one or more 
19
 
 * implementations, based upon requested features and versions, as specified 
20
 
 * in . Each implemented <code>DOMImplementationSource</code> object is 
21
 
 * listed in the binding-specific list of available sources so that its 
22
 
 * <code>DOMImplementation</code> objects are made available.
23
 
 * <p>See also the <a href='http://www.w3.org/TR/2003/CR-DOM-Level-3-Core-20031107'>Document Object Model (DOM) Level 3 Core Specification</a>.
24
 
 * @since DOM Level 3
25
 
 */
26
 
public interface DOMImplementationSource {
27
 
    /**
28
 
     *  A method to request the first DOM implementation that supports the 
29
 
     * specified features. 
30
 
     * @param features  A string that specifies which features and versions 
31
 
     *   are required. This is a space separated list in which each feature 
32
 
     *   is specified by its name optionally followed by a space and a 
33
 
     *   version number.  This method returns the first item of the list 
34
 
     *   returned by <code>getDOMImplementationList</code>.  As an example, 
35
 
     *   the string <code>"XML 3.0 Traversal +Events 2.0"</code> will 
36
 
     *   request a DOM implementation that supports the module "XML" for its 
37
 
     *   3.0 version, a module that support of the "Traversal" module for 
38
 
     *   any version, and the module "Events" for its 2.0 version. The 
39
 
     *   module "Events" must be accessible using the method 
40
 
     *   <code>Node.getFeature()</code> and 
41
 
     *   <code>DOMImplementation.getFeature()</code>. 
42
 
     * @return The first DOM implementation that support the desired 
43
 
     *   features, or <code>null</code> if this source has none.
44
 
     */
45
 
    public DOMImplementation getDOMImplementation(String features);
46
 
 
47
 
    /**
48
 
     * A method to request a list of DOM implementations that support the 
49
 
     * specified features and versions, as specified in .
50
 
     * @param features A string that specifies which features and versions 
51
 
     *   are required. This is a space separated list in which each feature 
52
 
     *   is specified by its name optionally followed by a space and a 
53
 
     *   version number. This is something like: "XML 3.0 Traversal +Events 
54
 
     *   2.0"
55
 
     * @return A list of DOM implementations that support the desired 
56
 
     *   features.
57
 
     */
58
 
    public DOMImplementationList getDOMImplementationList(String features);
59
 
 
60
 
}