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 anValidatorVariableused by theValidator.ValidatorVariable(Validation validation, java.lang.String... path)Create anValidatorVariableused by theValidator.
-
Method Summary
Modifier and Type Method Description ValidatorVariablesetType(ValidatorType type)java.lang.StringtoString()
-
-
-
Constructor Detail
-
ValidatorVariable
public ValidatorVariable(Validation validation, java.lang.String... path)
Create anValidatorVariableused by theValidator. This constructor is used when you want to set theValidatorTypeof thisValidatorVariabletoValidatorType.VALUE. If the type isValidatorType.VALUEthan theValidationwill be executed.- Parameters:
validation- a implementation specificValidationpath- the path to go along to find theYAPIONAnyTypethat should be validated
-
ValidatorVariable
public ValidatorVariable(java.lang.String... path)
Create anValidatorVariableused by theValidator. This constructor is used when you want to just check the type of theYAPIONAnyTypedenoted by the path.- Parameters:
path- the path to go along to find theYAPIONAnyTypethat should be validated
-
-
Method Detail
-
setType
public ValidatorVariable setType(ValidatorType type)
- Parameters:
type- set theValidatorTypefor thisValidatorVariable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-