Package org.alfresco.repo.dictionary
Class M2Label
java.lang.Object
org.alfresco.repo.dictionary.M2Label
Helper for obtaining display labels for data dictionary items
- Author:
- David Caruana
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getLabel
(Locale locale, ModelDefinition model, MessageLookup messageLookup, String type, QName item, String label) Get label for data dictionary item given specified localestatic String
getLabel
(ModelDefinition model, MessageLookup messageLookup, String type, QName item, String label) Get label for data dictionary item
-
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
- Localemodel
- ModelDefinitionmessageLookup
- MessageLookuptype
- Stringitem
- QNamelabel
- 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
- ModelDefinitionmessageLookup
- MessageLookuptype
- Stringitem
- QNamelabel
- String- Returns:
- String
-