public class JsonArrayValidationBuilderKeyDefault extends JsonObjectValidationBuilderKeyDefault implements JsonArrayValidationBuilderKey
| Constructor and Description |
|---|
JsonArrayValidationBuilderKeyDefault(ValidationSet validationSet,
JsonArray validatedObject,
SimpleValidator validator,
ValidationFactory validationFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected JsonArray |
getValidatedObject() |
ValidationBuilderCore |
index(int index)
Validates the element at the specified
index.
|
ValidationBuilderArray |
indexAll(int index)
An
JsonArray is expected at the
given index and each of its elements
will be validated. |
ValidationBuilderCore |
jsonPath(String jsonPath)
Validates the element at the specified
JsonPath. |
ValidationBuilderArray |
jsonPathAll(String jsonPath)
An
JsonArray is expected at the
given JsonPath and each of its elements
will be validated. |
ValidationBuilderArray |
jsonPathAll(String jsonPath,
String validationKey)
An
JsonArray is expected at the
given JsonPath and each of its elements
will be validated. |
getValidationFactory, getValidationSet, getValidator, keyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeypublic JsonArrayValidationBuilderKeyDefault(ValidationSet validationSet, JsonArray validatedObject, SimpleValidator validator, ValidationFactory validationFactory)
protected JsonArray getValidatedObject()
getValidatedObject in class JsonObjectValidationBuilderKeyDefaultpublic ValidationBuilderCore jsonPath(String jsonPath)
JsonObjectValidationBuilderKeyJsonPath.jsonPath in interface JsonArrayValidationBuilderKeyjsonPath in interface JsonObjectValidationBuilderKeyjsonPath in class JsonObjectValidationBuilderKeyDefaultpublic ValidationBuilderArray jsonPathAll(String jsonPath)
JsonObjectValidationBuilderKeyJsonArray is expected at the
given JsonPath and each of its elements
will be validated.
Each validation key will be the JsonPath
followed by "[X]", where "X" is the position of the validated
element in the array.
jsonPathAll in interface JsonArrayValidationBuilderKeyjsonPathAll in interface JsonObjectValidationBuilderKeyjsonPathAll in class JsonObjectValidationBuilderKeyDefaultpublic ValidationBuilderArray jsonPathAll(String jsonPath, String validationKey)
JsonObjectValidationBuilderKeyJsonArray is expected at the
given JsonPath and each of its elements
will be validated.
Each validation key will be the specified validationKey
followed by "[X]", where "X" is the position of the validated
element in the array.
jsonPathAll in interface JsonObjectValidationBuilderKeyjsonPathAll in class JsonObjectValidationBuilderKeyDefaultvalidationKey - the validation key to use instead of the
JsonPath.public ValidationBuilderCore index(int index)
JsonArrayValidationBuilderKeyindex in interface JsonArrayValidationBuilderKeypublic ValidationBuilderArray indexAll(int index)
JsonArrayValidationBuilderKeyJsonArray is expected at the
given index and each of its elements
will be validated.
Each validation key will be "[X]", where "X" is the position of the validated element in the array.
indexAll in interface JsonArrayValidationBuilderKeyCopyright © 2017. All rights reserved.