Class SearchFilter.ExcludesBitmask
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.search.filter.SearchFilter
-
- microsoft.exchange.webservices.data.search.filter.SearchFilter.PropertyBasedFilter
-
- microsoft.exchange.webservices.data.search.filter.SearchFilter.ExcludesBitmask
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
- 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.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
Constructors Constructor Description ExcludesBitmask()Initializes a new instance of the class.ExcludesBitmask(PropertyDefinitionBase propertyDefinition, int bitmask)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitmask()Gets the bitmask to compare the property with.StringgetXmlElementName()Gets the name of the XML element.voidsetBitmask(int bitmask)Sets the bitmask to compare the property with.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes the elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.search.filter.SearchFilter.PropertyBasedFilter
getPropertyDefinition, internalValidate, setPropertyDefinition
-
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
-
-
-
-
Constructor Detail
-
ExcludesBitmask
public ExcludesBitmask()
Initializes a new instance of the class.
-
ExcludesBitmask
public ExcludesBitmask(PropertyDefinitionBase propertyDefinition, int bitmask)
Initializes a new instance of the class.- Parameters:
propertyDefinition- the property definitionbitmask- the bitmask
-
-
Method Detail
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classSearchFilter- Returns:
- XML element name
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classSearchFilter.PropertyBasedFilter- Parameters:
reader- the reader- Returns:
- true if element was read
- Throws:
Exception- the exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Writes the elements to XML.- Overrides:
writeElementsToXmlin classSearchFilter.PropertyBasedFilter- Parameters:
writer- the writer- Throws:
XMLStreamException- , ServiceXmlSerializationExceptionServiceXmlSerializationException- 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
-
-