1
package org.jboss.remoting.samples.transporter.complex;
3
import org.jboss.remoting.samples.transporter.complex.Doctor;
6
* @author <a href="mailto:telrod@e2technologies.net">Tom Elrod</a>
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;
21
public Patient(String firstName, String lastName)
23
this.firstName = firstName;
24
this.lastName = lastName;
27
public void setDoctor(Doctor doctor)
32
public String toString()
34
return "\nPatient:\n\tName: " + firstName + " " + lastName + "\n\tAilment - Type: " + ailmentType +
35
", Description: " + ailmentDescription + (doctor != null ? ("\n\tDoctor - Name: " + doctor.getFullName()) : "") + "\n";
38
public void setAilmentType(String ailmentType)
40
this.ailmentType = ailmentType;
43
public void setAilmentDescription(String ailmentDesc)
45
this.ailmentDescription = ailmentDesc;
48
public String getAilmentType()