Package com.sdicons.json.validator
Interface Validator
- All Known Implementing Classes:
And,Array,Bool,Complex,Content,CustomPredicate,CustomValidator,Decimal,Enumeration,False,Int,JSONValidator,Length,Let,Not,Nr,Null,Object,Or,Predicate,Properties,Range,Ref,Regexp,Simple,Str,Switch,True
public interface Validator
A validator inspects a JSONValue. If everything is fine the validator does nothing, and
if an error is encounterd the validator throws an exception. Different validators can look
at different aspects of JSONValues.
-
Method Summary
-
Method Details
-
validate
Validate a JSONValue.- Parameters:
aValue- The JSONValue that has to be validated.- Throws:
ValidationException- If the validation fails.
-