Package yapion.hierarchy.validators
Class ValidatorVariable
- java.lang.Object
-
- yapion.hierarchy.validators.ValidatorVariable
-
public class ValidatorVariable extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ValidatorVariable(java.lang.String... path)
Create anValidatorVariable
used by theValidator
.ValidatorVariable(Validation validation, java.lang.String... path)
Create anValidatorVariable
used by theValidator
.
-
Method Summary
Modifier and Type Method Description ValidatorVariable
setType(ValidatorType type)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ValidatorVariable
public ValidatorVariable(Validation validation, java.lang.String... path)
Create anValidatorVariable
used by theValidator
. This constructor is used when you want to set theValidatorType
of thisValidatorVariable
toValidatorType.VALUE
. If the type isValidatorType.VALUE
than theValidation
will be executed.- Parameters:
validation
- a implementation specificValidation
path
- the path to go along to find theYAPIONAnyType
that should be validated
-
ValidatorVariable
public ValidatorVariable(java.lang.String... path)
Create anValidatorVariable
used by theValidator
. This constructor is used when you want to just check the type of theYAPIONAnyType
denoted by the path.- Parameters:
path
- the path to go along to find theYAPIONAnyType
that should be validated
-
-
Method Detail
-
setType
public ValidatorVariable setType(ValidatorType type)
- Parameters:
type
- set theValidatorType
for thisValidatorVariable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-