class SpringScheduleExtractor {

	public SpringSchedule extract(Scheduled springScheduled) {
		SpringSchedule data = extractSimpleString(springScheduled);
		if (getValueExtractor().isSpringValue(data.scheduleDefinition)) {
			SpringValue extracted = getValueExtractor().extract(data.scheduleDefinition);
			data.scheduleDefinition= extracted.toDescription();
			data.scheduleKey=extracted.getKey();
			data.scheduleDefaultValue=extracted.getDefaultValue();
		}
		return data;
	}

}