atg.service.scheduler
Class SchedulePropertyValueParser.ScheduleFactoryImpl
java.lang.Object
atg.service.scheduler.SchedulePropertyValueParser.ScheduleFactoryImpl
- All Implemented Interfaces:
- atg.service.scheduler.ScheduleFactory
- Enclosing class:
- SchedulePropertyValueParser
protected static class SchedulePropertyValueParser.ScheduleFactoryImpl
- extends java.lang.Object
- implements atg.service.scheduler.ScheduleFactory
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. This schema will only work if the first word of the schedule
string is differnt of r all schedule strings. This is currently the case,
and it should be not that much work to maintain it. Otherwise, a new
implementation of ScheudleFactory for the new schedule type can be made.
Fields inherited from interface atg.service.scheduler.ScheduleFactory |
CLASS_VERSION |
Method Summary |
boolean |
canParse(java.lang.String pString,
java.util.Locale pLocale)
If pString starts with mStartingTokecn the return true |
Schedule |
createSchedule(java.lang.String pString,
java.util.Locale pLocale)
returns the schedule parsed from pString, it will be of type mClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canParse
public boolean canParse(java.lang.String pString,
java.util.Locale pLocale)
- If pString starts with
mStartingTokecn
the return true
- Specified by:
canParse
in interface atg.service.scheduler.ScheduleFactory
- Parameters:
pString
- a string to parsepLocale
- the locate the string is in
- Returns:
- a
boolean
value
createSchedule
public Schedule createSchedule(java.lang.String pString,
java.util.Locale pLocale)
throws atg.nucleus.PropertyValueParseException
- returns the schedule parsed from pString, it will be of type mClass
- Specified by:
createSchedule
in interface atg.service.scheduler.ScheduleFactory
- Parameters:
pString
- a String
valuepLocale
- a Locale
value
- Returns:
- a
Schedule
value
- Throws:
atg.nucleus.PropertyValueParseException