public class Array extends Predicate
An example of an array validator. The JSONValue must be an array and it must contain integers.
{
"name" :"List of integers",
"type" :"and",
"rules" : [{"type":"array"},{"type":"content","rule":{"type":"int"}}]
}
public Array(String aName)
public void validate(JSONValue aValue) throws ValidationException
Validator
aValue
- The JSONValue that has to be validated.ValidationException
- If the validation fails.Copyright © 2012. All Rights Reserved.