Class SearchFolderParameters
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.SearchFolderParameters
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>,IComplexPropertyChangedDelegate
public final class SearchFolderParameters extends ComplexProperty implements IComplexPropertyChangedDelegate
Represents the parameters associated with a search folder.
-
-
Constructor Summary
Constructors Constructor Description SearchFolderParameters()Initializes a new instance of the SearchFolderParameters class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplexPropertyChanged(ComplexProperty complexProperty)Complex property changed.FolderIdCollectiongetRootFolderIds()Gets the list of root folder the search folder searches in.SearchFiltergetSearchFilter()Gets the search filter associated with the search folder.SearchFolderTraversalgetTraversal()Gets the traversal mode for the search folder.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads the attribute from XML.voidsetSearchFilter(SearchFilter searchFilter)Sets the search filter.voidsetTraversal(SearchFolderTraversal traversal)Sets the traversal.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidvalidate()Validates this instance.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
SearchFolderParameters
public SearchFolderParameters()
Initializes a new instance of the SearchFolderParameters class.
-
-
Method Detail
-
complexPropertyChanged
public void complexPropertyChanged(ComplexProperty complexProperty)
Complex property changed.- Specified by:
complexPropertyChangedin interfaceIComplexPropertyChangedDelegate- Parameters:
complexProperty- the complex property
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- the reader- Returns:
- True if element was read.
- Throws:
Exception- the exception
-
readAttributesFromXml
public void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
Reads the attribute from XML.- Overrides:
readAttributesFromXmlin classComplexProperty- Parameters:
reader- the reader- Throws:
Exception- the exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes the attribute to XML.- Overrides:
writeAttributesToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
Exception- the exception
-
validate
public void validate() throws Exception
Validates this instance.- Specified by:
validatein interfaceISelfValidate- Overrides:
validatein classComplexProperty- Throws:
Exception
-
getTraversal
public SearchFolderTraversal getTraversal()
Gets the traversal mode for the search folder.- Returns:
- the traversal
-
setTraversal
public void setTraversal(SearchFolderTraversal traversal)
Sets the traversal.- Parameters:
traversal- the new traversal
-
getRootFolderIds
public FolderIdCollection getRootFolderIds()
Gets the list of root folder the search folder searches in.- Returns:
- the root folder ids
-
getSearchFilter
public SearchFilter getSearchFilter()
Gets the search filter associated with the search folder. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection.- Returns:
- the search filter
-
setSearchFilter
public void setSearchFilter(SearchFilter searchFilter)
Sets the search filter.- Parameters:
searchFilter- the new search filter
-
-