IT-144 Project 2
import java.text.SimpleDateFormat; public class RescueAnimal { // Class variables private String name; private String type; protected String gender; protected int age; protected float weight; private SimpleDateFormat acquisitionDate; private SimpleDateFormat statusDate; private String acquisitionSource; protected Boolean reserved; protected String trainingLocation; private SimpleDateFormat trainingStart; private SimpleDateFormat trainingEnd; private String trainingStatus; protected String inServiceCountry; protected String inServiceCity; protected String inServiceAgency; protected String inServicePOC; protected String inServiceEmail; protected String inServicePhone; protected String inServicePostalAddress; // Constructor public RescueAnimal() { } // Add Accessor Methods here public String getName() { return name; } public String getType() { return type; } public String getGender() { return gender; } public int getAge() { return age; } public float getWeight() { return weight; } public SimpleDateFormat getAcquisitionDate() { return acquisitionDate; } public SimpleDateFormat getStatusDate() { return statusDate; } public String getAcquisitionSource() { return acquisitionSource; } public Boolean getReserved() { return reserved; } public String getTrainingLocation() { return trainingLocation; } public SimpleDateFormat getTrainingStart() { return trainingStart; } public SimpleDateFormat getTrainingEnd() { return trainingEnd; } public String getTrainingStatus() { return trainingStatus; } public String getInServiceCountry() { return inServiceCountry; } public String getInServiceCity() { return inServiceCity; } public String getInServiceAgency() { return inServiceAgency; } public String getInServicePOC() { return inServicePOC; } public String getInServiceEmail() { return inServiceEmail; } public String getInServicePhone() { return inServicePhone; } public String getInServicePostalAddress() { return inServicePostalAddress; } // Add Mutator Methods here public void setName(String name) { this.name = name; } public void setType(String type) { this.type = type; } public void setGender(String gender) { this.gender = gender; } public void setAge(int age) { this.age = age; } public void setWeight(float weight) { this.weight = weight; } public void setAcquisitionDate(SimpleDateFormat acquisitionDate) { this.acquisitionDate = acquisitionDate; } public void setStatusDate(SimpleDateFormat statusDate) { this.statusDate = statusDate; } public void setAcquisitionSource(String acquisitionSource) { this.acquisitionSource = acquisitionSource; } public void setReserved(Boolean reserved) { this.reserved = reserved; } public void setTrainingLocation(String trainingLocation) { this.trainingLocation = trainingLocation; } public void setTrainingStart(SimpleDateFormat trainingStart) { this.trainingStart = trainingStart; } public void setTrainingEnd(SimpleDateFormat trainingEnd) { this.trainingEnd = trainingEnd; } public void setTrainingStatus(String trainingStatus) { this.trainingStatus = trainingStatus; } public void setInServiceCountry(String inServiceCountry) { this.inServiceCountry = inServiceCountry; } public void setInServiceCity(String inServiceCity) { this.inServiceCity = inServiceCity; } public void setInServiceAgency(String inServiceAgency) { this.inServiceAgency = inServiceAgency; } public void setInServicePOC(String inServicePOC) { this.inServicePOC = inServicePOC; } public void setInServiceEmail(String inServiceEmail) { this.inServiceEmail = inServiceEmail; } public void setInServicePhone(String inServicePhone) { this.inServicePhone = inServicePhone; } public void setInServicePostalAddress(String inServicePostalAddress) { this.inServicePostalAddress = inServicePostalAddress; } }