public class QuartzCronExpressionPropertyType extends dk.heick.properties.PropertyType<String>
CronExpression for a Quartz trigger. | Constructor Example | Comments | ||
|---|---|---|---|
Property<String> A_PROPERTY = |
Default value is null. |
||
Property<String> A_PROPERTY = |
Default value is "0 0/2 8-17 * * ?". |
||
| Type of value(s) | Examples | Result | Comments |
| Valid | 0 0/2 8-17 * * ? | A string validated as a CronExpression 0 0/2 8-17 * * ?. | Validate successfully. |
| Valid | 0 15 10 * * ? 2005 | A string validated as a CronExpression 0 15 10 * * ? 2005. | Validate successfully. |
| Invalid | cow | null |
Validate will throw an exception. Return default value if set, otherwise null. |
| Invalid | «empty string» | null |
|
| Invalid | «empty string after trim» | null |
|
| Invalid | null |
defaultValue OR null |
Validate will throw an exception. Return default value if set, otherwise null. |
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE
The type name string constant of QuartzCronTriggerPropertyType.
|
| Constructor and Description |
|---|
QuartzCronExpressionPropertyType()
Default constructor, no default value.
|
QuartzCronExpressionPropertyType(String defaultValue)
Constructor with default value.
|
| Modifier and Type | Method and Description |
|---|---|
org.quartz.Trigger |
buildTrigger(String triggerName,
String triggerGroup,
String value)
Builds a trigger
|
List<String> |
getRestrictions() |
String |
validateValue(String propertyName,
String value) |
equals, getDefaultValue, getDefaultValueAsString, getDefaultValueDescription, getDescription, getDescription, getInitializationPriority, getIo, getLogger, getTypeName, hasDefaultValue, isDefaultValueValid, postGetValueProcessing, setDefaultValue, setInitializationPriority, setIo, setTypedValue, setTypeName, toString, toType, validate, validateConstraints, validateNullTypepublic static final String TYPE
public QuartzCronExpressionPropertyType()
public QuartzCronExpressionPropertyType(String defaultValue)
defaultValue - default value returned if property value is undefined.public List<String> getRestrictions()
getRestrictions in class dk.heick.properties.PropertyType<String>public String validateValue(String propertyName, String value) throws dk.heick.properties.PropertyException
validateValue in class dk.heick.properties.PropertyType<String>dk.heick.properties.PropertyException