|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.SearchFilter
microsoft.exchange.webservices.data.SearchFilter.SearchFilterCollection
public static class SearchFilter.SearchFilterCollection
Represents a collection of search filters linked by a logical operator. Applications can use SearchFilterCollection to define complex search filters such as "Condition1 AND Condition2".
| 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.SearchFilterCollection()
Initializes a new instance of the class. |
|
SearchFilter.SearchFilterCollection(LogicalOperator logicalOperator)
Initializes a new instance of the class. |
|
SearchFilter.SearchFilterCollection(LogicalOperator logicalOperator,
Iterable<SearchFilter> searchFilters)
Initializes a new instance of the class. |
|
SearchFilter.SearchFilterCollection(LogicalOperator logicalOperator,
SearchFilter... searchFilters)
Initializes a new instance of the class. |
|
| Method Summary | |
|---|---|
void |
add(SearchFilter searchFilter)
Adds a search filter of any type to the collection. |
void |
addRange(Iterable<SearchFilter> searchFilters)
Adds multiple search filters to the collection. |
void |
clear()
Clears the collection. |
void |
complexPropertyChanged(ComplexProperty complexProperty)
Complex property changed. |
boolean |
contains(SearchFilter searchFilter)
Determines whether a specific search filter is in the collection. |
int |
getCount()
Gets the total number of search filters in the collection. |
LogicalOperator |
getLogicalOperator()
Gets the logical operator that links the serach filters in this collection. |
SearchFilter |
getSearchFilter(int index)
Gets the search filter at the specified index. |
protected String |
getXmlElementName()
Gets the name of the XML element. |
protected void |
internalValidate()
Validate instance. |
Iterator<SearchFilter> |
iterator()
|
void |
remove(SearchFilter searchFilter)
Removes a search filter from the collection. |
void |
removeAt(int index)
Removes the search filter at the specified index from the collection. |
void |
setLogicalOperator(LogicalOperator logicalOperator)
Sets the logical operator that links the serach filters in this collection. |
void |
setSearchFilter(int index,
SearchFilter searchFilter)
Sets the search filter at the specified index. |
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. |
protected void |
writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
Writes to XML. |
| Methods inherited from class microsoft.exchange.webservices.data.SearchFilter |
|---|
loadFromXml |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, validate, writeAttributesToXml, writeToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchFilter.SearchFilterCollection()
public SearchFilter.SearchFilterCollection(LogicalOperator logicalOperator)
logicalOperator - The logical operator used to initialize the collection.
public SearchFilter.SearchFilterCollection(LogicalOperator logicalOperator,
SearchFilter... searchFilters)
logicalOperator - The logical operator used to initialize the collection.searchFilters - The search filters to add to the collection.
public SearchFilter.SearchFilterCollection(LogicalOperator logicalOperator,
Iterable<SearchFilter> searchFilters)
logicalOperator - The logical operator used to initialize the collection.searchFilters - The search filters to add to the collection.| Method Detail |
|---|
protected void internalValidate()
throws Exception
internalValidate in class ComplexPropertyException
ServiceValidationException - the service validation exceptionprotected String getXmlElementName()
getXmlElementName in class SearchFilter
protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
throws Exception
tryReadElementFromXml in class ComplexPropertyreader - the reader
Exception - the exception
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class ComplexPropertywriter - the writer
Exception - the exception
protected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writeToXml in class SearchFilterwriter - the writer
Exception - the exceptionpublic void add(SearchFilter searchFilter)
searchFilter - >The search filter to add. Available search filter classes
include SearchFilter.IsEqualTo,
SearchFilter.ContainsSubstring and
SearchFilter.SearchFilterCollection.public void addRange(Iterable<SearchFilter> searchFilters)
searchFilters - The search filters to add. Available search filter classes
include SearchFilter.IsEqualTo,
SearchFilter.ContainsSubstring and
SearchFilter.SearchFilterCollectionpublic void clear()
public boolean contains(SearchFilter searchFilter)
searchFilter - The search filter to locate in the collection.
public void remove(SearchFilter searchFilter)
searchFilter - The search filter to removepublic void removeAt(int index)
index - The zero-based index of the search filter to remove.public int getCount()
public SearchFilter getSearchFilter(int index)
index - the index
public void setSearchFilter(int index,
SearchFilter searchFilter)
index - the indexsearchFilter - the search filterpublic LogicalOperator getLogicalOperator()
public void setLogicalOperator(LogicalOperator logicalOperator)
logicalOperator - the new logical operatorpublic void complexPropertyChanged(ComplexProperty complexProperty)
complexProperty - the complex propertypublic Iterator<SearchFilter> iterator()
iterator in interface Iterable<SearchFilter>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||