summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/se/projektthemenvergabe/model/Ansprechpartner.java
blob: a57dac28953ec407569eee1dfd637582464d959e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package de.fhswf.in.inf.se.projektthemenvergabe.model;

public class Ansprechpartner
{
   private String vorname;

   private String nachname;

   private Organisation organisation;

   public String getVorname()
   {
      return this.vorname;
   }

   public void setVorname(String vorname)
   {
      this.vorname = vorname;
   }

   public String getNachname()
   {
      return this.nachname;
   }

   public void setNachname(String nachname)
   {
      this.nachname = nachname;
   }

   public Ansprechpartner(Organisation organisation)
   {
      if (organisation == null)
      {
         throw new IllegalArgumentException(
               "Ansprechpartner sollten nicht arbeitslos sein.");
      }
      this.organisation = organisation;
      this.organisation.addAnsprechpartner(this);
   }

   public Organisation getOrganisation()
   {
      return this.organisation;
   }
}