org.w3c.mwi.mobileok.basic
Enum TestType

java.lang.Object
  extended by java.lang.Enum<TestType>
      extended by org.w3c.mwi.mobileok.basic.TestType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TestType>

public enum TestType
extends java.lang.Enum<TestType>

Enumerates the individual tests run by the mobileOK Checker.

The list maintained by the W3C mobileOK Checker Task Force is the list of mobileOK tests defined in the W3C mobileOK Basic Tests 1.0 W3C standard.

To extend or modify the list of tests run by the Checker, update the TestType enumeration and the static mapping it defines between the name of the test and the Java classes that implement the test.

A test must implement the TestImplementation interface.

Version:
$Revision: 1.2 $
Author:
The W3C mobileOK Checker Task Force
See Also:
TestImplementation

Enum Constant Summary
AUTO_REFRESH
           
CACHING
           
CHARACTER_ENCODING_SUPPORT
           
CONTENT_FORMAT_SUPPORT
           
DEFAULT_INPUT_MODE
           
EXTERNAL_RESOURCES
           
GRAPHICS_FOR_SPACING
           
IMAGE_MAPS
           
IMAGES_SPECIFY_SIZE
           
LINK_TARGET_FORMAT
           
MAIN_DOCUMENT
           
MEASURES
           
MINIMIZE
           
NO_FRAMES
           
NON_TEXT_ALTERNATIVES
           
OBJECTS_OR_SCRIPT
           
PAGE_SIZE_LIMIT
           
PAGE_TITLE
           
POP_UPS
           
PROVIDE_DEFAULTS
           
STYLE_SHEETS_SUPPORT
           
STYLE_SHEETS_USE
           
TABLES_ALTERNATIVES
           
TABLES_LAYOUT
           
TABLES_NESTED
           
 
Field Summary
private static java.util.Map<TestType,TestImplementation> implementations
          Mapping table between the names of the test and instances of the classes that implement them.
 
Method Summary
(package private) static TestImplementation getImplementation(TestType type)
           
static TestType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TestType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MAIN_DOCUMENT

public static final TestType MAIN_DOCUMENT

AUTO_REFRESH

public static final TestType AUTO_REFRESH

CACHING

public static final TestType CACHING

CHARACTER_ENCODING_SUPPORT

public static final TestType CHARACTER_ENCODING_SUPPORT

CONTENT_FORMAT_SUPPORT

public static final TestType CONTENT_FORMAT_SUPPORT

DEFAULT_INPUT_MODE

public static final TestType DEFAULT_INPUT_MODE

EXTERNAL_RESOURCES

public static final TestType EXTERNAL_RESOURCES

GRAPHICS_FOR_SPACING

public static final TestType GRAPHICS_FOR_SPACING

IMAGE_MAPS

public static final TestType IMAGE_MAPS

IMAGES_SPECIFY_SIZE

public static final TestType IMAGES_SPECIFY_SIZE

LINK_TARGET_FORMAT

public static final TestType LINK_TARGET_FORMAT

MEASURES

public static final TestType MEASURES

MINIMIZE

public static final TestType MINIMIZE

NO_FRAMES

public static final TestType NO_FRAMES

NON_TEXT_ALTERNATIVES

public static final TestType NON_TEXT_ALTERNATIVES

OBJECTS_OR_SCRIPT

public static final TestType OBJECTS_OR_SCRIPT

PAGE_SIZE_LIMIT

public static final TestType PAGE_SIZE_LIMIT

PAGE_TITLE

public static final TestType PAGE_TITLE

POP_UPS

public static final TestType POP_UPS

PROVIDE_DEFAULTS

public static final TestType PROVIDE_DEFAULTS

STYLE_SHEETS_SUPPORT

public static final TestType STYLE_SHEETS_SUPPORT

STYLE_SHEETS_USE

public static final TestType STYLE_SHEETS_USE

TABLES_ALTERNATIVES

public static final TestType TABLES_ALTERNATIVES

TABLES_LAYOUT

public static final TestType TABLES_LAYOUT

TABLES_NESTED

public static final TestType TABLES_NESTED
Field Detail

implementations

private static final java.util.Map<TestType,TestImplementation> implementations
Mapping table between the names of the test and instances of the classes that implement them.

Method Detail

values

public static TestType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TestType c : TestType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TestType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getImplementation

static TestImplementation getImplementation(TestType type)