public abstract class ViewBase extends Object
Modifier and Type | Method and Description |
---|---|
protected abstract Integer |
getMaxEntriesReturned()
Gets the maximum number of item or folder the search operation should
return.
|
PropertySet |
getPropertySet()
Gets the property set.
|
PropertySet |
getPropertySetOrDefault()
Gets the property set or the default.
|
protected abstract ServiceObjectType |
getServiceObjectType()
Gets the type of service object this view applies to.
|
protected abstract String |
getViewXmlElementName()
Gets the name of the view XML element.
|
void |
internalValidate(ServiceRequestBase request)
Validates this view.
|
protected abstract void |
internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer,
Grouping groupBy)
Writes the search settings to XML.
|
protected void |
internalWriteViewToXml(EwsServiceXmlWriter writer)
Writes this view to XML.
|
void |
setPropertySet(PropertySet propertySet)
Sets the property set.
|
abstract void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
abstract void |
writeOrderByToXml(EwsServiceXmlWriter writer)
Writes OrderBy property to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer,
Grouping groupBy)
Writes to XML.
|
public void internalValidate(ServiceRequestBase request) throws ServiceValidationException, ServiceVersionException
request
- The request using this view.ServiceValidationException
- the service validation exceptionServiceVersionException
- the service version exceptionprotected void internalWriteViewToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, Exception
writer
- The writerServiceXmlSerializationException
- the service xml serialization exceptionException
- the exceptionprotected abstract void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, Grouping groupBy) throws XMLStreamException, ServiceXmlSerializationException
writer
- the writergroupBy
- the group by clauseXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionpublic abstract void writeOrderByToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writer
- the writerXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionprotected abstract String getViewXmlElementName()
protected abstract Integer getMaxEntriesReturned()
protected abstract ServiceObjectType getServiceObjectType()
public abstract void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writer
- The writer.ServiceXmlSerializationException
- the service xml serialization exceptionpublic void writeToXml(EwsServiceXmlWriter writer, Grouping groupBy) throws Exception
writer
- The writer.groupBy
- The group by clause.Exception
- the exceptionpublic PropertySet getPropertySetOrDefault()
public PropertySet getPropertySet()
public void setPropertySet(PropertySet propertySet)
propertySet
- The property setCopyright © 2012–2015 Microsoft. All rights reserved.