Class SchedulePropertyValueParser

  extended by atg.service.scheduler.SchedulePropertyValueParser
All Implemented Interfaces:
atg.nucleus.PropertyValueParser, atg.service.scheduler.LocalePropertyValueParser

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.

Specifying the unit of time is optional in RelativeSchedule and PeriodicSchedule. It may be one of the following. If not specified, the unit of time defaults to seconds:

See Also:
AbsoluteSchedule, RelativeSchedule, PeriodicSchedule, CalendarSchedule, BeanConfigurator

Nested Class Summary
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.
Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static java.util.List sRegisteredScheduleTypes
Constructor Summary
Method Summary
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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static java.lang.String CLASS_VERSION
Class version string


public static java.util.List sRegisteredScheduleTypes
Constructor Detail


public SchedulePropertyValueParser()
Method Detail


public static java.util.ResourceBundle getResources(java.util.Locale pLocale)


public static SchedulePropertyValueParser getInstance()


public 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. The super class we be repossible for createing the existing schedule objects, while user schedule objects will be registerd with this service.


public java.lang.Object parsePropertyValue(java.lang.String pValue,
                                           java.lang.Class pClass)
                                    throws atg.nucleus.PropertyValueParseException
Specified by:
parsePropertyValue in interface atg.nucleus.PropertyValueParser


public java.lang.Object parsePropertyValue(java.lang.String pValue,
                                           java.lang.Class pClass,
                                           java.util.Locale pLocale)
                                    throws atg.nucleus.PropertyValueParseException
Parses the specified value into and object of the specified class.

Specified by:
parsePropertyValue in interface atg.service.scheduler.LocalePropertyValueParser
pValue - the String value of the property to be parsed
pClass - the type of object the property should parse to
pContext - the Context in which the parsing is to take place. This can be used to find other objects named by the property value.