Package yapion.hierarchy.validators
Class Validator
- java.lang.Object
-
- yapion.hierarchy.validators.Validator
-
@Deprecated public final class Validator extends java.lang.Object
Deprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Validator.ValidationOption
Deprecated.
-
Constructor Summary
Constructors Constructor Description Validator()
Deprecated.
-
Method Summary
Modifier and Type Method Description Validator
add(Validator validator)
Deprecated.Validator
add(ValidatorVariable variable)
Deprecated.Add a newValidatorVariable
which will validate a small portion of anyYAPIONObject
.Validator
setValidationHook(ValidationHook validationHook)
Deprecated.JavaDoc found underValidationHook
java.lang.String
toString()
Deprecated.boolean
validate(YAPIONObject yapionObject)
Deprecated.Validate a specifiedYAPIONObject
with the specifiedValidatorVariable
's given by the user.static Validator
validator(YAPIONObject yapionObject)
Deprecated.static Validator
validator(YAPIONObject yapionObject, Validator.ValidationOption... validationOptions)
Deprecated.
-
-
-
Method Detail
-
setValidationHook
public Validator setValidationHook(ValidationHook validationHook)
Deprecated.JavaDoc found underValidationHook
- Parameters:
validationHook
- theValidationHook
to use
-
add
public Validator add(ValidatorVariable variable)
Deprecated.Add a newValidatorVariable
which will validate a small portion of anyYAPIONObject
. This method throws anYAPIONException
if the path in theValidatorVariable
isnull
or the type isnull
.- Parameters:
variable
- theValidatorVariable
to add
-
add
public Validator add(Validator validator)
Deprecated.- Parameters:
validator
- theValidator
to add
-
validate
public boolean validate(YAPIONObject yapionObject)
Deprecated.Validate a specifiedYAPIONObject
with the specifiedValidatorVariable
's given by the user.- Parameters:
yapionObject
- theYAPIONObject
to validate- Returns:
true
if theYAPIONObject
was valid,false
otherwise
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
validator
public static Validator validator(YAPIONObject yapionObject)
Deprecated.- Parameters:
yapionObject
- the exampleYAPIONObject
- Returns:
- the
Validator
for the givenYAPIONObject
-
validator
public static Validator validator(YAPIONObject yapionObject, Validator.ValidationOption... validationOptions)
Deprecated.- Parameters:
yapionObject
- the exampleYAPIONObject
validationOptions
- what the validator should validate- Returns:
- the
Validator
for the givenYAPIONObject
-
-