public class SchedulePropertyValueParser
extends java.lang.Object
implements atg.service.scheduler.LocalePropertyValueParser
This parser will turn a String into one of the implementations of Schedule. The String should have one of these forms. Note that the placement of single spaces is important (multiple spaces cannot substitute for single spaces), and unintentional trailing spaces may also be problematic.
RelativeSchedule
and
PeriodicSchedule
. It may be one of the following. If not specified, the
unit of time defaults to seconds
:
Modifier and Type | Class and Description |
---|---|
protected static class |
SchedulePropertyValueParser.ScheduleFactoryImpl
This is a generic implementation of the schedulefactory that just checks
the first work of the schedule string and if it is what is expected,
returns true.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.util.List |
sRegisteredScheduleTypes |
Constructor and Description |
---|
SchedulePropertyValueParser() |
Modifier and Type | Method and Description |
---|---|
static SchedulePropertyValueParser |
getInstance() |
static java.util.ResourceBundle |
getResources(java.util.Locale pLocale) |
java.lang.Object |
parsePropertyValue(java.lang.String pValue,
java.lang.Class pClass) |
java.lang.Object |
parsePropertyValue(java.lang.String pValue,
java.lang.Class pClass,
java.util.Locale pLocale)
Parses the specified value into and object of the specified class.
|
static void |
registerSchedule(atg.service.scheduler.ScheduleFactory pSchedule)
We would very much like to take advantage of the prexisting schedule object
within dynamo, but also allow users to register and create there own.
|
public static java.lang.String CLASS_VERSION
public static java.util.List sRegisteredScheduleTypes
public static java.util.ResourceBundle getResources(java.util.Locale pLocale)
public static SchedulePropertyValueParser getInstance()
public static void registerSchedule(atg.service.scheduler.ScheduleFactory pSchedule)
public java.lang.Object parsePropertyValue(java.lang.String pValue, java.lang.Class pClass) throws atg.nucleus.PropertyValueParseException
parsePropertyValue
in interface atg.nucleus.PropertyValueParser
atg.nucleus.PropertyValueParseException
public java.lang.Object parsePropertyValue(java.lang.String pValue, java.lang.Class pClass, java.util.Locale pLocale) throws atg.nucleus.PropertyValueParseException
parsePropertyValue
in interface atg.service.scheduler.LocalePropertyValueParser
pValue
- the String value of the property to be parsedpClass
- the type of object the property should parse topContext
- the Context in which the parsing is to take place.
This can be used to find other objects named by the property value.atg.nucleus.PropertyValueParseException