org.apache.commons.pipeline.validation
Enum ValidationFailure.Type

java.lang.Object
  extended by java.lang.Enum<ValidationFailure.Type>
      extended by org.apache.commons.pipeline.validation.ValidationFailure.Type
All Implemented Interfaces:
Serializable, Comparable<ValidationFailure.Type>
Enclosing class:
ValidationFailure

public static enum ValidationFailure.Type
extends Enum<ValidationFailure.Type>

Enumeration of possible causes of validation failure


Enum Constant Summary
BRANCH_CONNECT
          Indicates that a branch could not consume the output (type mismatch) of pipeline stages feeding the branch.
BRANCH_NOT_FOUND
          Indicates that a branch to consume the branch output of a stage could not be found.
OTHER
          Other validation error - see detail message.
STAGE_CONNECT
          Indicates that a stage appears to be unable to consume the output of the previous stage
 
Method Summary
static ValidationFailure.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValidationFailure.Type[] 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

STAGE_CONNECT

public static final ValidationFailure.Type STAGE_CONNECT
Indicates that a stage appears to be unable to consume the output of the previous stage


BRANCH_CONNECT

public static final ValidationFailure.Type BRANCH_CONNECT
Indicates that a branch could not consume the output (type mismatch) of pipeline stages feeding the branch.


BRANCH_NOT_FOUND

public static final ValidationFailure.Type BRANCH_NOT_FOUND
Indicates that a branch to consume the branch output of a stage could not be found.


OTHER

public static final ValidationFailure.Type OTHER
Other validation error - see detail message.

Method Detail

values

public static ValidationFailure.Type[] 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 (ValidationFailure.Type c : ValidationFailure.Type.values())
    System.out.println(c);

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

valueOf

public static ValidationFailure.Type 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


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.