org.apache.commons.pipeline.validation
Class ValidationUtils

java.lang.Object
  extended by org.apache.commons.pipeline.validation.ValidationUtils

public class ValidationUtils
extends Object

A collection of utility methods used by the validation system.


Method Summary
static Boolean canSucceed(Stage upstream, Stage downstream)
          Tests whether the specified downstream stage can succeed the specified upstream stage.
static Boolean canSucceedOnBranch(Stage upstream, String downstreamBranchKey, Stage downstream)
          Tests whether the specified downstream stage can succeed the specified upstream stage on a branch pipeline identified by the given branch key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

canSucceed

public static final Boolean canSucceed(Stage upstream,
                                       Stage downstream)
Tests whether the specified downstream stage can succeed the specified upstream stage.

Parameters:
upstream - the upstream stage
downstream - the stage consuming data produced by the upstream stage
Returns:
true or false on definitive identification of compatibility or null if unable to determine compatibility due to missing metadata.

canSucceedOnBranch

public static final Boolean canSucceedOnBranch(Stage upstream,
                                               String downstreamBranchKey,
                                               Stage downstream)
Tests whether the specified downstream stage can succeed the specified upstream stage on a branch pipeline identified by the given branch key.

Parameters:
upstream - the upstream stage
downstreamBranchKey - the key identifying the branch receiving data from the upstream stage
downstream - the stage consuming data produced by the upstream stage
Returns:
true or false on definitive identification of compatibility or null if unable to determine compatibility due to missing metadata.


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