Package | Description |
---|---|
com.sdicons.json.validator |
Validating a JSON model with validation rules.
|
com.sdicons.json.validator.predicates |
The building blocks to create validation expressions.
|
Modifier and Type | Method and Description |
---|---|
static Validator |
ValidatorUtil.buildValidator(JSONValue aVal) |
static Validator |
ValidatorUtil.buildValidator(JSONValue aVal,
HashMap<String,Validator> aRuleset) |
static void |
ValidatorUtil.requiresAttribute(JSONObject aTarget,
String aAttrib,
Class<?> aValueType) |
void |
Validator.validate(JSONValue aValue)
Validate a JSONValue.
|
void |
JSONValidator.validate(JSONValue aValue)
Validate a JSON value according to the rules described in the
validator rules.
|
Constructor and Description |
---|
JSONValidator(JSONObject aValidation)
Construct the validator based on the JSON description.
|
Modifier and Type | Method and Description |
---|---|
void |
True.validate(JSONValue aValue) |
void |
Switch.validate(JSONValue aValue) |
void |
Str.validate(JSONValue aValue) |
void |
Simple.validate(JSONValue aValue) |
void |
Regexp.validate(JSONValue aValue) |
void |
Ref.validate(JSONValue aValue) |
void |
Range.validate(JSONValue aValue) |
void |
Properties.validate(JSONValue aValue) |
void |
Or.validate(JSONValue aValue) |
void |
Object.validate(JSONValue aValue) |
void |
Null.validate(JSONValue aValue) |
void |
Nr.validate(JSONValue aValue) |
void |
Not.validate(JSONValue aValue) |
void |
Let.validate(JSONValue aValue) |
void |
Length.validate(JSONValue aValue) |
void |
Int.validate(JSONValue aValue) |
void |
False.validate(JSONValue aValue) |
void |
Enumeration.validate(JSONValue aValue) |
void |
Decimal.validate(JSONValue aValue) |
void |
CustomPredicate.validate(JSONValue aValue) |
void |
Content.validate(JSONValue aValue) |
void |
Complex.validate(JSONValue aValue) |
void |
Bool.validate(JSONValue aValue) |
void |
Array.validate(JSONValue aValue) |
void |
And.validate(JSONValue aValue)
Execute the And predicate.
|
Constructor and Description |
---|
And(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset)
Create the AND predicate.
|
Content(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset) |
CustomPredicate(String aName,
JSONObject aRule,
Map<String,Validator> aRuleset) |
Enumeration(String aName,
JSONObject aRule) |
Length(String aName,
JSONObject aRule) |
Let(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset) |
Not(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset) |
Or(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset) |
Properties(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset) |
Range(String aName,
JSONObject aRule) |
Ref(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset) |
Regexp(String aName,
JSONObject aRule) |
Switch(String aName,
JSONObject aRule,
HashMap<String,Validator> aRuleset) |
Copyright © 2012. All Rights Reserved.