System.out.println("Processing century: " + temp.substring(0, 2)); result.setCentury(Short.parseShort(temp.substring(0, 2))); if (DEBUG) { System.out.println("Processing year: " + temp.substring(2, 4)); result.setCentury(OMITED); if (token.countTokens() == 2) {
System.out.println("Processing century: "+temp.substring(0,2)); result.setCentury(Short.parseShort( temp.substring(0,2) )); if (DEBUG) { System.out.println("Processing year: "+temp.substring(2,4)); result.setCentury(OMITED); if (token.countTokens() == 2) {
this.setCentury(values[0]); this.setYear(values[1]); this.setMonth(values[2]);
throws UnsupportedOperationException this.setCentury(values[0]); this.setYear(values[1]); this.setMonth(values[2]);
recurTarget.setCentury(temp.getCentury()); recurTarget.setYear(temp.getYear()); recurTarget.setMonth(temp.getMonth());
/** * 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