Class ApiLabel

java.lang.Object
eu.c6.gibraltar.api.common.CObject
eu.c6.gibraltar.api.common.ApiLabel
All Implemented Interfaces:
ICObject, Serializable, Cloneable

public class ApiLabel extends CObject
The Class ApiLabel to manage localized labels.
See Also:
  • Method Details

    • getLang

      public String getLang()
      Gets the language
      Returns:
      the language
    • getLabel

      public String getLabel()
      Gets the label
      Returns:
      the label
    • mapToList

      public static List<ApiLabel> mapToList(Map<Locale,String> map)
      Converts a map of locales and values to a list of ApiLabel.
      Parameters:
      map - the map of locales and values
      Returns:
      the list of ApiLabel loaded from the Map