System.out.println("Processing year: " + temp.substring(2, 4)); result.setYear(Short.parseShort(temp.substring(2, 4))); process = true;
System.out.println("Processing year: "+temp.substring(2,4)); result.setYear(Short.parseShort( temp.substring(2,4) )); process = true;
this.setYear(values[1]); this.setMonth(values[2]); this.setDay(values[3]);
this.setYear(values[1]); this.setMonth(values[2]); this.setDay(values[3]);
RecurringDuration temp = RecurringDuration.parseRecurringDuration(value.toString()) ; recurTarget.setCentury(temp.getCentury()); recurTarget.setYear(temp.getYear()); recurTarget.setMonth(temp.getMonth()); recurTarget.setDay(temp.getDay());
/** * Sets the value of the field associated with this descriptor. * * @param target the object in which to set the value * @param value the value of the field */ public void setValue(Object target, Object value) throws java.lang.IllegalStateException { if (!(target instanceof RecurringDuration)) { // -- throw exception } RecurringDuration recurTarget = (RecurringDuration) target; if (value == null) { /// do something } // -- update current instance of time with new time try { RecurringDuration temp = RecurringDuration.parseRecurringDuration(value.toString()); recurTarget.setCentury(temp.getCentury()); recurTarget.setYear(temp.getYear()); recurTarget.setMonth(temp.getMonth()); recurTarget.setDay(temp.getDay()); recurTarget.setHour(temp.getHour()); recurTarget.setMinute(temp.getMinute()); recurTarget.setSecond(temp.getSeconds(), temp.getMilli()); recurTarget.setZone(temp.getZoneHour(), temp.getZoneMinute()); recurTarget.isUTC(); } catch (Exception ex) { // -- ignore for now } } // -- setValue