C# Класс CronExpressionDescriptor.ExpressionDescriptor

Converts a Cron Expression into a human readable string
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ExpressionDescriptor ( string expression ) : System

Initializes a new instance of the ExpressionDescriptor class

ExpressionDescriptor ( string expression, Options options ) : System

Initializes a new instance of the ExpressionDescriptor class

GetDescription ( DescriptionTypeEnum type ) : string

Generates a human readable string for the Cron Expression

GetDescription ( string expression ) : string

Generates a human readable string for the Cron Expression

GetDescription ( string expression, Options options ) : string

Generates a human readable string for the Cron Expression

Защищенные методы

Метод Описание
FormatTime ( string hourExpression, string minuteExpression ) : string

Given time parts, will contruct a formatted time description

FormatTime ( string hourExpression, string minuteExpression, string secondExpression ) : string

Given time parts, will contruct a formatted time description

GenerateBetweenSegmentDescription ( string betweenExpression, string>.Func getBetweenDescriptionFormat, string>.Func getSingleItemDescription ) : string

Generates the between segment description

GetDayOfMonthDescription ( ) : string

Generates a description for only the DAYOFMONTH portion of the expression

GetDayOfWeekDescription ( ) : string

Generates a description for only the DAYOFWEEK portion of the expression

GetFullDescription ( ) : string

Generates the FULL description

GetHoursDescription ( ) : string

Generates a description for only the HOUR portion of the expression

GetMinutesDescription ( ) : string

Generates a description for only the MINUTE portion of the expression

GetMonthDescription ( ) : string

Generates a description for only the MONTH portion of the expression

GetSecondsDescription ( ) : string

Generates a description for only the SECONDS portion of the expression

GetSegmentDescription ( string expression, string allDescription, string>.Func getSingleItemDescription, string>.Func getIntervalDescriptionFormat, string>.Func getBetweenDescriptionFormat, string>.Func getDescriptionFormat ) : string

Generates the segment description

GetTimeOfDayDescription ( ) : string

Generates a description for only the TIMEOFDAY portion of the expression

TransformCase ( string description, CasingTypeEnum caseType ) : string

Transforms the case of the expression description, based on options

TransformVerbosity ( string description, bool useVerboseFormat ) : string

Transforms the verbosity of the expression description by stripping verbosity from original description

Приватные методы

Метод Описание
GetYearDescription ( ) : string

Generates a description for only the YEAR portion of the expression

Описание методов

ExpressionDescriptor() публичный Метод

Initializes a new instance of the ExpressionDescriptor class
public ExpressionDescriptor ( string expression ) : System
expression string The cron expression string
Результат System

ExpressionDescriptor() публичный Метод

Initializes a new instance of the ExpressionDescriptor class
public ExpressionDescriptor ( string expression, Options options ) : System
expression string The cron expression string
options Options Options to control the output description
Результат System

FormatTime() защищенный Метод

Given time parts, will contruct a formatted time description
protected FormatTime ( string hourExpression, string minuteExpression ) : string
hourExpression string Hours part
minuteExpression string Minutes part
Результат string

FormatTime() защищенный Метод

Given time parts, will contruct a formatted time description
protected FormatTime ( string hourExpression, string minuteExpression, string secondExpression ) : string
hourExpression string Hours part
minuteExpression string Minutes part
secondExpression string Seconds part
Результат string

GenerateBetweenSegmentDescription() защищенный Метод

Generates the between segment description
protected GenerateBetweenSegmentDescription ( string betweenExpression, string>.Func getBetweenDescriptionFormat, string>.Func getSingleItemDescription ) : string
betweenExpression string
getBetweenDescriptionFormat string>.Func
getSingleItemDescription string>.Func
Результат string

GetDayOfMonthDescription() защищенный Метод

Generates a description for only the DAYOFMONTH portion of the expression
protected GetDayOfMonthDescription ( ) : string
Результат string

GetDayOfWeekDescription() защищенный Метод

Generates a description for only the DAYOFWEEK portion of the expression
protected GetDayOfWeekDescription ( ) : string
Результат string

GetDescription() публичный Метод

Generates a human readable string for the Cron Expression
public GetDescription ( DescriptionTypeEnum type ) : string
type DescriptionTypeEnum Which part(s) of the expression to describe
Результат string

GetDescription() публичный статический Метод

Generates a human readable string for the Cron Expression
public static GetDescription ( string expression ) : string
expression string The cron expression string
Результат string

GetDescription() публичный статический Метод

Generates a human readable string for the Cron Expression
public static GetDescription ( string expression, Options options ) : string
expression string The cron expression string
options Options Options to control the output description
Результат string

GetFullDescription() защищенный Метод

Generates the FULL description
protected GetFullDescription ( ) : string
Результат string

GetHoursDescription() защищенный Метод

Generates a description for only the HOUR portion of the expression
protected GetHoursDescription ( ) : string
Результат string

GetMinutesDescription() защищенный Метод

Generates a description for only the MINUTE portion of the expression
protected GetMinutesDescription ( ) : string
Результат string

GetMonthDescription() защищенный Метод

Generates a description for only the MONTH portion of the expression
protected GetMonthDescription ( ) : string
Результат string

GetSecondsDescription() защищенный Метод

Generates a description for only the SECONDS portion of the expression
protected GetSecondsDescription ( ) : string
Результат string

GetSegmentDescription() защищенный Метод

Generates the segment description
protected GetSegmentDescription ( string expression, string allDescription, string>.Func getSingleItemDescription, string>.Func getIntervalDescriptionFormat, string>.Func getBetweenDescriptionFormat, string>.Func getDescriptionFormat ) : string
expression string
allDescription string
getSingleItemDescription string>.Func
getIntervalDescriptionFormat string>.Func
getBetweenDescriptionFormat string>.Func
getDescriptionFormat string>.Func
Результат string

GetTimeOfDayDescription() защищенный Метод

Generates a description for only the TIMEOFDAY portion of the expression
protected GetTimeOfDayDescription ( ) : string
Результат string

TransformCase() защищенный Метод

Transforms the case of the expression description, based on options
protected TransformCase ( string description, CasingTypeEnum caseType ) : string
description string The description to transform
caseType CasingTypeEnum The casing type that controls the output casing
Результат string

TransformVerbosity() защищенный Метод

Transforms the verbosity of the expression description by stripping verbosity from original description
protected TransformVerbosity ( string description, bool useVerboseFormat ) : string
description string The description to transform
useVerboseFormat bool
Результат string