Package jsonvalues.spec
Class JsArrayOfJsObjSpec
- java.lang.Object
-
- jsonvalues.spec.JsArrayOfJsObjSpec
-
- All Implemented Interfaces:
JsArraySpec
,JsSpec
public class JsArrayOfJsObjSpec extends java.lang.Object implements JsSpec, JsArraySpec
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRequired()
Returns whether the key is optional.JsSpec
nullable()
Returns the same spec with the nullable flag enabledJsSpec
optional()
Returns the same spec with the optional flag enabledJsSpecParser
parser()
Returns the deserializer used during the parsing process to parse an array of bytes or stringjava.util.Set<JsErrorPair>
test(JsPath parentPath, JsValue value)
verify if the given value satisfy this spec.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsonvalues.spec.JsArraySpec
test
-
-
-
-
Method Detail
-
isRequired
public boolean isRequired()
Description copied from interface:JsSpec
Returns whether the key is optional.- Specified by:
isRequired
in interfaceJsSpec
- Returns:
- whether the key is optional.
-
nullable
public JsSpec nullable()
Description copied from interface:JsSpec
Returns the same spec with the nullable flag enabled
-
optional
public JsSpec optional()
Description copied from interface:JsSpec
Returns the same spec with the optional 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 java.util.Set<JsErrorPair> test(JsPath parentPath, JsValue value)
Description copied from interface:JsSpec
verify if the given value satisfy this spec.
-
-