Package | Description |
---|---|
jsonvalues.spec |
Modifier and Type | Interface and Description |
---|---|
interface |
JsArraySpec |
Modifier and Type | Class and Description |
---|---|
class |
JsArrayOfJsObjSpec |
class |
JsObjSpec
Represents a specification of a Json object
|
class |
JsTupleSpec
Represents a specification of every element of a Json array.
|
Modifier and Type | Field and Description |
---|---|
static JsSpec |
JsSpecs.FALSE
false constant spec
|
static JsSpec |
JsSpecs.TRUE
true constant spec
|
Modifier and Type | Method and Description |
---|---|
static JsSpec |
JsSpecs.any()
spec that is conformed by any value
|
static JsSpec |
JsSpecs.any(Predicate<JsValue> predicate)
returns a spec that conforms any value that is evaluated to true on the predicate.
|
static JsSpec |
JsSpecs.bigInteger()
non-nullable integral number
|
static JsSpec |
JsSpecs.bigInteger(Predicate<BigInteger> predicate)
non-nullable integral number that satisfies the given predicate
|
static JsSpec |
JsSpecs.binary()
non-nullable array spec
|
static JsSpec |
JsSpecs.binary(Predicate<byte[]> predicate)
non-nullable json object that satisfies the given predicate
|
static JsSpec |
JsSpecs.bool()
non-nullable boolean
|
static JsSpec |
JsSpecs.cons(JsValue value)
a required and non nullable spec that specifies a constant
|
static JsSpec |
JsSpecs.decimal()
non-nullable decimal number
|
static JsSpec |
JsSpecs.decimal(Predicate<BigDecimal> predicate)
non-nullable decimal number that satisfies the given predicate
|
static JsSpec |
JsSpecs.instant()
non-nullable array spec
|
static JsSpec |
JsSpecs.instant(Predicate<Instant> predicate)
non-nullable json object that satisfies the given predicate
|
static JsSpec |
JsSpecs.integer()
non-nullable integer number
|
static JsSpec |
JsSpecs.integer(IntPredicate predicate)
non-nullable integer number that satisfies the given predicate
|
static JsSpec |
JsSpecs.longInteger()
non-nullable long number
|
static JsSpec |
JsSpecs.longInteger(LongPredicate predicate)
non-nullable long number that satisfies the given predicate
|
static JsSpec |
JsSpecs.mapOfArray()
returns a spec that validates that the JSON is an object and the value of each key is an array
|
static JsSpec |
JsSpecs.mapOfBigInteger()
returns a spec that validates that the JSON is an object and the value of each key is a big integer
|
static JsSpec |
JsSpecs.mapOfBool()
returns a spec that validates that the JSON is an object and the value of each key is a boolean
|
static JsSpec |
JsSpecs.mapOfDecimal()
returns a spec that validates that the JSON is an object and the value of each key is a decimal number
|
static JsSpec |
JsSpecs.mapOfInstant()
returns a spec that validates that the JSON is an object and the value of each key is an instant
|
static JsSpec |
JsSpecs.mapOfInteger()
returns a spec that validates that the JSON is an object and the value of each key is an integer
|
static JsSpec |
JsSpecs.mapOfLong()
returns a spec that validates that the JSON is an object and the value of each key is a long number
|
static JsSpec |
JsSpecs.mapOfObj()
returns a spec that validates that the JSON is an object and the value of each key is an object
|
static JsSpec |
JsSpecs.mapOfStr()
returns a spec that validates that the JSON is an object and the value of each key is a string
|
JsSpec |
JsSpec.nullable()
Returns the same spec with the nullable flag enabled
|
JsSpec |
JsArrayOfJsObjSpec.nullable() |
static JsSpec |
JsSpecs.number()
non-nullable number
|
static JsSpec |
JsSpecs.number(Predicate<JsNumber> predicate)
non-nullable number that satisfies the given predicate
|
static JsSpec |
JsSpecs.obj()
non-nullable json object spec
|
static JsSpec |
JsSpecs.obj(Predicate<JsObj> predicate)
non-nullable json object that satisfies the given predicate
|
static <O extends JsValue> |
JsSpecs.oneOf(List<O> cons)
returns an enum spec
|
static JsSpec |
JsSpecs.str()
non-nullable string
|
static JsSpec |
JsSpecs.str(Predicate<String> predicate)
non-nullable string that satisfies the given predicate
|
Modifier and Type | Method and Description |
---|---|
static JsObjSpec |
JsObjSpec.of(String key,
JsSpec spec) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12,
String key13,
JsSpec spec13) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12,
String key13,
JsSpec spec13,
String key14,
JsSpec spec14) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12,
String key13,
JsSpec spec13,
String key14,
JsSpec spec14,
String key15,
JsSpec spec15) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12,
String key13,
JsSpec spec13,
String key14,
JsSpec spec14,
String key15,
JsSpec spec15,
String key16,
JsSpec spec16) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12,
String key13,
JsSpec spec13,
String key14,
JsSpec spec14,
String key15,
JsSpec spec15,
String key16,
JsSpec spec16,
String key17,
JsSpec spec17) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12,
String key13,
JsSpec spec13,
String key14,
JsSpec spec14,
String key15,
JsSpec spec15,
String key16,
JsSpec spec16,
String key17,
JsSpec spec17,
String key18,
JsSpec spec18) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12,
String key13,
JsSpec spec13,
String key14,
JsSpec spec14,
String key15,
JsSpec spec15,
String key16,
JsSpec spec16,
String key17,
JsSpec spec17,
String key18,
JsSpec spec18,
String key19,
JsSpec spec19) |
static JsObjSpec |
JsObjSpec.of(String key1,
JsSpec spec1,
String key2,
JsSpec spec2,
String key3,
JsSpec spec3,
String key4,
JsSpec spec4,
String key5,
JsSpec spec5,
String key6,
JsSpec spec6,
String key7,
JsSpec spec7,
String key8,
JsSpec spec8,
String key9,
JsSpec spec9,
String key10,
JsSpec spec10,
String key11,
JsSpec spec11,
String key12,
JsSpec spec12,
String key13,
JsSpec spec13,
String key14,
JsSpec spec14,
String key15,
JsSpec spec15,
String key16,
JsSpec spec16,
String key17,
JsSpec spec17,
String key18,
JsSpec spec18,
String key19,
JsSpec spec19,
String key20,
JsSpec spec20) |
JsObjSpec |
JsObjSpec.set(String key,
JsSpec spec)
add the given key spec to this
|
static JsTupleSpec |
JsSpecs.tuple(JsSpec spec,
JsSpec... others)
returns a tuple spec.
|
static JsTupleSpec |
JsSpecs.tuple(JsSpec spec,
JsSpec... others)
returns a tuple spec.
|
Constructor and Description |
---|
JsObjParser(JsSpec spec) |
Copyright © 2022. All rights reserved.