Class CustomAttributeValidator

java.lang.Object
de.captaingoldfish.scim.sdk.server.schemas.validation.CustomAttributeValidator

public final class CustomAttributeValidator extends Object
author Pascal Knueppel
created at: 30.11.2019 - 22:48

  • Method Summary

    Modifier and Type
    Method
    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
    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
    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
    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
    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
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 definition
      validatedAttribute - 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 definition
      value - 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 definition
      value - 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 definition
      value - 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 definition
      value - 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 definition
      arrayNode - the array node that must match the requirements of the definition