public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Created(parameters, value); }
@Override public void applyTo(Created created) { if (created.isUtc() || created.getTimeZone() != null) { return; } try { created.setValue(created.getValue() + UTC_MARKER); } catch (ParseException e) { // Let the value as it is } }
/** * @param aDate a date */ public Created(final DateTime aDate) { super(CREATED, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aValue a value string for this component * @throws ParseException where the specified value string is not a valid date-time/date representation */ public Created(final String aValue) throws ParseException { super(CREATED, new Factory()); setValue(aValue); }
/** Set the dtstamp, lastmod and created if created is not set already. * @param val */ @NoProxy public void setDtstamps(final Timestamp val) { DateTime dt = new DateTime(val); setDtstamp(new DtStamp(dt).getValue()); setLastmod(new LastModified(dt).getValue()); setCtoken(getLastmod() + "-" + hex4FromNanos(val.getNanos())); if (getCreated() == null) { setCreated(new Created(dt).getValue()); } }
/** * @param aList a list of parameters for this component * @param aDate a date */ public Created(final ParameterList aList, final DateTime aDate) { super(CREATED, aList, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aValue a value string for this component * @throws ParseException where the specified value string is not a valid date-time/date representation */ public Created(final String aValue) throws ParseException { super(CREATED, new Factory()); setValue(aValue); }
public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Created(parameters, value); }
@Override public void applyTo(Created created) { if (created.isUtc() || created.getTimeZone() != null) { return; } try { created.setValue(created.getValue() + UTC_MARKER); } catch (ParseException e) { // Let the value as it is } }
/** * @param aDate a date */ public Created(final DateTime aDate) { super(CREATED, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component * @throws ParseException where the specified value string is not a valid date-time/date representation */ public Created(final ParameterList aList, final String aValue) throws ParseException { super(CREATED, aList, PropertyFactoryImpl.getInstance()); setValue(aValue); }
public Property createProperty() { return new Created(); } }
@Override public void applyTo(Created created) { if (created.isUtc() || created.getTimeZone() != null) { return; } try { created.setValue(created.getValue() + UTC_MARKER); } catch (ParseException e) { // Let the value as it is } }
/** * @param aList a list of parameters for this component * @param aDate a date */ public Created(final ParameterList aList, final DateTime aDate) { super(CREATED, aList, PropertyFactoryImpl.getInstance()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aValue a value string for this component * @throws ParseException where the specified value string is not a valid date-time/date representation */ public Created(final String aValue) throws ParseException { super(CREATED, PropertyFactoryImpl.getInstance()); setValue(aValue); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Created(parameters, value); }
/** * @param aList a list of parameters for this component * @param aDate a date */ public Created(final ParameterList aList, final DateTime aDate) { super(CREATED, aList, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component * @throws ParseException where the specified value string is not a valid date-time/date representation */ public Created(final ParameterList aList, final String aValue) throws ParseException { super(CREATED, aList, PropertyFactoryImpl.getInstance()); setValue(aValue); }
public Property createProperty(final String name) { return new Created(); } };