/** * Writes to XML. * * @param writer the writer * @param propertyBag the property bag * @param isUpdateOperation the is update operation * @throws Exception the exception */ public void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws Exception { TimeZoneDefinition timeZoneDefinition = propertyBag.getObjectFromPropertyDefinition(this); if (timeZoneDefinition != null) { // We emit time zone property only if we have not emitted the time // zone SOAP header // or if this time zone is different from that of the service // through which the request // is being emitted. if (!writer.isTimeZoneHeaderEmitted())// || value != // writer.getService().getTimeZone()) { timeZoneDefinition.writeToXml(writer, this.getXmlElement()); } } }
/** * Writes to XML. * * @param writer the writer * @param propertyBag the property bag * @param isUpdateOperation the is update operation * @throws Exception the exception */ public void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws Exception { TimeZoneDefinition timeZoneDefinition = propertyBag.getObjectFromPropertyDefinition(this); if (timeZoneDefinition != null) { // We emit time zone property only if we have not emitted the time // zone SOAP header // or if this time zone is different from that of the service // through which the request // is being emitted. if (!writer.isTimeZoneHeaderEmitted())// || value != // writer.getService().getTimeZone()) { timeZoneDefinition.writeToXml(writer, this.getXmlElement()); } } }