~ubuntu-branches/ubuntu/raring/libjboss-remoting-java/raring

« back to all changes in this revision

Viewing changes to src/main/org/jboss/remoting/samples/transporter/complex/Patient.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-09 14:01:03 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: package-import@ubuntu.com-20110909140103-o8ucrolqt5g25k57
Tags: upstream-2.5.3.SP1
ImportĀ upstreamĀ versionĀ 2.5.3.SP1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.jboss.remoting.samples.transporter.complex;
 
2
 
 
3
import org.jboss.remoting.samples.transporter.complex.Doctor;
 
4
 
 
5
/**
 
6
 * @author <a href="mailto:telrod@e2technologies.net">Tom Elrod</a>
 
7
 */
 
8
public class Patient
 
9
{
 
10
   private String firstName = null;
 
11
   private String lastName = null;
 
12
   private Doctor doctor = null;
 
13
   private String ailmentType = null;
 
14
   private String ailmentDescription = null;
 
15
 
 
16
   private Patient()
 
17
   {
 
18
 
 
19
   }
 
20
 
 
21
   public Patient(String firstName, String lastName)
 
22
   {
 
23
      this.firstName = firstName;
 
24
      this.lastName = lastName;
 
25
   }
 
26
 
 
27
   public void setDoctor(Doctor doctor)
 
28
   {
 
29
      this.doctor = doctor;
 
30
   }
 
31
 
 
32
   public String toString()
 
33
   {
 
34
      return "\nPatient:\n\tName: " + firstName + " " + lastName + "\n\tAilment - Type: " + ailmentType +
 
35
             ", Description: " + ailmentDescription + (doctor != null ? ("\n\tDoctor - Name: " + doctor.getFullName()) : "") + "\n";
 
36
   }
 
37
 
 
38
   public void setAilmentType(String ailmentType)
 
39
   {
 
40
      this.ailmentType = ailmentType;
 
41
   }
 
42
 
 
43
   public void setAilmentDescription(String ailmentDesc)
 
44
   {
 
45
      this.ailmentDescription = ailmentDesc;
 
46
   }
 
47
 
 
48
   public String getAilmentType()
 
49
   {
 
50
      return ailmentType;
 
51
   }
 
52
}