net.redhogs.cronparser.builder.DayOfMonthDescriptionBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quartz-glass Show documentation
Show all versions of quartz-glass Show documentation
A web user interface for quartz
package net.redhogs.cronparser.builder;
/**
* @author grhodes
* @since 10 Dec 2012 14:24:08
*/
public class DayOfMonthDescriptionBuilder extends AbstractDescriptionBuilder {
@Override
protected String getSingleItemDescription(String expression) {
return expression;
}
@Override
protected String getIntervalDescriptionFormat(String expression) {
return ", every {0} " + plural(expression, "day", "days");
}
@Override
protected String getBetweenDescriptionFormat(String expression) {
return ", between day {0} and {1} of the month";
}
@Override
protected String getDescriptionFormat(String expression) {
return ", on day {0} of the month";
}
}