public class Quartz1CronExpressionValidator extends Object implements CronExpressionValidator
| Constructor and Description |
|---|
Quartz1CronExpressionValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(String cronExpression)
Returns
true if the cron expression can be parsed successfully. |
void |
validate(String cronExpression)
Validates that a cron expression can be successfully parsed.
|
public boolean isValid(String cronExpression)
CronExpressionValidatortrue if the cron expression can be parsed successfully.
This is equivalent to calling CronExpressionValidator.validate(String) except that it returns a boolean value
as opposed to throwing an exception when the expression is not valid.
isValid in interface CronExpressionValidatorcronExpression - the cron expression to be consideredtrue if the cron expression can be parsed successfully; false otherwise.public void validate(String cronExpression) throws CronSyntaxException
CronExpressionValidatorvalidate in interface CronExpressionValidatorcronExpression - the cron expression to be consideredCronSyntaxException - if the cron expression contains invalid syntaxCopyright © 2017 Atlassian. All rights reserved.