com.sdicons.json.validator.impl.predicates
Class Predicate
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Predicate
protected Predicate(String aName,
JSONObject aRule)
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.