net.sf.ant4eclipse.model.projectset
Class TeamProjectSet

java.lang.Object
  extended by net.sf.ant4eclipse.model.projectset.TeamProjectSet

public class TeamProjectSet
extends java.lang.Object

Encapsultes a set of team project descriptions. A TeamProjectSet is used to share a set of projects within a team. The TeamProjectSet is read form an eclipse .psf-file.


Constructor Summary
TeamProjectSet(java.lang.String name)
          Creates a new instance of type TeamProjectSet.
 
Method Summary
 java.lang.String getName()
          Returns the name of the TeamProjectSet.
 java.lang.String[] getProjectNames()
          Returns a list of project names.
 TeamProjectDescription getTeamProjectDescriptionByName(java.lang.String name)
          Returns a TeamProjectDescription by the given name.
 TeamProjectDescription getTeamProjectDescriptionByRepositoryName(java.lang.String name)
          Returns a TeamProjectDescription by the given repository name.
 TeamProjectDescription[] getTeamProjectDescriptions()
          Returns the TeamProjectDescriptions.
 void setCvsUserAndPassword(java.lang.String cvsUser, java.lang.String cvsPwd)
          Sets the cvs user and password for each contained TeamProjectDescription.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TeamProjectSet

public TeamProjectSet(java.lang.String name)
Creates a new instance of type TeamProjectSet.

Parameters:
name - the name of the team project set.
Method Detail

getName

public java.lang.String getName()
Returns the name of the TeamProjectSet.

Returns:
Returns the name of the TeamProjectSet.

getTeamProjectDescriptions

public TeamProjectDescription[] getTeamProjectDescriptions()
Returns the TeamProjectDescriptions.

Returns:
Returns the TeamProjectDescriptions.

getTeamProjectDescriptionByName

public TeamProjectDescription getTeamProjectDescriptionByName(java.lang.String name)
Returns a TeamProjectDescription by the given name.

Parameters:
name - the name of the TeamProjectDescription to return.
Returns:
Returns a TeamProjectDescription by the given name.

getTeamProjectDescriptionByRepositoryName

public TeamProjectDescription getTeamProjectDescriptionByRepositoryName(java.lang.String name)
Returns a TeamProjectDescription by the given repository name.

Parameters:
name - the repository name of the TeamProjectDescription to return.
Returns:
Returns a TeamProjectDescription by the given repository name.

getProjectNames

public java.lang.String[] getProjectNames()
Returns a list of project names.

Returns:
A list of project names.

setCvsUserAndPassword

public void setCvsUserAndPassword(java.lang.String cvsUser,
                                  java.lang.String cvsPwd)
Sets the cvs user and password for each contained TeamProjectDescription.

Parameters:
cvsUser - the cvs user.
cvsPwd - the cvs password might be null

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object