cascading.operation
Enum AssertionLevel

java.lang.Object
  extended by java.lang.Enum<AssertionLevel>
      extended by 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.


Enum Constant Summary
NONE
           
STRICT
           
VALID
           
 
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.
 
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

NONE

public static final AssertionLevel NONE

VALID

public static final AssertionLevel VALID

STRICT

public static final AssertionLevel STRICT
Method Detail

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.