@Test public void fromTime() throws IOException { TestHelper.assertXMLEquals( "<meta:user-defined meta:name=\"t\" " + "meta:type=\"time\">00:20:34</meta:user-defined>", UserDefined.fromTime("t", new Date(1234567))); }
public static UserDefined fromTime(final String name, final Date value) { return new UserDefined(name, MetaValueType.TIME, MetaElement.DF_TIME.format(value)); }
UserDefined implements XMLConvertible { public static UserDefined fromTime(final String name, final Date value) { return new UserDefined(name, MetaValueType.TIME, MetaElement.DF_TIME.format(value)); } }
UserDefined implements XMLConvertible { public static UserDefined fromTime(final String name, final Date value) { return new UserDefined(name, MetaValueType.TIME, MetaElement.DF_TIME.format(value)); } UserDefined(final String name, final MetaValueType valueType, final String value); }
UserDefined implements XMLConvertible { public static UserDefined fromTime(final String name, final Date value) { return new UserDefined(name, MetaValueType.TIME, MetaElement.DF_TIME.format(value)); } UserDefined(final String name, final MetaValueType valueType, final String value); static UserDefined fromBoolean(final String name, final boolean value); static UserDefined fromDate(final String name, final Date value); static UserDefined fromFloat(final String name, final Number value); static UserDefined fromTime(final String name, final Date value); static UserDefined fromString(final String name, final String value); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); }
UserDefined implements XMLConvertible { public static UserDefined fromTime(final String name, final Date value) { return new UserDefined(name, MetaValueType.TIME, MetaElement.DF_TIME.format(value)); } UserDefined(final String name, final MetaValueType valueType, final String value); static UserDefined fromBoolean(final String name, final boolean value); static UserDefined fromDate(final String name, final Date value); static UserDefined fromFloat(final String name, final Number value); static UserDefined fromTime(final String name, final Date value); static UserDefined fromString(final String name, final String value); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable);  }