Class AttributeExtractor

java.lang.Object
de.captaingoldfish.scim.sdk.common.utils.AttributeExtractor
Direct Known Subclasses:
CaseInsensitiveAttributeExtractor, CaseSensitiveAttributeExtractor

public abstract class AttributeExtractor extends Object
author Pascal Knueppel
created at: 23.07.2022 - 14:24

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.fasterxml.jackson.databind.JsonNode
    the json document from which the attributes should be extracted
  • Constructor Summary

    Constructors
    Constructor
    Description
    AttributeExtractor(com.fasterxml.jackson.databind.JsonNode jsonDocument)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract Optional<com.fasterxml.jackson.databind.JsonNode>
    getAttribute(SchemaAttribute schemaAttribute)
    used to get an attribute extractor for resource validation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • jsonDocument

      protected final com.fasterxml.jackson.databind.JsonNode jsonDocument
      the json document from which the attributes should be extracted
  • Constructor Details

    • AttributeExtractor

      public AttributeExtractor(com.fasterxml.jackson.databind.JsonNode jsonDocument)
  • Method Details

    • getAttribute

      public abstract Optional<com.fasterxml.jackson.databind.JsonNode> getAttribute(SchemaAttribute schemaAttribute)
      used to get an attribute extractor for resource validation
      Parameters:
      schemaAttribute - the attributes-definition of the attribute that should be extracted from the document
      Returns:
      the extracted attribute or null