public class Regexp extends Predicate
JSONString matches a regexp pattern.
{ "name" :"A-B-C validator",
"type" :"regexp",
"pattern" : "a*b*c*" }
public Regexp(String aName, JSONObject aRule) throws ValidationException
ValidationExceptionpublic void validate(JSONValue aValue) throws ValidationException
ValidatoraValue - The JSONValue that has to be validated.ValidationException - If the validation fails.Copyright © 2012. All Rights Reserved.