Class EwsServiceXmlReader
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.EwsXmlReader
-
- microsoft.exchange.webservices.data.core.EwsServiceXmlReader
-
- Direct Known Subclasses:
EwsServiceMultiResponseXmlReader
public class EwsServiceXmlReader extends EwsXmlReader
XML reader.
-
-
Constructor Summary
Constructors Constructor Description EwsServiceXmlReader(InputStream stream, ExchangeService service)Initializes a new instance of the EwsXmlReader class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExchangeServicegetService()Gets the service.DatereadElementValueAsDateTime()Reads the element value as date time.DatereadElementValueAsDateTime(XmlNamespace xmlNamespace, String localName)Reads the element value as date time.DatereadElementValueAsUnbiasedDateTimeScopedToServiceTimeZone()Reads the element value as date time, assuming it is unbiased (e.g.DatereadElementValueAsUnspecifiedDate()Reads the element value as unspecified date.<TServiceObject extends ServiceObject>
List<TServiceObject>readServiceObjectsCollectionFromXml(String collectionXmlElementName, IGetObjectInstanceDelegate<ServiceObject> getObjectInstanceDelegate, boolean clearPropertyBag, PropertySet requestedPropertySet, boolean summaryPropertiesOnly)Reads the service objects collection from XML.voidsetService(ExchangeService service)Sets the service.-
Methods inherited from class microsoft.exchange.webservices.data.core.EwsXmlReader
checkEndElement, ensureCurrentNodeIsEndElement, ensureCurrentNodeIsStartElement, ensureCurrentNodeIsStartElement, getLocalName, getName, getNamespacePrefix, getNamespaceUri, getNodeType, getXmlReaderForNode, hasAttributes, initializeXmlReader, isEmptyElement, isEndElement, isEndElement, isStartElement, isStartElement, isStartElement, read, read, readAttributeValue, readAttributeValue, readAttributeValue, readBase64ElementValue, readBase64ElementValue, readElementValue, readElementValue, readElementValue, readElementValue, readElementValue, readEndElement, readEndElement, readEndElementIfNecessary, readInnerXml, readNullableAttributeValue, readOuterXml, readStartElement, readStartElement, readSubtree, readToDescendant, readToDescendant, readValue, readValue, readValue, skipCurrentElement, skipElement, skipElement, tryReadValue
-
-
-
-
Constructor Detail
-
EwsServiceXmlReader
public EwsServiceXmlReader(InputStream stream, ExchangeService service) throws Exception
Initializes a new instance of the EwsXmlReader class.- Parameters:
stream- the streamservice- the service- Throws:
Exception- on error
-
-
Method Detail
-
readElementValueAsDateTime
public Date readElementValueAsDateTime() throws Exception
Reads the element value as date time.- Returns:
- Element value
- Throws:
Exception- the exception
-
readElementValueAsUnspecifiedDate
public Date readElementValueAsUnspecifiedDate() throws Exception
Reads the element value as unspecified date.- Returns:
- element value
- Throws:
Exception- on error
-
readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone
public Date readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone() throws Exception
Reads the element value as date time, assuming it is unbiased (e.g. 2009/01/01T08:00) and scoped to service's time zone.- Returns:
- Date
- Throws:
Exception- the exception
-
readElementValueAsDateTime
public Date readElementValueAsDateTime(XmlNamespace xmlNamespace, String localName) throws Exception
Reads the element value as date time.- Parameters:
xmlNamespace- the xml namespacelocalName- the local name- Returns:
- the date
- Throws:
Exception- the exception
-
readServiceObjectsCollectionFromXml
public <TServiceObject extends ServiceObject> List<TServiceObject> readServiceObjectsCollectionFromXml(String collectionXmlElementName, IGetObjectInstanceDelegate<ServiceObject> getObjectInstanceDelegate, boolean clearPropertyBag, PropertySet requestedPropertySet, boolean summaryPropertiesOnly) throws Exception
Reads the service objects collection from XML.- Type Parameters:
TServiceObject- the generic type- Parameters:
collectionXmlElementName- the collection xml element namegetObjectInstanceDelegate- the get object instance delegateclearPropertyBag- the clear property bagrequestedPropertySet- the requested property setsummaryPropertiesOnly- the summary property only- Returns:
- the list
- Throws:
Exception- the exception
-
getService
public ExchangeService getService()
Gets the service.- Returns:
- the service
-
setService
public void setService(ExchangeService service)
Sets the service.- Parameters:
service- the new service
-
-