atg.service.scheduler
Class SchedulePropertyValueParser.ScheduleFactoryImpl
java.lang.Object
   atg.service.scheduler.SchedulePropertyValueParser.ScheduleFactoryImpl
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
 mStartingTokecnthe 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 mStartingTokecnthe return true
 
- 
- Specified by:
- canParsein interface- atg.service.scheduler.ScheduleFactory
 
- 
- Parameters:
- pString- a string to parse
- pLocale- the locate the string is in
- Returns:
- a booleanvalue
 
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:
- createSchedulein interface- atg.service.scheduler.ScheduleFactory
 
- 
- Parameters:
- pString- a- Stringvalue
- pLocale- a- Localevalue
- Returns:
- a Schedulevalue
- Throws:
- atg.nucleus.PropertyValueParseException