public static ModifyScheduleType getType(String typeName) { ModifyScheduleType tempType; if (typeName == null || typeName.trim().equals("")) return (null); else { Iterator it = allTypes.iterator(); while (it.hasNext()) { tempType = (ModifyScheduleType) it.next(); if (tempType.toString().equalsIgnoreCase(typeName)) return (tempType); } } return (null); }
public void setModificationType(String typeName) { modType = ModifyScheduleType.getType(typeName); update(); }
public String getModificationTypeName() { if (modType != null) return (modType.toString()); else return (null); }