Package | Description |
---|---|
com.sdicons.json.validator.predicates |
The building blocks to create validation expressions.
|
Modifier and Type | Class and Description |
---|---|
class |
And
This predicate represents the logical AND combination of a number of other predicates.
|
class |
Array
A predicate to check if a JSON value is an array.
|
class |
Bool
A predicate to check if a value is a boolean.
|
class |
Complex
A predicate to check if a JSON value is a JSONObject or a JSONArray.
|
class |
Content
A predicate that checks if all elements of a complex JSON structure JSONObject or
JSONArray comply to another named predicate.
|
class |
CustomPredicate
A predicate that uses a Java implementation of CustomValidator.
|
class |
CustomValidator
The super class of all custom Java validators.
|
class |
Decimal
Check if a JSON value is a JSON decimal or not.
|
class |
Enumeration
This predicate checks if the JSON value is one of the set of values
specified by this rule.
|
class |
False
This rule always fails.
|
class |
Int
A predicate to check if a JSON value is an integer or not.
|
class |
Length
A bounds check on the number of elements in a
JSONArray , the length of a JSONString or the number of properties in a JSONObject . |
class |
Let
It is a convenience rule that lets you specify a list of global shared
validation rules in advance before using these later on.
|
class |
Not
This predicate is a negation of another one.
|
class |
Nr
A predicate to test if a
JSONValue is a number representation, in JSON there are two viz. |
class |
Null
|
class |
Object
This predicate tests if a
JSONValue is a JSONObject or not. |
class |
Or
This predicate represents the logical OR combination of a number of other predicates.
|
class |
Properties
Predicate to subject the properties of a
JSONObject to some tests. |
class |
Range
A predicate to see if a
JSONNumber falls in the required range. |
class |
Ref
A rule that uses a named rule that was defined earlier.
|
class |
Regexp
Test if a
JSONString matches a regexp pattern. |
class |
Simple
This predicate tests whether a
JSONValue is a simple value, one of JSONString , JSONBoolean ,
JSONDecimal , JSONInteger or JSONNull . |
class |
Str
Test to see if a
JSONValue is a JSONString . |
class |
Switch
The switch validator is a convenience one.
|
class |
True
This rule always succeeds.
|
Copyright © 2012. All Rights Reserved.