cascading.operation
Enum AssertionLevel
java.lang.Object
java.lang.Enum<AssertionLevel>
cascading.operation.AssertionLevel
- All Implemented Interfaces:
- Serializable, Comparable<AssertionLevel>
public enum AssertionLevel
- extends Enum<AssertionLevel>
Enum AssertionLevel designates the level of a given Assertion instance. This is used in conjuction with the
FlowConnector to plan assertions out of a particular Flow instance.
Currently Assertions can be denote either VALID or STRICT.
VALID assertions are used to validate data during staging testing or for use in a production environment.
STRICT assertions should be used as unit test would be against regression data and during development.
|
Method Summary |
boolean |
isStricterThan(AssertionLevel assertionLevel)
Method isStricterThan returns true if the current AssertionLevel is stricter than the argument level. |
static AssertionLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AssertionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NONE
public static final AssertionLevel NONE
VALID
public static final AssertionLevel VALID
STRICT
public static final AssertionLevel STRICT
values
public static AssertionLevel[] 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 (AssertionLevel c : AssertionLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AssertionLevel valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
isStricterThan
public boolean isStricterThan(AssertionLevel assertionLevel)
- Method isStricterThan returns true if the current AssertionLevel is stricter than the argument level.
- Parameters:
assertionLevel - of type AssertionLevel
- Returns:
- boolean
Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.