public final class AttributeValidator extends Object
| Constructor and Description |
|---|
AttributeValidator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
validateArrayNode(SchemaAttribute schemaAttribute,
com.fasterxml.jackson.databind.node.ArrayNode arrayNode)
verifies that the given array node does match its requirements if requirements have been set
|
static void |
validateNumberNode(SchemaAttribute schemaAttribute,
double value)
verifies that the value of this node does match its requirements from the attribute
|
static void |
validateTextNode(SchemaAttribute schemaAttribute,
String value)
validates if the given value matches the requirements of the schema attribute
|
public static void validateTextNode(SchemaAttribute schemaAttribute, String value)
schemaAttribute - the attribute definitionvalue - the value that should be checkedpublic static void validateNumberNode(SchemaAttribute schemaAttribute, double value)
schemaAttribute - the attribute definitionvalue - the value of this nodepublic static void validateArrayNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.ArrayNode arrayNode)
schemaAttribute - the attribute definitionarrayNode - the array node that must match the requirements of the definitionCopyright © 2020. All rights reserved.