Class CaseSensitiveAttributeExtractor


  • public class CaseSensitiveAttributeExtractor
    extends AttributeExtractor
    author Pascal Knueppel
    created at: 23.07.2022 - 14:30

    used to extract attributes directly by their attribute-names as defined in their attributes-definition
    • Constructor Detail

      • CaseSensitiveAttributeExtractor

        public CaseSensitiveAttributeExtractor​(com.fasterxml.jackson.databind.JsonNode jsonDocument)
    • Method Detail

      • getAttribute

        public Optional<com.fasterxml.jackson.databind.JsonNode> getAttribute​(SchemaAttribute schemaAttribute)
        extracts the attribute case-sensitive from the given json document
        Specified by:
        getAttribute in class AttributeExtractor
        Parameters:
        schemaAttribute - the attributes-definition of the attribute that should be extracted from the document
        Returns:
        the attribute from the json document or an empty