Class DefaultValueHandler
java.lang.Object
de.captaingoldfish.scim.sdk.server.schemas.validation.DefaultValueHandler
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 Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.JsonNodegetOrGetDefault(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.JsonNode attribute) gets the original node or the configured default value if a default value is configured
-
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 valueattribute- 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
-