microsoft.exchange.webservices.data
Class NameResolutionCollection

java.lang.Object
  extended by microsoft.exchange.webservices.data.NameResolutionCollection
All Implemented Interfaces:
java.lang.Iterable<NameResolution>

public final class NameResolutionCollection
extends java.lang.Object
implements java.lang.Iterable<NameResolution>

Represents a list of suggested name resolutions.


Constructor Summary
protected NameResolutionCollection(ExchangeService service)
          Represents a list of suggested name resolutions.
 
Method Summary
 int getCount()
          Gets the total number of elements in the list.
 boolean getIncludesAllResolutions()
          Gets a value indicating whether more suggested resolutions are available.
protected  ExchangeService getSession()
          Gets the session.
 java.util.Iterator<NameResolution> iterator()
           
protected  void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Loads from XML.
 NameResolution nameResolutionCollection(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
 

Constructor Detail

NameResolutionCollection

protected NameResolutionCollection(ExchangeService service)
Represents a list of suggested name resolutions.

Parameters:
service - the service
Method Detail

loadFromXml

protected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                    throws java.lang.Exception
Loads from XML.

Parameters:
reader - the reader
Throws:
java.lang.Exception - the exception

getSession

protected ExchangeService getSession()
Gets the session. 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 java.util.Iterator<NameResolution> iterator()
Specified by:
iterator in interface java.lang.Iterable<NameResolution>