code: public final void setValue(final String aValue) {
          try {
              super.setValue(aValue);
              duration = null;
          } catch (ParseException pe) {
              duration = TemporalAmountAdapter.parse(aValue);
              super.setDateTime(null);
          }
      }
docs: {@inheritDoc}