Skip to content
Snippets Groups Projects
Commit acf00647 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Initial commit.

parents
No related branches found
No related tags found
No related merge requests found
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>edu.unl.cse.soft160.project_plan</groupId>
<artifactId>project_plan</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>project_plan</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
package edu.unl.cse.soft160.project_plan;
public class Team {
private String teamName;
private String teamLeadName;
private String teamLeadEmail;
private String codingLeadName;
private String codingLeadEmail;
private String userExperienceLeadName;
private String userExperienceLeadEmail;
private String verificationLeadName;
private String verificationLeadEmail;
public Team(String teamName, String teamLeadName, String teamLeadEmail, String codingLeadName,
String codingLeadEmail, String userExperienceLeadName, String userExperienceLeadEmail,
String verificationLeadName, String verificationLeadEmail) {
this.teamName = teamName;
this.teamLeadName = teamLeadName;
this.teamLeadEmail = teamLeadEmail;
this.codingLeadName = codingLeadName;
this.codingLeadEmail = codingLeadEmail;
this.userExperienceLeadName = userExperienceLeadName;
this.userExperienceLeadEmail = userExperienceLeadEmail;
this.verificationLeadName = verificationLeadName;
this.verificationLeadEmail = verificationLeadEmail;
}
public String getEmail(String name) {
if (name.equals(teamLeadName)) {
return teamLeadEmail;
}
if (name.equals(codingLeadName)) {
return codingLeadEmail;
}
if (name.equals(userExperienceLeadName)) {
return userExperienceLeadEmail;
}
if (name.equals(verificationLeadName)) {
return verificationLeadEmail;
}
throw new IllegalArgumentException("Unable to find corresponding email address in \"" + this
+ "\" because no team member has the name \"" + name + "\".");
}
public String toString() {
return teamName;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment