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

java.lang.Object
  extended by com.sdicons.json.validator.impl.predicates.Predicate
All Implemented Interfaces:
Validator
Direct Known Subclasses:
And, Array, Bool, Complex, Content, CustomPredicate, CustomValidator, Decimal, Enumeration, False, Int, Length, Let, Not, Nr, Null, Object, Or, Properties, Range, Ref, Regexp, Simple, Str, Switch, True

public abstract class Predicate
extends Object
implements Validator


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

Constructor Detail

Predicate

protected Predicate(String aName,
                    JSONObject aRule)
Method Detail

fail

protected void fail(JSONValue aValue)
             throws ValidationException
Throws:
ValidationException

fail

protected void fail(String aMessage,
                    JSONValue aValue)
             throws ValidationException
Throws:
ValidationException

getName

public String getName()

getRule

public JSONObject getRule()


Copyright © 2011. All Rights Reserved.