Package yapion.hierarchy.validators
Class ValidatorCluster
- java.lang.Object
-
- yapion.hierarchy.validators.ValidatorCluster
-
@Deprecated public final class ValidatorCluster extends java.lang.ObjectDeprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidatorCluster.ClusterModeDeprecated.
-
Constructor Summary
Constructors Constructor Description ValidatorCluster()Deprecated.
-
Method Summary
Modifier and Type Method Description ValidatorClusteradd(Validator validator)Deprecated.Add a newValidatorto thisValidatorCluster.booleanvalidate(YAPIONObject yapionObject)Deprecated.Checks if the inputtedYAPIONObjectmatches oneValidator.booleanvalidate(YAPIONObject yapionObject, int validNumber)Deprecated.Checks if the inputtedYAPIONObjectmatches oneValidator.booleanvalidate(ValidatorCluster.ClusterMode clusterMode, YAPIONObject yapionObject)Deprecated.Checks if the inputtedYAPIONObjectmatches theValidatorwith the specifiedValidatorCluster.ClusterMode.booleanvalidate(ValidatorCluster.ClusterMode clusterMode, YAPIONObject yapionObject, int validNumber)Deprecated.Checks if the inputtedYAPIONObjectmatches theValidatorwith the specifiedValidatorCluster.ClusterMode.
-
-
-
Method Detail
-
add
public ValidatorCluster add(Validator validator)
Deprecated.Add a newValidatorto thisValidatorCluster.- Parameters:
validator- theValidatorto add
-
validate
public boolean validate(YAPIONObject yapionObject)
Deprecated.Checks if the inputtedYAPIONObjectmatches oneValidator. It uses theValidatorCluster.ClusterMode.ANY_VALID.- Parameters:
yapionObject- theYAPIONObjectto validate- Returns:
trueif anyValidatorreturnstrue,falseotherwise
-
validate
public boolean validate(YAPIONObject yapionObject, int validNumber)
Deprecated.Checks if the inputtedYAPIONObjectmatches oneValidator. It uses theValidatorCluster.ClusterMode.LEAST_VALID.- Parameters:
yapionObject- theYAPIONObjectto validatevalidNumber- theValidatorthreshold- Returns:
trueif at least nValidator's returnedtrue,falseotherwise
-
validate
public boolean validate(ValidatorCluster.ClusterMode clusterMode, YAPIONObject yapionObject)
Deprecated.Checks if the inputtedYAPIONObjectmatches theValidatorwith the specifiedValidatorCluster.ClusterMode.- Parameters:
clusterMode- theValidatorCluster.ClusterModeto useyapionObject- theYAPIONObjectto validate- Returns:
trueif the specification of theClusterModeare metValidatorCluster.ClusterMode.ANY_VALIDandValidatorCluster.ClusterMode.LEAST_VALIDwill behave the sameValidatorCluster.ClusterMode.SPECIFIC_VALIDwill behave as one and only one is validValidatorCluster.ClusterMode.MOST_VALIDwill behave as one valid or none valid
-
validate
public boolean validate(ValidatorCluster.ClusterMode clusterMode, YAPIONObject yapionObject, int validNumber)
Deprecated.Checks if the inputtedYAPIONObjectmatches theValidatorwith the specifiedValidatorCluster.ClusterMode.- Parameters:
clusterMode- theValidatorCluster.ClusterModeto useyapionObject- theYAPIONObjectto validatevalidNumber- theValidatorthreshold- Returns:
trueif the specification of theValidatorCluster.ClusterModeare met,falseotherwise
-
-