Package yapion.hierarchy.validators
Class Validator
- java.lang.Object
-
- yapion.hierarchy.validators.Validator
-
@Deprecated public final class Validator extends java.lang.ObjectDeprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidator.ValidationOptionDeprecated.
-
Constructor Summary
Constructors Constructor Description Validator()Deprecated.
-
Method Summary
Modifier and Type Method Description Validatoradd(Validator validator)Deprecated.Validatoradd(ValidatorVariable variable)Deprecated.Add a newValidatorVariablewhich will validate a small portion of anyYAPIONObject.ValidatorsetValidationHook(ValidationHook validationHook)Deprecated.JavaDoc found underValidationHookjava.lang.StringtoString()Deprecated.booleanvalidate(YAPIONObject yapionObject)Deprecated.Validate a specifiedYAPIONObjectwith the specifiedValidatorVariable's given by the user.static Validatorvalidator(YAPIONObject yapionObject)Deprecated.static Validatorvalidator(YAPIONObject yapionObject, Validator.ValidationOption... validationOptions)Deprecated.
-
-
-
Method Detail
-
setValidationHook
public Validator setValidationHook(ValidationHook validationHook)
Deprecated.JavaDoc found underValidationHook- Parameters:
validationHook- theValidationHookto use
-
add
public Validator add(ValidatorVariable variable)
Deprecated.Add a newValidatorVariablewhich will validate a small portion of anyYAPIONObject. This method throws anYAPIONExceptionif the path in theValidatorVariableisnullor the type isnull.- Parameters:
variable- theValidatorVariableto add
-
add
public Validator add(Validator validator)
Deprecated.- Parameters:
validator- theValidatorto add
-
validate
public boolean validate(YAPIONObject yapionObject)
Deprecated.Validate a specifiedYAPIONObjectwith the specifiedValidatorVariable's given by the user.- Parameters:
yapionObject- theYAPIONObjectto validate- Returns:
trueif theYAPIONObjectwas valid,falseotherwise
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
validator
public static Validator validator(YAPIONObject yapionObject)
Deprecated.- Parameters:
yapionObject- the exampleYAPIONObject- Returns:
- the
Validatorfor the givenYAPIONObject
-
validator
public static Validator validator(YAPIONObject yapionObject, Validator.ValidationOption... validationOptions)
Deprecated.- Parameters:
yapionObject- the exampleYAPIONObjectvalidationOptions- what the validator should validate- Returns:
- the
Validatorfor the givenYAPIONObject
-
-