org.ofbiz.service.calendar
Class ExpressionUiHelper

java.lang.Object
  extended by org.ofbiz.service.calendar.ExpressionUiHelper

public class ExpressionUiHelper
extends java.lang.Object

TemporalExpression UI artifacts worker.


Field Summary
static int[] Occurrence
          An array of valid DayInMonth occurrence values.
 
Constructor Summary
ExpressionUiHelper()
           
 
Method Summary
static java.util.Set<java.lang.String> getCandidateIncludeIds(GenericDelegator delegator, java.lang.String tempExprId)
          Returns a List of candidate inclusion tempExprId Strings.
static java.util.List<java.util.Map> getDayValueList(java.util.Locale locale)
          Returns a List of Maps containing day of the week values.
static java.util.List<java.util.Map> 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> 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> 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
 

Field Detail

Occurrence

public static final int[] Occurrence
An array of valid DayInMonth occurrence values.

Constructor Detail

ExpressionUiHelper

public ExpressionUiHelper()
Method Detail

getOccurrenceList

public static java.util.List getOccurrenceList()
Returns a List of valid DayInMonth occurrence int values.

Returns:

getDayValueList

public static java.util.List<java.util.Map> 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> 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> 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> 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(GenericDelegator 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