com.semarchy.mdm.runtime.model.logical
Enum ValidationScope

java.lang.Object
  extended by java.lang.Enum<ValidationScope>
      extended by com.semarchy.mdm.runtime.model.logical.ValidationScope
All Implemented Interfaces:
Serializable, Comparable<ValidationScope>

public enum ValidationScope
extends Enum<ValidationScope>

ValidationScopeType enumeration:

Type of validation scope


Enum Constant Summary
NONE
          None: Never validate data
POST_CONSO
          Post consolidation only: Validates data after consolidation
PRE_CONSO
          Pre consolidation only: Validates source data before consolidation
PRE_POST
          Pre and post consolidation: Validates data both before and after consolidation
 
Method Summary
 boolean isPostConsoValidation()
          Return true if validation should be checked during post consolidation validations phase.
 boolean isSourceValidation()
          Return true if validation should be checked during source validations phase.
 boolean matches(ValidationScope pValidationPhase)
          Return true if validation should be checked when in are doing pValidationPhase.
static ValidationScope valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValidationScope[] 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 ValidationScope NONE
None: Never validate data


POST_CONSO

public static final ValidationScope POST_CONSO
Post consolidation only: Validates data after consolidation


PRE_CONSO

public static final ValidationScope PRE_CONSO
Pre consolidation only: Validates source data before consolidation


PRE_POST

public static final ValidationScope PRE_POST
Pre and post consolidation: Validates data both before and after consolidation

Method Detail

values

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

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

valueOf

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

matches

public boolean matches(ValidationScope pValidationPhase)
Return true if validation should be checked when in are doing pValidationPhase. That is this == PRE_POST or this == pValidationPhase

Parameters:
pValidationPhase - one of PRE_CONSO or POST_CONSO
Returns:

isSourceValidation

public boolean isSourceValidation()
Return true if validation should be checked during source validations phase.


isPostConsoValidation

public boolean isPostConsoValidation()
Return true if validation should be checked during post consolidation validations phase.



Copyright © 2015. All Rights Reserved.