File: DOMImplementation.java

package info (click to toggle)
lib-dom-java 0.19990107-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 376 kB
  • ctags: 829
  • sloc: java: 997; makefile: 42
file content (34 lines) | stat: -rw-r--r-- 1,494 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (c) 1998 World Wide Web Consortium, (Massachusetts Institute of
 * Technology, Institut National de Recherche en Informatique et en
 * Automatique, Keio University).
 * All Rights Reserved. http://www.w3.org/Consortium/Legal/
 */

package org.w3c.dom;

/**
 * The <code>DOMImplementation</code> interface provides a number of methods 
 * for performing operations that are independent of any particular instance 
 * of the document object model. 
 * <p>The DOM Level 1 does not specify a way of creating a document instance, 
 * and hence document creation is an operation specific to an implementation. 
 * Future Levels of the DOM specification are expected to provide methods for 
 * creating documents directly.
 */
public interface DOMImplementation {
  /**
   * Test if the DOM implementation implements a specific feature.
   * @param feature The package name of the feature to test. In Level 1, the 
   *   legal values are "HTML" and "XML" (case-insensitive).
   * @param version This is the version number of the package name to test.  
   *   In Level 1, this is the string "1.0". If the version is not specified, 
   *   supporting any version of the  feature will cause the method to return 
   *   <code>true</code>. 
   * @return <code>true</code> if the feature is implemented in the specified 
   *   version, <code>false</code> otherwise.
   */
  public boolean            hasFeature(String feature, 
                                       String version);
}