public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Created(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Created(parameters, value); }
public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Created(parameters, value); }
public Property createProperty() { return new Created(); } }
public Property createProperty() { return new Created(); } }
public Property createProperty() { return new Created(); } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Created(parameters, value); }
public Property createProperty() { return new Created(); } }
public Property createProperty(final String name) { return new Created(); } };
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Created(parameters, value); }
protected static Created toCreated(Timestamp javaObj) { if (javaObj == null) { return null; } return new Created(new DateTime(javaObj)); }
@Override public Property toVEvent(final TeamEventDO event) { if (event.getCreated() != null) { DateTime created = new DateTime(event.getCreated()); created.setUtc(true); return new Created(created); } return null; }
@Test public void shouldSetUtcToBrokenCreatedDate() throws ParseException { Created created = new Created("20161026T130842"); RuleManager.applyTo(created); assertEquals("20161026T130842Z", created.getValue()); } }
/** * @return * @throws ParseException */ public static TestSuite suite() throws ParseException { TestSuite suite = new TestSuite(); Created created = new Created("20081124T090000Z"); suite.addTest(new CreatedTest(created, "20081124T090000Z")); suite.addTest(new CreatedTest("testEquals", created)); suite.addTest(new CreatedTest("testValidation", created)); return suite; } }
/** 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()); } }
prop = new Created(val.getCreated());