/** * Convert instance to string. * * @param value The value. * @return String representation of property value. */ @Override protected String toString(TimeSpan value) { return EwsUtilities.getTimeSpanToXSDuration(value); } }
/** * Writes the attribute to XML. * * @param writer the writer * @throws ServiceXmlSerializationException the service xml serialization exception */ @Override public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException { writer.writeAttributeValue(XmlAttributeNames.Bias, EwsUtilities .getTimeSpanToXSDuration(this.bias)); writer.writeAttributeValue(XmlAttributeNames.Name, this.name); writer.writeAttributeValue(XmlAttributeNames.Id, this.id); }
/** * Writes elements to XML. * * @param writer the writer * @throws ServiceXmlSerializationException the service xml serialization exception * @throws XMLStreamException the XML stream exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException { super.writeElementsToXml(writer); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.TimeOffset, EwsUtilities .getTimeSpanToXSDuration(this.timeOffset)); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, this.month); }
/** * Convert instance to string. * * @param value The value. * @return String representation of property value. */ @Override protected String toString(TimeSpan value) { return EwsUtilities.getTimeSpanToXSDuration(value); } }
/** * Writes the attribute to XML. * * @param writer the writer * @throws Exception the exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { if (this.baseOffset != null) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.BaseOffset, EwsUtilities .getTimeSpanToXSDuration(this.getBaseOffset())); } if (this.getStandard() != null) { this.getStandard().writeToXml(writer, XmlElementNames.Standard); } if (this.getDaylight() != null) { this.getDaylight().writeToXml(writer, XmlElementNames.Daylight); } }
/** * Writes elements to XML. * * @param writer accepts EwsServiceXmlWriter * @throws Exception throws Exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { if (this.offset != null) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Offset, EwsUtilities .getTimeSpanToXSDuration(this.getOffset())); } if (this.recurrence != null) { this.recurrence.writeToXml(writer, XmlElementNames.RelativeYearlyRecurrence); } if (this.absoluteDate != null) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.AbsoluteDate, EwsUtilities .dateTimeToXSDate(this.getAbsoluteDate())); } if (this.time != null) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Time, this.getTime().toXSTime()); } }
/** * Writes the attribute to XML. * * @param writer the writer * @throws ServiceXmlSerializationException the service xml serialization exception */ @Override public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException { writer.writeAttributeValue(XmlAttributeNames.Bias, EwsUtilities .getTimeSpanToXSDuration(this.bias)); writer.writeAttributeValue(XmlAttributeNames.Name, this.name); writer.writeAttributeValue(XmlAttributeNames.Id, this.id); }
/** * Writes elements to XML. * * @param writer the writer * @throws ServiceXmlSerializationException the service xml serialization exception * @throws XMLStreamException the XML stream exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException { super.writeElementsToXml(writer); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.TimeOffset, EwsUtilities .getTimeSpanToXSDuration(this.timeOffset)); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, this.month); }
/** * Writes the attribute to XML. * * @param writer the writer * @throws Exception the exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { if (this.baseOffset != null) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.BaseOffset, EwsUtilities .getTimeSpanToXSDuration(this.getBaseOffset())); } if (this.getStandard() != null) { this.getStandard().writeToXml(writer, XmlElementNames.Standard); } if (this.getDaylight() != null) { this.getDaylight().writeToXml(writer, XmlElementNames.Daylight); } }
/** * Writes elements to XML. * * @param writer accepts EwsServiceXmlWriter * @throws Exception throws Exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { if (this.offset != null) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Offset, EwsUtilities .getTimeSpanToXSDuration(this.getOffset())); } if (this.recurrence != null) { this.recurrence.writeToXml(writer, XmlElementNames.RelativeYearlyRecurrence); } if (this.absoluteDate != null) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.AbsoluteDate, EwsUtilities .dateTimeToXSDate(this.getAbsoluteDate())); } if (this.time != null) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Time, this.getTime().toXSTime()); } }