org.qtitools.qti.validation
Enum ValidationType

java.lang.Object
  extended by java.lang.Enum<ValidationType>
      extended by org.qtitools.qti.validation.ValidationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValidationType>

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

Definition of ValidationItem types.

Supported types are error, warning, info.

Author:
Jiri Kajaba

Enum Constant Summary
ERROR
          Error type.
INFO
          Info type.
WARNING
          Warning type.
 
Method Summary
 java.lang.String toString()
           
static ValidationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValidationType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ERROR

public static final ValidationType ERROR
Error type. Used for serious problems.


WARNING

public static final ValidationType WARNING
Warning type. Used for potential problems and/or recommendations/warnings.


INFO

public static final ValidationType INFO
Info type. Information about validation process.

Method Detail

values

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

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

valueOf

public static ValidationType 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ValidationType>


Copyright © 2009. All Rights Reserved.