public static NextRelativeTime hourOfDay(Integer hourOfDay) { return new NextRelativeTime(hourOfDay, HOUR_OF_DAY); } public static NextRelativeTime dayOfWeek(Integer dayOfWeek) {
public static NextRelativeTime dayOfWeek(Integer dayOfWeek) { return new NextRelativeTime(dayOfWeek, DAY_OF_WEEK); } public static NextRelativeTime dayOfMonth(Integer dayOfMonth) {
public static NextRelativeTime dayOfWeek(Integer dayOfWeek) { return new NextRelativeTime(dayOfWeek, DAY_OF_WEEK); } public static NextRelativeTime dayOfMonth(Integer dayOfMonth) {
public static NextRelativeTime hourOfDay(Integer hourOfDay) { return new NextRelativeTime(hourOfDay, HOUR_OF_DAY); } public static NextRelativeTime dayOfWeek(Integer dayOfWeek) {
public static NextRelativeTime dayOfMonth(Integer dayOfMonth) { return new NextRelativeTime(dayOfMonth, DAY_OF_MONTH); }
public static NextRelativeTime dayOfMonth(Integer dayOfMonth) { return new NextRelativeTime(dayOfMonth, DAY_OF_MONTH); }
public static RelativeTime readBpmnPolymorphic(BpmnReader r) { String type = r.readStringAttributeEffektif("type"); if (type==null) { String after = r.readStringAttributeEffektif("after"); if (after!=null) { return parseBackwardsCompatibleString(after); } return null; } RelativeTime relativeTime = null; if (AFTER.equals(type)) { relativeTime = new AfterRelativeTime(); } else if (BEFORE.equals(type)) { relativeTime = new BeforeRelativeTime(); } else if (NEXT.equals(type)) { relativeTime = new NextRelativeTime(); } else { throw new RuntimeException("TODO: Find out how to report parsing warning"); } relativeTime.readBpmn(r); return relativeTime; }
public static RelativeTime readBpmnPolymorphic(BpmnReader r) { String type = r.readStringAttributeEffektif("type"); if (type==null) { String after = r.readStringAttributeEffektif("after"); if (after!=null) { return parseBackwardsCompatibleString(after); } return null; } RelativeTime relativeTime = null; if (AFTER.equals(type)) { relativeTime = new AfterRelativeTime(); } else if (BEFORE.equals(type)) { relativeTime = new BeforeRelativeTime(); } else if (NEXT.equals(type)) { relativeTime = new NextRelativeTime(); } else { throw new RuntimeException("TODO: Find out how to report parsing warning"); } relativeTime.readBpmn(r); return relativeTime; }