Class AttributeExtractor
java.lang.Object
de.captaingoldfish.scim.sdk.common.utils.AttributeExtractor
- Direct Known Subclasses:
CaseInsensitiveAttributeExtractor,CaseSensitiveAttributeExtractor
author Pascal Knueppel
created at: 23.07.2022 - 14:24
created at: 23.07.2022 - 14:24
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.JsonNodethe json document from which the attributes should be extracted -
Constructor Summary
ConstructorsConstructorDescriptionAttributeExtractor(com.fasterxml.jackson.databind.JsonNode jsonDocument) Creates a newAttributeExtractorinstance. -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<com.fasterxml.jackson.databind.JsonNode>getAttribute(SchemaAttribute schemaAttribute) used to get an attribute extractor for resource validation
-
Field Details
-
jsonDocument
protected final com.fasterxml.jackson.databind.JsonNode jsonDocumentthe json document from which the attributes should be extracted
-
-
Constructor Details
-
AttributeExtractor
public AttributeExtractor(com.fasterxml.jackson.databind.JsonNode jsonDocument) Creates a newAttributeExtractorinstance.- Parameters:
jsonDocument- the json document from which the attributes should be extracted
-
-
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
-