public class CustomPeriodicTest.TestPart extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
CustomPeriodicTest.Operator |
m_boundOperator
the operator for this bound
|
int |
m_day_of_month |
int |
m_day_of_yr |
int |
m_hour_of_day |
int |
m_min_of_hour |
int |
m_second |
int |
m_week_of_month |
int |
m_week_of_yr |
int |
m_year
date fields
|
| Constructor and Description |
|---|
CustomPeriodicTest.TestPart() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
eval(Date d,
CustomPeriodicTest.TestPart other)
Evaluate the supplied date against this bound.
|
String |
getDayString()
Get the day of the week as a string.
|
String |
getMonthString()
Get the month as a String.
|
boolean |
isUpper()
Returns true if this is the upper bound.
|
void |
setDayOfMonth(String dayOfMonth)
Set the day of the month for this bound.
|
void |
setDayOfWeek(String dayOfWeek)
Set the day of the week for this bound.
|
void |
setDayOfYear(String dayOfYear)
Set the day of the year for this bound.
|
void |
setHourOfDay(String hourOfDay)
Set the hour of the day for this bound.
|
void |
setIsUpper(boolean upper)
Set whether this is the upper bound or not.
|
void |
setMinuteOfHour(String min)
Set the minute of the hour for this bound.
|
void |
setMonth(String month)
Set the month for this bound.
|
void |
setOperator(String operator)
Set the operator for this bound
|
void |
setSecond(String second)
Set the second for this bound.
|
void |
setWeekOfMonth(String week)
Set the week of the month for this bound.
|
void |
setWeekOfYear(String week)
Set the week of the year for this bound.
|
void |
setYear(String year)
Set the year for this bound.
|
String |
toString()
Provides a textual representation of this test bound
|
public CustomPeriodicTest.Operator m_boundOperator
public int m_year
public int m_week_of_yr
public int m_week_of_month
public int m_day_of_yr
public int m_day_of_month
public int m_hour_of_day
public int m_min_of_hour
public int m_second
public void setIsUpper(boolean upper)
upper - true if this is the upper bound.public boolean isUpper()
public boolean eval(Date d, CustomPeriodicTest.TestPart other)
d - the date to testother - the other boundpublic String toString()
public void setOperator(String operator)
operator - as a Stringpublic void setYear(String year)
year - the year or "*" to match any value.public void setWeekOfYear(String week)
week - the week of the year or "*" to match any value.public void setWeekOfMonth(String week)
week - the week of the month or "*" to match any value.public void setDayOfYear(String dayOfYear)
dayOfYear - the day of the year or "*" to match any value.public void setDayOfMonth(String dayOfMonth)
dayOfMonth - the day of the month or "*" to match any value.public void setMonth(String month)
month - the month or "*" to match any value.public void setDayOfWeek(String dayOfWeek)
dayOfWeek - the day of the week or "*" to match any value.public void setHourOfDay(String hourOfDay)
hourOfDay - the hour of the day or "*" to match any value.public void setMinuteOfHour(String min)
min - the minute of the hour or "*" to match any value.public void setSecond(String second)
second - the second or "*" to match any value.public String getDayString()
public String getMonthString()
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.