public class JsonObjectValidationBuilderKeyDefault extends ValidationBuilderKeyDefault implements JsonObjectValidationBuilderKey
| Constructor and Description |
|---|
JsonObjectValidationBuilderKeyDefault(ValidationSet validationSet,
JsonObjectOrArray validatedObject,
SimpleValidator validator,
ValidationFactory validationFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected JsonObjectOrArray |
getValidatedObject() |
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 JsonObjectValidationBuilderKeyDefault(ValidationSet validationSet, JsonObjectOrArray validatedObject, SimpleValidator validator, ValidationFactory validationFactory)
protected JsonObjectOrArray getValidatedObject()
public ValidationBuilderCore jsonPath(String jsonPath)
JsonObjectValidationBuilderKeyJsonPath.jsonPath in interface JsonObjectValidationBuilderKeypublic 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 JsonObjectValidationBuilderKeypublic 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 JsonObjectValidationBuilderKeyvalidationKey - the validation key to use instead of the
JsonPath.Copyright © 2016. All rights reserved.