Package yapion.hierarchy.validators
Class ValidatorVariable
- java.lang.Object
- 
- yapion.hierarchy.validators.ValidatorVariable
 
- 
 public class ValidatorVariable extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description ValidatorVariable(java.lang.String... path)Create anValidatorVariableused by theValidator.ValidatorVariable(Validation validation, java.lang.String... path)Create anValidatorVariableused by theValidator.
 - 
Method SummaryModifier and Type Method Description ValidatorVariablesetType(ValidatorType type)java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
ValidatorVariablepublic 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 specific- Validation
- path- the path to go along to find the- YAPIONAnyTypethat should be validated
 
 - 
ValidatorVariablepublic 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 the- YAPIONAnyTypethat should be validated
 
 
- 
 - 
Method Detail- 
setTypepublic ValidatorVariable setType(ValidatorType type) - Parameters:
- type- set the- ValidatorTypefor this- ValidatorVariable
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-