public static class SearchFilter.SearchFilterCollection extends SearchFilter implements Iterable<SearchFilter>, IComplexPropertyChangedDelegate
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 and Description |
---|
SearchFilterCollection()
Initializes a new instance of the class.
|
SearchFilterCollection(LogicalOperator logicalOperator)
Initializes a new instance of the class.
|
SearchFilterCollection(LogicalOperator logicalOperator,
Iterable<SearchFilter> searchFilters)
Initializes a new instance of the class.
|
SearchFilterCollection(LogicalOperator logicalOperator,
SearchFilter... searchFilters)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
add(SearchFilter searchFilter)
Adds a search filter of any type to the collection.
|
void |
addRange(Iterable<SearchFilter> searchFilters)
Adds multiple search filter 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 filter in the collection.
|
LogicalOperator |
getLogicalOperator()
Gets the logical operator that links the serach filter 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 filter in this
collection.
|
void |
setSearchFilter(int index,
SearchFilter searchFilter)
Sets the search filter at the specified index.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes the elements to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer)
Writes to XML.
|
loadFromXml
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SearchFilterCollection()
public SearchFilterCollection(LogicalOperator logicalOperator)
logicalOperator
- The logical operator used to initialize the collection.public SearchFilterCollection(LogicalOperator logicalOperator, SearchFilter... searchFilters)
logicalOperator
- The logical operator used to initialize the collection.searchFilters
- The search filter to add to the collection.public SearchFilterCollection(LogicalOperator logicalOperator, Iterable<SearchFilter> searchFilters)
logicalOperator
- The logical operator used to initialize the collection.searchFilters
- The search filter to add to the collection.protected void internalValidate() throws Exception
internalValidate
in class ComplexProperty
Exception
protected String getXmlElementName()
getXmlElementName
in class SearchFilter
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ComplexProperty
writer
- the writerException
- the exceptionpublic void writeToXml(EwsServiceXmlWriter writer) throws Exception
writeToXml
in class SearchFilter
writer
- the writerException
- 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 filter 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 indexpublic 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)
IComplexPropertyChangedDelegate
complexPropertyChanged
in interface IComplexPropertyChangedDelegate
complexProperty
- the complex propertypublic Iterator<SearchFilter> iterator()
iterator
in interface Iterable<SearchFilter>
Copyright © 2012–2015 Microsoft. All rights reserved.