Interface AttributeResponseMapper


  • public interface AttributeResponseMapper
    • Method Detail

      • toAttributeResponse

        AttributeResponse toAttributeResponse​(Attribute attribute,
                                              boolean i18n)
        Creates an attribute response from an attribute.
        Parameters:
        attribute - attribute to map
        i18n - 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 map
        size - number of entity types
        page - page number
        Returns:
        attributes response