| Constructor and Description |
|---|
And(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset)
Create the AND predicate.
|
And(String aName,
Validator... validators) |
public And(String aName, JSONObject aRule, HashMap<String,Validator> aRuleset) throws ValidationException
aName - The name of the rule. If the rule fails we can find it back using this name.aRule - The JSON object that contains information about this rule.aRuleset - The set of named validation rules that were already encountered, they can
be used recursively.ValidationExceptionpublic void validate(JSONValue aValue) throws ValidationException
aValue - The JSONValue that has to be validated.ValidationException - If the validation fails.Copyright © 2012. All Rights Reserved.