microsoft.exchange.webservices.data
Class SearchFilter.ExcludesBitmask

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
              extended by microsoft.exchange.webservices.data.SearchFilter.ExcludesBitmask
Enclosing class:
SearchFilter

public static class SearchFilter.ExcludesBitmask
extends SearchFilter.PropertyBasedFilter

Represents a bitmask exclusion search filter. Applications can use ExcludesBitExcludesBitmaskFilter to define conditions such as "(OrdinalField and 0x0010) != 0x0010"


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.ExcludesBitmask()
          Initializes a new instance of the class.
SearchFilter.ExcludesBitmask(PropertyDefinitionBase propertyDefinition, int bitmask)
          Initializes a new instance of the class.
 
Method Summary
 int getBitmask()
          Gets the bitmask to compare the property with.
protected  java.lang.String getXmlElementName()
          Gets the name of the XML element.
 void setBitmask(int bitmask)
          Sets the bitmask to compare the property with.
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.PropertyBasedFilter
getPropertyDefinition, internalValidate, setPropertyDefinition
 
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.ExcludesBitmask

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


SearchFilter.ExcludesBitmask

public SearchFilter.ExcludesBitmask(PropertyDefinitionBase propertyDefinition,
                                    int bitmask)
Initializes a new instance of the class.

Parameters:
propertyDefinition - the property definition
bitmask - the bitmask
Method Detail

getXmlElementName

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

Specified by:
getXmlElementName in class SearchFilter
Returns:
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 SearchFilter.PropertyBasedFilter
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 SearchFilter.PropertyBasedFilter
Parameters:
writer - the writer
Throws:
javax.xml.stream.XMLStreamException - , ServiceXmlSerializationException
ServiceXmlSerializationException - the service xml serialization exception

getBitmask

public int getBitmask()
Gets the bitmask to compare the property with.

Returns:
bitmask

setBitmask

public void setBitmask(int bitmask)
Sets the bitmask to compare the property with.

Parameters:
bitmask - the new bitmask