Package org.molgenis.api.metadata.v3
Interface AttributeResponseMapper
-
public interface AttributeResponseMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<AttributeResponse>mapInternal(Iterable<Attribute> allAttributes, boolean i18n)AttributeResponsetoAttributeResponse(Attribute attribute, boolean i18n)Creates an attribute response from an attribute.AttributesResponsetoAttributesResponse(org.molgenis.api.metadata.v3.Attributes attributes, int size, int page)Creates an attributes response from attributes.
-
-
-
Method Detail
-
toAttributeResponse
AttributeResponse toAttributeResponse(Attribute attribute, boolean i18n)
Creates an attribute response from an attribute.- Parameters:
attribute- attribute to mapi18n- whether to include localized labels and descriptions- Returns:
- attribute response
-
toAttributesResponse
AttributesResponse toAttributesResponse(org.molgenis.api.metadata.v3.Attributes attributes, int size, int page)
Creates an attributes response from attributes.- Parameters:
attributes- attributes to mapsize- number of entity typespage- page number- Returns:
- attributes response
-
mapInternal
List<AttributeResponse> mapInternal(Iterable<Attribute> allAttributes, boolean i18n)
-
-