Package org.molgenis.api.metadata.v3
Interface AttributeRequestMapper
-
public interface AttributeRequestMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributetoAttribute(CreateAttributeRequest attributeRequest, EntityType entityType)Creates a new attribute from an attribute request.Map<String,Attribute>toAttributes(List<Map<String,Object>> attributeValueMaps, EntityType entityType)List<Attribute>toAttributes(List<CreateAttributeRequest> attributes, CreateEntityTypeRequest entityTypeRequest, EntityType entityType)voidupdateAttribute(Attribute attribute, Map<String,Object> attributeValues)Updates an attribute in-place.
-
-
-
Method Detail
-
toAttribute
Attribute toAttribute(CreateAttributeRequest attributeRequest, EntityType entityType)
Creates a new attribute from an attribute request.- Parameters:
attributeRequest- attribute requestentityType- entity type that this attribute will belong to- Returns:
- new attribute
-
updateAttribute
void updateAttribute(Attribute attribute, Map<String,Object> attributeValues)
Updates an attribute in-place.- Parameters:
attribute- attribute to updateattributeValues- attribute values to apply
-
toAttributes
List<Attribute> toAttributes(List<CreateAttributeRequest> attributes, CreateEntityTypeRequest entityTypeRequest, EntityType entityType)
-
-