microsoft.exchange.webservices.data
Class ExpandGroupResults

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

public final class ExpandGroupResults
extends java.lang.Object
implements java.lang.Iterable<EmailAddress>

Represents the results of an ExpandGroup operation.


Constructor Summary
protected ExpandGroupResults()
          Initializes a new instance of the class.
 
Method Summary
 int getCount()
          Gets the number of members that were returned by the ExpandGroup operation.
 boolean getIncludesAllMembers()
          Gets a value indicating whether all the members of the group have been returned by ExpandGroup.
 java.util.Collection<EmailAddress> getMembers()
          Gets the members of the expanded group.
 java.util.Iterator<EmailAddress> iterator()
          Returns an iterator over a set of elements of type T.
protected  void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Gets the members of the expanded group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandGroupResults

protected ExpandGroupResults()
Initializes a new instance of the class.

Method Detail

getCount

public int getCount()
Gets the number of members that were returned by the ExpandGroup operation. Count might be less than the total number of members in the group, in which case the value of the IncludesAllMembers is false.

Returns:
the count

getIncludesAllMembers

public boolean getIncludesAllMembers()
Gets a value indicating whether all the members of the group have been returned by ExpandGroup.

Returns:
the includes all members

getMembers

public java.util.Collection<EmailAddress> getMembers()
Gets the members of the expanded group.

Returns:
the members

loadFromXml

protected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                    throws java.lang.Exception
Gets the members of the expanded group.

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

iterator

public java.util.Iterator<EmailAddress> iterator()
Returns an iterator over a set of elements of type T.

Specified by:
iterator in interface java.lang.Iterable<EmailAddress>
Returns:
an Iterator.