Class NameResolutionCollection
- java.lang.Object
-
- microsoft.exchange.webservices.data.misc.NameResolutionCollection
-
- All Implemented Interfaces:
Iterable<NameResolution>
public final class NameResolutionCollection extends Object implements Iterable<NameResolution>
Represents a list of suggested name resolutions.
-
-
Constructor Summary
Constructors Constructor Description NameResolutionCollection(ExchangeService service)Represents a list of suggested name resolutions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()Gets the total number of elements in the list.booleangetIncludesAllResolutions()Gets a value indicating whether more suggested resolutions are available.protected ExchangeServicegetSession()Gets the session.Iterator<NameResolution>iterator()voidloadFromXml(EwsServiceXmlReader reader)Loads from XML.NameResolutionnameResolutionCollection(int index)Gets the name resolution at the specified index.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
NameResolutionCollection
public NameResolutionCollection(ExchangeService service)
Represents a list of suggested name resolutions.- Parameters:
service- the service
-
-
Method Detail
-
loadFromXml
public void loadFromXml(EwsServiceXmlReader reader) throws Exception
Loads from XML.- Parameters:
reader- the reader- Throws:
Exception- the exception
-
getSession
protected ExchangeService getSession()
Gets the session.- Returns:
- the session
-
getCount
public int getCount()
Gets the total number of elements in the list.- Returns:
- the count
-
getIncludesAllResolutions
public boolean getIncludesAllResolutions()
Gets a value indicating whether more suggested resolutions are available. ResolveName only returns a maximum of 100 name resolutions. When IncludesAllResolutions is false, there were more than 100 matching names on the server. To narrow the search, provide a more precise name to ResolveName.- Returns:
- the includes all resolutions
-
nameResolutionCollection
public NameResolution nameResolutionCollection(int index) throws ArgumentOutOfRangeException
Gets the name resolution at the specified index.- Parameters:
index- the index- Returns:
- The name resolution at the speicfied index.
- Throws:
ArgumentOutOfRangeException- the argument out of range exception
-
iterator
public Iterator<NameResolution> iterator()
- Specified by:
iteratorin interfaceIterable<NameResolution>
-
-