com.sdicons.json.validator.impl.predicates
Class Regexp

java.lang.Object
  extended by com.sdicons.json.validator.impl.predicates.Predicate
      extended by com.sdicons.json.validator.impl.predicates.Regexp
All Implemented Interfaces:
Validator

public class Regexp
extends Predicate


Constructor Summary
Regexp(String aName, JSONObject aRule)
           
 
Method Summary
 void validate(JSONValue aValue)
          Validate a JSONValue.
 
Methods inherited from class com.sdicons.json.validator.impl.predicates.Predicate
fail, fail, getName, getRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Regexp

public Regexp(String aName,
              JSONObject aRule)
       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.


Copyright © 2011. All Rights Reserved.