Class VariableDateExpression

  • All Implemented Interfaces:
    Serializable, Cloneable, Expression

    public class VariableDateExpression
    extends DateExpression
    Constructs a new date by specifying the fields for the calendar either as static parameters or as parameters read from a field.
    Author:
    Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • VariableDateExpression

        public VariableDateExpression()
        Default Constructor.
    • Method Detail

      • getEpochTimeField

        public String getEpochTimeField()
        Returns the name of the field that contains the epoch time, that is the time in seconds since 01-Jan-1970.
        Returns:
        a fieldname.
      • setEpochTimeField

        public void setEpochTimeField​(String epochTimeField)
        Defines the name of the field that contains the epoch time, that is the time in seconds since 01-Jan-1970.
        Parameters:
        epochTimeField - a fieldname.
      • getMonthField

        public String getMonthField()
        Returns the name of the field that contains the month.
        Returns:
        a fieldname.
      • setMonthField

        public void setMonthField​(String monthField)
        Defines the name of the field that contains the month.
        Parameters:
        monthField - a fieldname.
      • getYearField

        public String getYearField()
        Returns the name of the field that contains the year.
        Returns:
        a fieldname.
      • setYearField

        public void setYearField​(String yearField)
        Defines the name of the field that contains the year.
        Parameters:
        yearField - a fieldname.
      • getHourField

        public String getHourField()
        Returns the name of the field that contains the hour of the day (using the 24-hour system).
        Returns:
        a fieldname.
      • setHourField

        public void setHourField​(String hourField)
        Defines the name of the field that contains the hour of the day.
        Parameters:
        hourField - a fieldname.
      • getMinuteField

        public String getMinuteField()
        Returns the name of the field that contains the minute.
        Returns:
        a fieldname.
      • setMinuteField

        public void setMinuteField​(String minuteField)
        Defines the name of the field that contains the minute.
        Parameters:
        minuteField - a fieldname.
      • getSecondField

        public String getSecondField()
        Returns the name of the field that contains the second.
        Returns:
        a fieldname.
      • setSecondField

        public void setSecondField​(String secondField)
        Defines the name of the field that contains the second.
        Parameters:
        secondField - a fieldname.
      • getMilliSecondField

        public String getMilliSecondField()
        Returns the name of the field that contains the milliseconds.
        Returns:
        a fieldname.
      • setMilliSecondField

        public void setMilliSecondField​(String milliSecondField)
        Defines the name of the field that contains the milliseconds.
        Parameters:
        milliSecondField - a fieldname.
      • getTimeField

        public String getTimeField()
        Returns the name of the field that contains the time in milli-seconds since 01-Jan-1970.
        Returns:
        a fieldname.
      • setTimeField

        public void setTimeField​(String timeField)
        Defines the name of the field that contains the time in milli-seconds since 01-Jan-1970.
        Parameters:
        timeField - a fieldname.
      • getDayOfWeekField

        public String getDayOfWeekField()
        Returns the name of the field that contains the day-of-the-week.
        Returns:
        a fieldname.
      • setDayOfWeekField

        public void setDayOfWeekField​(String dayOfWeekField)
        Defines the name of the field that contains the day of the week.
        Parameters:
        dayOfWeekField - a fieldname.
      • getDayOfYearField

        public String getDayOfYearField()
        Returns the name of the field that contains the day of the year.
        Returns:
        a fieldname.
      • setDayOfYearField

        public void setDayOfYearField​(String dayOfYearField)
        Defines the name of the field that contains the day of the year.
        Parameters:
        dayOfYearField - a fieldname.
      • getDayOfMonthField

        public String getDayOfMonthField()
        Returns the name of the field that contains the day of the month.
        Returns:
        a fieldname.
      • setDayOfMonthField

        public void setDayOfMonthField​(String dayOfMonthField)
        Defines the name of the field that contains the day of the month.
        Parameters:
        dayOfMonthField - a fieldname.
      • getDayOfWeekInMonthField

        public String getDayOfWeekInMonthField()
        Returns the name of the field that contains the day of the week in the current month.
        Returns:
        a fieldname.
      • setDayOfWeekInMonthField

        public void setDayOfWeekInMonthField​(String dayOfWeekInMonthField)
        Defines the name of the field that contains the day of the week in the current month.
        Parameters:
        dayOfWeekInMonthField - a fieldname.
      • getTimeZoneField

        public String getTimeZoneField()
        Returns the name of the field that contains the time-zone.
        Returns:
        a fieldname.
      • setTimeZoneField

        public void setTimeZoneField​(String timeZoneField)
        Defines the name of the field that contains the time-zone.
        Parameters:
        timeZoneField - a fieldname.
      • getWeekOfYearField

        public String getWeekOfYearField()
        Defines the name of the field that contains the week-of-the-year.
        Returns:
        a fieldname.
      • setWeekOfYearField

        public void setWeekOfYearField​(String weekOfYearField)
        Defines the name of the field that contains the week of the year.
        Parameters:
        weekOfYearField - a fieldname.
      • getWeekOfMonthField

        public String getWeekOfMonthField()
        Defines the name of the field that contains the week of the month.
        Returns:
        a fieldname.
      • setWeekOfMonthField

        public void setWeekOfMonthField​(String weekOfMonthField)
        Returns the name of the field that contains the week of the month.
        Parameters:
        weekOfMonthField - a fieldname.
      • configureCalendar

        protected void configureCalendar​(Calendar calendar)
        Configures the given Calendar instance by applying all defined fields to it.
        Overrides:
        configureCalendar in class DateExpression
        Parameters:
        calendar - the week of the year property.