@Test public void fromDate() throws IOException { TestHelper.assertXMLEquals( "<meta:user-defined meta:name=\"d\" " + "meta:type=\"date\">1970-01-01</meta:user-defined>", UserDefined.fromDate("d", new Date(0))); }
public static UserDefined fromDate(final String name, final Date value) { return new UserDefined(name, MetaValueType.DATE, MetaElement.DF_DATE.format(value)); }
UserDefined implements XMLConvertible { public static UserDefined fromDate(final String name, final Date value) { return new UserDefined(name, MetaValueType.DATE, MetaElement.DF_DATE.format(value)); } }
UserDefined implements XMLConvertible { public static UserDefined fromDate(final String name, final Date value) { return new UserDefined(name, MetaValueType.DATE, MetaElement.DF_DATE.format(value)); } UserDefined(final String name, final MetaValueType valueType, final String value); }
UserDefined implements XMLConvertible { public static UserDefined fromDate(final String name, final Date value) { return new UserDefined(name, MetaValueType.DATE, MetaElement.DF_DATE.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 fromDate(final String name, final Date value) { return new UserDefined(name, MetaValueType.DATE, MetaElement.DF_DATE.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);  }