com.microsoft.tfs.core.clients.workitem.project
Interface ProjectCollection

All Superinterfaces:
java.lang.Iterable<Project>

public interface ProjectCollection
extends java.lang.Iterable<Project>

A collection of Project objects.

Since:
TEE-SDK-10.1

Method Summary
 Project get(java.lang.String projectName)
          Gets a Project by name.
 Project getByID(int projectID)
          Gets a Project by ID.
 WorkItemClient getClient()
           
 Project[] getProjects()
           
 java.util.Iterator<Project> iterator()
           
 int size()
           
 

Method Detail

iterator

java.util.Iterator<Project> iterator()
Specified by:
iterator in interface java.lang.Iterable<Project>
Returns:
an iterator for this collection

size

int size()
Returns:
the number of Projects in the collection.

get

Project get(java.lang.String projectName)
Gets a Project by name.

Parameters:
projectName - the name of the Project to get (must not be null)
Returns:
the Project for the specified name

getByID

Project getByID(int projectID)
Gets a Project by ID.

Parameters:
projectID - the ID of the Project to get.
Returns:
the Project for the specified ID

getProjects

Project[] getProjects()
Returns:
an array of all Projects

getClient

WorkItemClient getClient()
Returns:
a reference to the WorkItemClient associated with this collection.


© 2015 Microsoft. All rights reserved.