Class CustomAttributeValidator
java.lang.Object
de.captaingoldfish.scim.sdk.server.schemas.validation.CustomAttributeValidator
author Pascal Knueppel
created at: 30.11.2019 - 22:48
created at: 30.11.2019 - 22:48
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateArrayNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.ArrayNode arrayNode) verifies that the given array node does match its requirements if requirements have been setprotected static voidvalidateNumberNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.DoubleNode valueNode) verifies that the value of this node does match its requirements from the attributeprotected static voidvalidateNumberNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.IntNode valueNode) verifies that the value of this node does match its requirements from the attributeprotected static voidvalidateNumberNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.LongNode valueNode) verifies that the value of this node does match its requirements from the attributestatic voidvalidateSimpleNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.JsonNode attribute) validates a simple attribute that is neither an object nor an array against its custom schema validationprotected static voidvalidateTextNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.TextNode valueNode) validates if the given value matches the requirements of the schema attribute
-
Method Details
-
validateSimpleNode
public static void validateSimpleNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.JsonNode attribute) validates a simple attribute that is neither an object nor an array against its custom schema validation- Parameters:
schemaAttribute- the attributes definitionvalidatedAttribute- the attribute to validate
-
validateTextNode
protected static void validateTextNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.TextNode valueNode) validates if the given value matches the requirements of the schema attribute- Parameters:
schemaAttribute- the attribute definitionvalue- the value that should be checked
-
validateNumberNode
protected static void validateNumberNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.IntNode valueNode) verifies that the value of this node does match its requirements from the attribute- Parameters:
schemaAttribute- the attribute definitionvalue- the value of this node
-
validateNumberNode
protected static void validateNumberNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.LongNode valueNode) verifies that the value of this node does match its requirements from the attribute- Parameters:
schemaAttribute- the attribute definitionvalue- the value of this node
-
validateNumberNode
protected static void validateNumberNode(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.node.DoubleNode valueNode) verifies that the value of this node does match its requirements from the attribute- Parameters:
schemaAttribute- the attribute definitionvalue- the value of this node
-
validateArrayNode
public 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- Parameters:
schemaAttribute- the attribute definitionarrayNode- the array node that must match the requirements of the definition
-