Class Properties
- java.lang.Object
-
- com.sdicons.json.validator.impl.predicates.Predicate
-
- com.sdicons.json.validator.impl.predicates.Properties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
Properties.PropRule
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.String,Properties.PropRule>
all
private java.util.List<Properties.PropRule>
required
-
Constructor Summary
Constructors Constructor Description Properties(java.lang.String aName, JSONObject aRule, java.util.HashMap<java.lang.String,Validator> aRuleset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(JSONValue aValue)
Validate a JSONValue.
-
-
-
Field Detail
-
required
private java.util.List<Properties.PropRule> required
-
all
private java.util.HashMap<java.lang.String,Properties.PropRule> all
-
-
Constructor Detail
-
Properties
public Properties(java.lang.String aName, JSONObject aRule, java.util.HashMap<java.lang.String,Validator> aRuleset) throws ValidationException
- Throws:
ValidationException
-
-
Method Detail
-
validate
public void validate(JSONValue aValue) throws ValidationException
Description copied from interface:Validator
Validate a JSONValue.- Parameters:
aValue
- The JSONValue that has to be validated.- Throws:
ValidationException
- If the validation fails.
-
-