microsoft.exchange.webservices.data
Class SearchFilter.Not

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.SearchFilter
          extended by microsoft.exchange.webservices.data.SearchFilter.Not
Enclosing class:
SearchFilter

public static class SearchFilter.Not
extends SearchFilter

Represents a search filter that negates another. Applications can use NotFilter to define conditions such as "NOT(other filter)".


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
 
Constructor Summary
SearchFilter.Not()
          Initializes a new instance of the class.
SearchFilter.Not(SearchFilter searchFilter)
          Initializes a new instance of the class.
 
Method Summary
 void complexPropertyChanged(ComplexProperty complexProperty)
          Complex property changed.
 SearchFilter getSearchFilter()
          Gets the search filter to negate.
protected  java.lang.String getXmlElementName()
          Gets the name of the XML element.
protected  void internalValidate()
          validates the instance.
 void setSearchFilter(SearchFilter searchFilter)
          Sets the search filter to negate.
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
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
 

Constructor Detail

SearchFilter.Not

public SearchFilter.Not()
Initializes a new instance of the class.


SearchFilter.Not

public SearchFilter.Not(SearchFilter searchFilter)
Initializes a new instance of the class.

Parameters:
searchFilter - the search filter
Method Detail

internalValidate

protected void internalValidate()
                         throws ServiceValidationException
validates the instance.

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

getXmlElementName

protected java.lang.String getXmlElementName()
Gets the name of the XML element.

Specified by:
getXmlElementName in class SearchFilter
Returns:
the xml element name

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 the element was read
Throws:
java.lang.Exception - the exception

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws java.lang.Exception
Writes the elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
java.lang.Exception - the exception

getSearchFilter

public SearchFilter getSearchFilter()
Gets the search filter to negate. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection.

Returns:
SearchFilter

setSearchFilter

public void setSearchFilter(SearchFilter searchFilter)
Sets the search filter to negate. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection.

Parameters:
searchFilter - the new search filter

complexPropertyChanged

public void complexPropertyChanged(ComplexProperty complexProperty)
Complex property changed.

Parameters:
complexProperty - the complex property