public String func(final Object o) { return EwsUtilities.dateTimeToXSDateTime((Date) o); } }
/** * Writes the property value to XML. * * @param writer accepts EwsServiceXmlWriter * @param propertyBag accepts PropertyBag * @param isUpdateOperation accepts boolean whether the context is an update operation. * @throws Exception throws Exception */ public void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws Exception { Object value = propertyBag.getObjectFromPropertyDefinition(this); if (value != null) { writer.writeStartElement(XmlNamespace.Types, getXmlElement()); // No need of changing the date time zone to UTC as Java takes // default timezone as UTC Date dateTime = (Date) value; writer.writeValue(EwsUtilities.dateTimeToXSDateTime(dateTime), getName()); writer.writeEndElement(); } }
public String func(final Object o) { return EwsUtilities.dateTimeToXSDateTime((Date) o); } }
/** * Writes the property value to XML. * * @param writer accepts EwsServiceXmlWriter * @param propertyBag accepts PropertyBag * @param isUpdateOperation accepts boolean whether the context is an update operation. * @throws Exception throws Exception */ public void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws Exception { Object value = propertyBag.getObjectFromPropertyDefinition(this); if (value != null) { writer.writeStartElement(XmlNamespace.Types, getXmlElement()); // No need of changing the date time zone to UTC as Java takes // default timezone as UTC Date dateTime = (Date) value; writer.writeValue(EwsUtilities.dateTimeToXSDateTime(dateTime), getName()); writer.writeEndElement(); } }