public class MaxLengthValidator extends BaseJsonValidator implements JsonValidator
AT_ROOT
Constructor and Description |
---|
MaxLengthValidator(java.lang.String schemaPath,
com.google.gson.JsonElement schemaNode,
JsonSchema parentSchema) |
Modifier and Type | Method and Description |
---|---|
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, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
public MaxLengthValidator(java.lang.String schemaPath, com.google.gson.JsonElement schemaNode, JsonSchema parentSchema)
public java.util.Set<ValidationMessage> validate(com.google.gson.JsonElement node, com.google.gson.JsonElement rootNode, java.lang.String at)
JsonValidator
validate
in interface JsonValidator
node
- JsonElementrootNode
- JsonElementat
- String