Class ExpressionUiHelper


  • public class ExpressionUiHelper
    extends java.lang.Object
    TemporalExpression UI artifacts worker.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<java.lang.String> getCandidateIncludeIds​(Delegator delegator, java.lang.String tempExprId)
      Returns a List of candidate inclusion tempExprId Strings.
      static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getDayValueList​(java.util.Locale locale)
      Returns a List of Maps containing day of the week values.
      static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getExpressionTypeList​(java.util.Map<java.lang.String,​java.lang.Object> uiLabelMap)
      Returns a List of Maps containing valid temporal expression types.
      static int getFirstDayOfWeek​(java.util.Locale locale)
      Returns the first day of the week for the specified locale.
      static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getFrequencyValueList​(java.util.Map<java.lang.String,​java.lang.Object> uiLabelMap)
      Returns a List of Maps containing valid Frequency values.
      static int getLastDayOfWeek​(java.util.Locale locale)
      Returns the last day of the week for the specified locale.
      static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getMonthValueList​(java.util.Locale locale)
      Returns a List of Maps containing month values.
      static java.util.List<?> getOccurrenceList()
      Returns a List of valid DayInMonth occurrence int values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExpressionUiHelper

        public ExpressionUiHelper()
    • Method Detail

      • getOccurrenceList

        public static java.util.List<?> getOccurrenceList()
        Returns a List of valid DayInMonth occurrence int values.
        Returns:
        returns a List of valid DayInMonth occurrence int values
      • getDayValueList

        public static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getDayValueList​(java.util.Locale locale)
        Returns a List of Maps containing day of the week values.
        Parameters:
        locale -
        Returns:
        List of Maps. Each Map has a description entry and a value entry.
      • getFirstDayOfWeek

        public static int getFirstDayOfWeek​(java.util.Locale locale)
        Returns the first day of the week for the specified locale.
        Parameters:
        locale -
        Returns:
        The first day of the week for the specified locale
      • getLastDayOfWeek

        public static int getLastDayOfWeek​(java.util.Locale locale)
        Returns the last day of the week for the specified locale.
        Parameters:
        locale -
        Returns:
        The last day of the week for the specified locale
      • getMonthValueList

        public static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getMonthValueList​(java.util.Locale locale)
        Returns a List of Maps containing month values.
        Parameters:
        locale -
        Returns:
        List of Maps. Each Map has a description entry and a value entry.
      • getFrequencyValueList

        public static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getFrequencyValueList​(java.util.Map<java.lang.String,​java.lang.Object> uiLabelMap)
        Returns a List of Maps containing valid Frequency values.
        Parameters:
        uiLabelMap - CommonUiLabels label Map
        Returns:
        List of Maps. Each Map has a description entry and a value entry.
      • getExpressionTypeList

        public static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getExpressionTypeList​(java.util.Map<java.lang.String,​java.lang.Object> uiLabelMap)
        Returns a List of Maps containing valid temporal expression types.
        Parameters:
        uiLabelMap - TemporalExpressionUiLabels label Map
        Returns:
        List of Maps. Each Map has a description entry and a value entry.
      • getCandidateIncludeIds

        public static java.util.Set<java.lang.String> getCandidateIncludeIds​(Delegator delegator,
                                                                             java.lang.String tempExprId)
                                                                      throws GenericEntityException
        Returns a List of candidate inclusion tempExprId Strings.
        Parameters:
        delegator -
        tempExprId - The ID of the temporal expression needing candidates for inclusion
        Returns:
        Set of candidate tempExprId Strings
        Throws:
        GenericEntityException