Package jsonvalues.spec
Class JsTupleSpec
- java.lang.Object
-
- jsonvalues.spec.JsTupleSpec
-
- All Implemented Interfaces:
JsArraySpec
,JsSpec
public final class JsTupleSpec extends Object implements JsArraySpec
Represents a specification of every element of a Json array. It allows to define tuples and the schema of every of its elements.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsTupleSpec
nullable()
Returns the same spec with the nullable flag enabledJsSpecParser
parser()
Returns the deserializer used during the parsing process to parse an array of bytes or stringSet<SpecError>
test(JsArray array)
Set<SpecError>
test(JsPath parentPath, JsValue value)
verify if the given value satisfy this spec.
-
-
-
Method Detail
-
nullable
public JsTupleSpec nullable()
Description copied from interface:JsSpec
Returns the same spec with the nullable flag enabled
-
parser
public JsSpecParser parser()
Description copied from interface:JsSpec
Returns the deserializer used during the parsing process to parse an array of bytes or string
-
test
public Set<SpecError> test(JsPath parentPath, JsValue value)
Description copied from interface:JsSpec
verify if the given value satisfy this spec.
-
test
public Set<SpecError> test(JsArray array)
- Specified by:
test
in interfaceJsArraySpec
-
-