Enum CalendarVariableNames
- java.lang.Object
-
- java.lang.Enum<CalendarVariableNames>
-
- net.anotheria.anosite.content.variables.CalendarVariableNames
-
- All Implemented Interfaces:
Serializable,Comparable<CalendarVariableNames>
public enum CalendarVariableNames extends Enum<CalendarVariableNames>
Represent Variable names for CallendarProcessor.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description currentDatecurrentDaycurrentMonthcurrentTimecurrentYear
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<String>getAllowedDayFormats()static List<String>getAllowedMonthFormats()static List<String>getAllowedTimeFormats()static List<String>getAllowedYearFormats()StringgetDefaultFormatPattern()StringgetVariableName()StringgetVariableValue(String format)Returns currentValue for selected variable.static CalendarVariableNamesvalueOf(String name)Returns the enum constant of this type with the specified name.static CalendarVariableNames[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
currentDate
public static final CalendarVariableNames currentDate
- See Also:
Constructor
-
currentDay
public static final CalendarVariableNames currentDay
- See Also:
Constructor
-
currentMonth
public static final CalendarVariableNames currentMonth
- See Also:
Constructor
-
currentYear
public static final CalendarVariableNames currentYear
- See Also:
Constructor
-
currentTime
public static final CalendarVariableNames currentTime
- See Also:
Constructor
-
-
Method Detail
-
values
public static CalendarVariableNames[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CalendarVariableNames c : CalendarVariableNames.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CalendarVariableNames valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getVariableName
public String getVariableName()
-
getDefaultFormatPattern
public String getDefaultFormatPattern()
-
getVariableValue
public String getVariableValue(String format)
Returns currentValue for selected variable. With Locale - from ApiCallContext.currentLocale- Parameters:
format- incoming String param - which represent some date Format pattern- Returns:
- String variable value
-
-