net.redhogs.cronparser.builder
Class AbstractDescriptionBuilder

java.lang.Object
  extended by net.redhogs.cronparser.builder.AbstractDescriptionBuilder
Direct Known Subclasses:
DayOfMonthDescriptionBuilder, DayOfWeekDescriptionBuilder, HoursDescriptionBuilder, MinutesDescriptionBuilder, MonthDescriptionBuilder, SecondsDescriptionBuilder, YearDescriptionBuilder

public abstract class AbstractDescriptionBuilder
extends Object

Since:
10 Dec 2012 14:00:49
Author:
grhodes

Field Summary
protected  char[] SpecialCharsMinusStar
           
 
Constructor Summary
AbstractDescriptionBuilder()
           
 
Method Summary
protected abstract  String getBetweenDescriptionFormat(String expression)
           
protected abstract  String getDescriptionFormat(String expression)
           
protected abstract  String getIntervalDescriptionFormat(String expression)
           
 String getSegmentDescription(String expression, String allDescription)
           
protected abstract  String getSingleItemDescription(String expression)
           
protected  String plural(int num, String singular, String plural)
          Deprecated. Use plural(String, String, String) instead
protected  String plural(String expression, String singular, String plural)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SpecialCharsMinusStar

protected final char[] SpecialCharsMinusStar
Constructor Detail

AbstractDescriptionBuilder

public AbstractDescriptionBuilder()
Method Detail

getSegmentDescription

public String getSegmentDescription(String expression,
                                    String allDescription)

getBetweenDescriptionFormat

protected abstract String getBetweenDescriptionFormat(String expression)
Parameters:
expression -
Returns:

getIntervalDescriptionFormat

protected abstract String getIntervalDescriptionFormat(String expression)
Parameters:
expression -
Returns:

getSingleItemDescription

protected abstract String getSingleItemDescription(String expression)
Parameters:
expression -
Returns:

getDescriptionFormat

protected abstract String getDescriptionFormat(String expression)
Parameters:
expression -
Returns:

plural

@Deprecated
protected String plural(int num,
                                   String singular,
                                   String plural)
Deprecated. Use plural(String, String, String) instead

Parameters:
num -
singular -
plural -
Returns:

plural

protected String plural(String expression,
                        String singular,
                        String plural)
Parameters:
expression -
singular -
plural -
Returns:
Since:
https://github.com/RedHogs/cron-parser/issues/2


Copyright © 2014 RedHogs. All rights reserved.