microsoft.exchange.webservices.data.search.filter
Class SearchFilter.Not

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.search.filter.SearchFilter
          extended by microsoft.exchange.webservices.data.search.filter.SearchFilter.Not
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>, IComplexPropertyChangedDelegate
Enclosing class:
SearchFilter

public static class SearchFilter.Not
extends SearchFilter
implements IComplexPropertyChangedDelegate

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.search.filter.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  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.
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes the elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.search.filter.SearchFilter
loadFromXml, writeToXml
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.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 String getXmlElementName()
Gets the name of the XML element.

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

tryReadElementFromXml

public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
                              throws Exception
Tries to read element from XML.

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

writeElementsToXml

public void writeElementsToXml(EwsServiceXmlWriter writer)
                        throws Exception
Writes the elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
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)
Description copied from interface: IComplexPropertyChangedDelegate
Complex property changed.

Specified by:
complexPropertyChanged in interface IComplexPropertyChangedDelegate
Parameters:
complexProperty - the complex property


Copyright © 2012–2015 Microsoft. All rights reserved.