microsoft.exchange.webservices.data
Class SearchFilter.PropertyBasedFilter

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.SearchFilter
          extended by microsoft.exchange.webservices.data.SearchFilter.PropertyBasedFilter
Direct Known Subclasses:
SearchFilter.ContainsSubstring, SearchFilter.ExcludesBitmask, SearchFilter.Exists, SearchFilter.RelationalFilter
Enclosing class:
SearchFilter

public abstract static class SearchFilter.PropertyBasedFilter
extends SearchFilter

Represents a search filter where an item or folder property is involved.


Nested Class Summary
 
Nested classes/interfaces inherited from class microsoft.exchange.webservices.data.SearchFilter
SearchFilter.ContainsSubstring, SearchFilter.ExcludesBitmask, SearchFilter.Exists, SearchFilter.IsEqualTo, SearchFilter.IsGreaterThan, SearchFilter.IsGreaterThanOrEqualTo, SearchFilter.IsLessThan, SearchFilter.IsLessThanOrEqualTo, SearchFilter.IsNotEqualTo, SearchFilter.Not, SearchFilter.PropertyBasedFilter, SearchFilter.RelationalFilter, SearchFilter.SearchFilterCollection
 
Method Summary
 PropertyDefinitionBase getPropertyDefinition()
          Gets the definition of the property that is involved in the search filter.
protected  void internalValidate()
          validate instance.
 void setPropertyDefinition(PropertyDefinitionBase propertyDefinition)
          Sets the definition of the property that is involved in the search filter.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read element from XML.
protected  void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Writes the elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.SearchFilter
getXmlElementName, loadFromXml, writeToXml
 
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

internalValidate

protected void internalValidate()
                         throws ServiceValidationException
validate instance.

Overrides:
internalValidate in class ComplexProperty
Throws:
ServiceValidationException - the service validation exception

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - the reader
Returns:
true if element was read
Throws:
java.lang.Exception - the exception

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws javax.xml.stream.XMLStreamException,
                                  ServiceXmlSerializationException
Writes the elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception
ServiceXmlSerializationException - the service xml serialization exception

getPropertyDefinition

public PropertyDefinitionBase getPropertyDefinition()
Gets the definition of the property that is involved in the search filter.

Returns:
propertyDefinition

setPropertyDefinition

public void setPropertyDefinition(PropertyDefinitionBase propertyDefinition)
Sets the definition of the property that is involved in the search filter.

Parameters:
propertyDefinition - the new property definition