Package org.javalite.json
Class BooleanValidator
java.lang.Object
org.javalite.validation.ValidatorAdapter
org.javalite.json.JSONValidator
org.javalite.json.BooleanValidator
- All Implemented Interfaces:
Validator
Validates a boolean value in a JSON document.
-
Constructor Summary
ConstructorDescriptionBooleanValidator(String booleanPath)
Defaults to expect a "true" value at hte path.BooleanValidator(String booleanPath, boolean expected)
-
Method Summary
Methods inherited from class org.javalite.json.JSONValidator
validate
Methods inherited from class org.javalite.validation.ValidatorAdapter
formatMessage, getMessage, pinMessage, setMessage
-
Constructor Details
-
BooleanValidator
Defaults to expect a "true" value at hte path. If the value at a path evaluates to false, the validator will provide a corresponding message.- Parameters:
booleanPath
- path ot a boolean value in a JSON document
-
BooleanValidator
-
-
Method Details
-
validateJSONBase
- Specified by:
validateJSONBase
in classJSONValidator
-