|
||||||||
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,
java.lang.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(java.lang.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 java.lang.String |
getXmlElementName()
Gets the name of the XML element. |
protected void |
internalValidate()
Validate instance. |
java.util.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, 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 |
---|
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, java.lang.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 java.lang.Exception
internalValidate
in class ComplexProperty
java.lang.Exception
protected java.lang.String getXmlElementName()
getXmlElementName
in class SearchFilter
protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws java.lang.Exception
tryReadElementFromXml
in class ComplexProperty
reader
- the reader
java.lang.Exception
- the exceptionprotected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws java.lang.Exception
writeElementsToXml
in class ComplexProperty
writer
- the writer
java.lang.Exception
- the exceptionprotected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws java.lang.Exception
writeToXml
in class SearchFilter
writer
- the writer
java.lang.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(java.lang.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 java.util.Iterator<SearchFilter> iterator()
iterator
in interface java.lang.Iterable<SearchFilter>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |