Package org.molgenis.api.metadata.v3
Interface EntityTypeResponseMapper
-
public interface EntityTypeResponseMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityTypeResponsetoEntityTypeResponse(EntityType entityType, boolean flattenAttributes, boolean i18n)Creates an entity type response from an entity type.EntityTypesResponsetoEntityTypesResponse(org.molgenis.api.metadata.v3.EntityTypes entityTypes, int size, int page)Creates an entity types response from entity types.
-
-
-
Method Detail
-
toEntityTypeResponse
EntityTypeResponse toEntityTypeResponse(EntityType entityType, boolean flattenAttributes, boolean i18n)
Creates an entity type response from an entity type.- Parameters:
entityType- entity type to mapflattenAttributes- whether to include attributes from parentsi18n- whether to include localized labels and descriptions- Returns:
- entity types response
-
toEntityTypesResponse
EntityTypesResponse toEntityTypesResponse(org.molgenis.api.metadata.v3.EntityTypes entityTypes, int size, int page)
Creates an entity types response from entity types.- Parameters:
entityTypes- entity types to mapsize- number of entity typespage- page number- Returns:
- entity types response
-
-