C# Class Quartz.TextToSchedule.TextToSchedule

Default Impl of an ITextToSchedule.
Inheritance: ITextToSchedule
Datei anzeigen Open project: amazing-andrew/Quartz.TextToSchedule

Public Methods

Method Description
IsValid ( string text ) : bool

Determines whether the specified text is valid.

Parse ( string text ) : TextToScheduleResults

Parses the specified text into a schedule object.

Parse ( string text, TimeZoneInfo timeZone ) : TextToScheduleResults

Parses the specified text into a schedule object with the given time zone.

TextToSchedule ( IGrammar grammar, IGrammarHelper helper ) : Quartz.TextToSchedule.Calendars

Initializes a new instance of the TextToSchedule class.

Private Methods

Method Description
BuildCalendarOnDayOfWeek ( ICalendar baseCalendar, string dayofWeekSpecs, TimeZoneInfo timeZone ) : ICalendar

Builds a LocalWeeklyCalendar based on the given allowed days of weeks.

BuildCalendarOnMonths ( ICalendar baseCalendar, string monthSpecs, TimeZoneInfo timeZone ) : ICalendar

Builds a ICalendar based on the allowed months.

BuildCalendarOnTimeRange ( ICalendar baseCalendar, string fromTimeString, string toTimeString, TimeZoneInfo timeZone ) : ICalendar

Builds a DailyCalendar on the given allowed hours to run.

CreateScheduleWithAmountAndIntervalUnit ( string amountString, string intervalUnitString, TimeZoneInfo timeZone ) : IScheduleBuilder
CreateScheduleWithCron ( string cronExpression, TimeZoneInfo timeZone ) : IScheduleBuilder
ExecuteMatch ( string expression, string input, TimeZoneInfo timeZone, TextToScheduleResults results, Action matchFunction ) : bool

Method that matches an expression, and if it does will run the associated method

Expression1Handler ( NameValueCollection nameValueCollection, TimeZoneInfo timeZone, TextToScheduleResults results ) : void

Handles with a given text matches the Expression1 field.

Expression2Handler ( NameValueCollection nameValueCollection, TimeZoneInfo timeZone, TextToScheduleResults results ) : void

Handles with a given text matches the Expression2 field.

Expression3Handler ( NameValueCollection nameValueCollection, TimeZoneInfo timeZone, TextToScheduleResults results ) : void

Handles with a given text matches the Expression3 field.

Expression4Handler ( NameValueCollection nameValueCollection, TimeZoneInfo timeZone, TextToScheduleResults results ) : void

Handles with a given text matches the Expression4 field.

Expression5Handler ( NameValueCollection nameValueCollection, TimeZoneInfo timeZone, TextToScheduleResults results ) : void

Handles with a given text matches the Expression5 field.

GetDayCronValue ( int dayValue ) : string

Gets the day cron value.

GetDayOfWeekCronValue ( DayOfWeek dow ) : string

Gets the day of week cron value string.

GetMonthCronValue ( int monthValue ) : string

Gets the month cron value string.

GetOrdinalCronValue ( Ordinal ordinal ) : string

Gets the ordinal cron value string.

GetYearCronValue ( int yearValue ) : string

Gets the cron year string and converts 2 digit years into 4 digit years.

SeekForwardToNextDayOfWeek ( System.DateTime referenceDate, DayOfWeek targetDayOfWeek ) : System.DateTime

Method Details

IsValid() public method

Determines whether the specified text is valid.
public IsValid ( string text ) : bool
text string The text.
return bool

Parse() public method

Parses the specified text into a schedule object.
public Parse ( string text ) : TextToScheduleResults
text string The text.
return TextToScheduleResults

Parse() public method

Parses the specified text into a schedule object with the given time zone.
public Parse ( string text, TimeZoneInfo timeZone ) : TextToScheduleResults
text string The text.
timeZone System.TimeZoneInfo The time zone.
return TextToScheduleResults

TextToSchedule() public method

Initializes a new instance of the TextToSchedule class.
grammar
public TextToSchedule ( IGrammar grammar, IGrammarHelper helper ) : Quartz.TextToSchedule.Calendars
grammar IGrammar The grammar.
helper IGrammarHelper The helper.
return Quartz.TextToSchedule.Calendars