public class ItemsValidator extends BaseJsonValidator implements JsonValidator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY |
AT_ROOT| Constructor and Description |
|---|
ItemsValidator(java.lang.String schemaPath,
com.google.gson.JsonElement schemaNode,
JsonSchema parentSchema) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonArray |
deriveDefaultArray() |
com.google.gson.JsonArray |
deriveDefaultArray(boolean includeExample) |
java.util.Optional<JsonSchema> |
findSchemaForIndex(int index) |
java.util.Optional<com.google.gson.JsonElement> |
getDefaultItem() |
java.util.Set<ValidationMessage> |
validate(com.google.gson.JsonElement node,
com.google.gson.JsonElement rootNode,
java.lang.String at)
Validate the given JsonElement, the given node is the child node of the root node at given
data path.
|
asInt, buildValidationMessage, debug, equals, getParentSchema, getSchemaNode, getSchemaPath, getSubSchema, getValidatorType, greaterThan, hasSubSchema, lessThan, obtainSubSchemaNode, parseErrorCode, useRefCache, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidatepublic static final java.lang.String PROPERTY
public ItemsValidator(java.lang.String schemaPath,
com.google.gson.JsonElement schemaNode,
JsonSchema parentSchema)
public java.util.Optional<JsonSchema> findSchemaForIndex(int index)
public java.util.Set<ValidationMessage> validate(com.google.gson.JsonElement node, com.google.gson.JsonElement rootNode, java.lang.String at)
JsonValidatorvalidate in interface JsonValidatornode - JsonElementrootNode - JsonElementat - Stringpublic com.google.gson.JsonArray deriveDefaultArray()
public com.google.gson.JsonArray deriveDefaultArray(boolean includeExample)
public java.util.Optional<com.google.gson.JsonElement> getDefaultItem()