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
ValidationException
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.