Class M2Label

java.lang.Object
org.alfresco.repo.dictionary.M2Label

public class M2Label extends Object
Helper for obtaining display labels for data dictionary items
Author:
David Caruana
  • Constructor Details

    • M2Label

      public M2Label()
  • Method Details

    • getLabel

      public static String getLabel(Locale locale, ModelDefinition model, MessageLookup messageLookup, String type, QName item, String label)
      Get label for data dictionary item given specified locale
      Parameters:
      locale - Locale
      model - ModelDefinition
      messageLookup - MessageLookup
      type - String
      item - QName
      label - String
      Returns:
      String
    • getLabel

      public static String getLabel(ModelDefinition model, MessageLookup messageLookup, String type, QName item, String label)
      Get label for data dictionary item
      Parameters:
      model - ModelDefinition
      messageLookup - MessageLookup
      type - String
      item - QName
      label - String
      Returns:
      String