Enum CalendarVariableNames

    • 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 name
        NullPointerException - 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
      • getAllowedMonthFormats

        public static List<String> getAllowedMonthFormats()
      • getAllowedTimeFormats

        public static List<String> getAllowedTimeFormats()
      • getAllowedYearFormats

        public static List<String> getAllowedYearFormats()
      • getAllowedDayFormats

        public static List<String> getAllowedDayFormats()