Class DefaultValueHandler

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

public final class DefaultValueHandler extends Object
This class handles default values of the SchemaAttribute implementation. This is a custom feature not defined by SCIM.
Since:
11.11.2023
Author:
Pascal Knueppel
  • Method Details

    • getOrGetDefault

      public static com.fasterxml.jackson.databind.JsonNode getOrGetDefault(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.JsonNode attribute)
      gets the original node or the configured default value if a default value is configured
      Parameters:
      schemaAttribute - the attributes definition that might contain a default value
      attribute - the attribute that belongs to the given attribute-definition
      Returns:
      either the attribute from the parameter-list or the default value defined in the schema-attribute