/* * Created on Mar 18, 2005 * */ package net.sourceforge.fenixedu.dataTransferObject.inquiries; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; import net.sourceforge.fenixedu.dataTransferObject.InfoObject; import net.sourceforge.fenixedu.dataTransferObject.InfoTeacher; import net.sourceforge.fenixedu.domain.ShiftType; import net.sourceforge.fenixedu.domain.inquiries.InquiriesTeacher3; import org.apache.commons.lang.StringUtils; /** * @author Joćo Fialho & Rita Ferreira * */ public class InfoInquiriesTeacher3 extends InfoObject implements Comparable { private boolean answered = false; private Integer keyInquiriesCourse; private InfoInquiriesCourse3 inquiriesCourse; private Integer keyTeacher; private InfoTeacherOrNonAffiliatedTeacherWithRemainingClassTypes teacherOrNonAffiliatedTeacher; private InfoTeacher teacher; final private List classTypes = new ArrayList(); private Integer studentAssiduity; private Integer teacherAssiduity; private Double teacherPunctuality; private Integer teacherClarity; private Double teacherAssurance; private Integer teacherInterestStimulation; private Double teacherAvailability; private Double teacherReasoningStimulation; private Integer globalAppreciation; private Integer teacherDoubtEnlightnmentClarity; private Integer teacherStudentInterventionStimulation; private Integer teacherClassObjectivesIndication; private Integer teachingRythm; private Integer teacherBibliographySpecification; private Integer teacherStudentEvaluationExpectedClarification; private String improvementSuggestion; /** * @return Returns the classTypes. */ public List getClassTypes() { return classTypes; } /** * @return Returns the globalAppreciation. */ public Integer getGlobalAppreciation() { return globalAppreciation; } /** * @param globalAppreciation * The globalAppreciation to set. */ public void setGlobalAppreciation(Integer globalAppreciation) { this.globalAppreciation = globalAppreciation; } public Integer getTeacherGlobalAppreciation() { return this.getGlobalAppreciation(); } /** * @return Returns the inquiriesCourse. */ public InfoInquiriesCourse3 getInquiriesCourse3() { return inquiriesCourse; } /** * @param inquiriesCourse * The inquiriesCourse to set. */ public void setInquiriesCourse3(InfoInquiriesCourse3 inquiriesCourse) { this.inquiriesCourse = inquiriesCourse; } /** * @return Returns the keyInquiriesCourse. */ public Integer getKeyInquiriesCourse() { return keyInquiriesCourse; } /** * @param keyInquiriesCourse * The keyInquiriesCourse to set. */ public void setKeyInquiriesCourse(Integer keyInquiriesCourse) { this.keyInquiriesCourse = keyInquiriesCourse; } /** * @return Returns the keyTeacher. */ public Integer getKeyTeacher() { return keyTeacher; } /** * @param keyTeacher * The keyTeacher to set. */ public void setKeyTeacher(Integer keyTeacher) { this.keyTeacher = keyTeacher; } /** * @return Returns the studentAssiduity. */ public Integer getStudentAssiduity() { return studentAssiduity; } /** * @param studentAssiduity * The studentAssiduity to set. */ public void setStudentAssiduity(Integer studentAssiduity) { this.studentAssiduity = studentAssiduity; } /** * @return Returns the teacherOrNonAffiliatedTeacher. */ public InfoTeacherOrNonAffiliatedTeacherWithRemainingClassTypes getTeacherOrNonAffiliatedTeacher() { return teacherOrNonAffiliatedTeacher; } /** * @param teacherOrNonAffiliatedTeacher * The teacherOrNonAffiliatedTeacher to set. */ public void setTeacherOrNonAffiliatedTeacher( InfoTeacherOrNonAffiliatedTeacherWithRemainingClassTypes teacher) { this.teacherOrNonAffiliatedTeacher = teacher; } public InfoTeacher getTeacher() { return teacher; } public void setTeacher(InfoTeacher teacher) { this.teacher = teacher; } /** * @return Returns the teacherAssiduity. */ public Integer getTeacherAssiduity() { return teacherAssiduity; } /** * @param teacherAssiduity * The teacherAssiduity to set. */ public void setTeacherAssiduity(Integer teacherAssiduity) { this.teacherAssiduity = teacherAssiduity; } /** * @return Returns the teacherAssurance. */ public Double getTeacherAssurance() { return teacherAssurance; } /** * @param teacherAssurance * The teacherAssurance to set. */ public void setTeacherAssurance(Double teacherAssurance) { this.teacherAssurance = teacherAssurance; } /** * @return Returns the teacherAvailability. */ public Double getTeacherAvailability() { return teacherAvailability; } /** * @param teacherAvailability * The teacherAvailability to set. */ public void setTeacherAvailability(Double teacherAvailability) { this.teacherAvailability = teacherAvailability; } /** * @return Returns the teacherClarity. */ public Integer getTeacherClarity() { return teacherClarity; } /** * @param teacherClarity * The teacherClarity to set. */ public void setTeacherClarity(Integer teacherClarity) { this.teacherClarity = teacherClarity; } /** * @return Returns the teacherInterestStimulation. */ public Integer getTeacherInterestStimulation() { return teacherInterestStimulation; } /** * @param teacherInterestStimulation * The teacherInterestStimulation to set. */ public void setTeacherInterestStimulation(Integer teacherInterestStimulation) { this.teacherInterestStimulation = teacherInterestStimulation; } /** * @return Returns the teacherPunctuality. */ public Double getTeacherPunctuality() { return teacherPunctuality; } /** * @param teacherPunctuality * The teacherPunctuality to set. */ public void setTeacherPunctuality(Double teacherPunctuality) { this.teacherPunctuality = teacherPunctuality; } /** * @return Returns the teacherReasoningStimulation. */ public Double getTeacherReasoningStimulation() { return teacherReasoningStimulation; } /** * @param teacherReasoningStimulation * The teacherReasoningStimulation to set. */ public void setTeacherReasoningStimulation(Double teacherReasoningStimulation) { this.teacherReasoningStimulation = teacherReasoningStimulation; } public int compareTo(Object arg0) { return 0; } public static InfoInquiriesTeacher3 newInfoFromDomain(InquiriesTeacher3 inquiriesTeacher3, InfoInquiriesCourse3 infoInquiriesCourse3) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { InfoInquiriesTeacher3 newInfo = null; if (inquiriesTeacher3 != null) { newInfo = new InfoInquiriesTeacher3(); newInfo.copyFromDomain(inquiriesTeacher3, infoInquiriesCourse3); } return newInfo; } public void copyFromDomain(InquiriesTeacher3 inquiriesTeacher3, InfoInquiriesCourse3 infoInquiriesCourse3) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { if (inquiriesTeacher3 != null) { super.copyFromDomain(inquiriesTeacher3); setGlobalAppreciation(inquiriesTeacher3.getGlobalAppreciation()); setIdInternal(inquiriesTeacher3.getIdInternal()); setStudentAssiduity(inquiriesTeacher3.getStudentAssiduity()); setTeacherAssiduity(inquiriesTeacher3.getTeacherAssiduity()); // setTeacherAssurance(inquiriesTeacher3.getTeacherAssurance()); // setTeacherAvailability(inquiriesTeacher3.getTeacherAvailability()); setTeacherClarity(inquiriesTeacher3.getTeacherClarity()); setTeacherInterestStimulation(inquiriesTeacher3.getTeacherInterestStimulation()); // setTeacherPunctuality(inquiriesTeacher3.getTeacherPunctuality()); // setTeacherReasoningStimulation(inquiriesTeacher3 // .getTeacherReasoningStimulation()); this.setInquiriesCourse3(infoInquiriesCourse3); this.getClassTypes().add(inquiriesTeacher3.getShiftType()); this.setTeacher(InfoTeacher.newInfoFromDomain(inquiriesTeacher3.getTeacher())); setTeacherDoubtEnlightnmentClarity(inquiriesTeacher3.getTeacherDoubtEnlightnmentClarity()); setTeacherStudentInterventionStimulation(inquiriesTeacher3 .getTeacherStudentInterventionStimulation()); setTeacherClassObjectivesIndication(inquiriesTeacher3.getTeacherClassObjectivesIndication()); setTeachingRythm(inquiriesTeacher3.getTeachingRythm()); setTeacherBibliographySpecification(inquiriesTeacher3.getTeacherBibliographySpecification()); setTeacherStudentEvaluationExpectedClarification(inquiriesTeacher3 .getTeacherStudentEvaluationExpectedClarification()); setImprovementSuggestion(inquiriesTeacher3.getImprovmentPoint1()); setAnswered(inquiriesTeacher3.getAnswered() == null ? false : inquiriesTeacher3.getAnswered()); } } public String toString() { String result = "[INFOINQUIRIESTEACHER"; result += ", id=" + getIdInternal(); if (teacherOrNonAffiliatedTeacher != null) result += ", teacherOrNonAffiliatedTeacher=" + teacherOrNonAffiliatedTeacher.toString(); result += ", classTypes=" + classTypes; result += ", studentAssiduity=" + studentAssiduity; result += ", teacherAssiduity=" + teacherAssiduity; result += ", teacherPunctuality=" + teacherPunctuality; result += ", teacherClarity=" + teacherClarity; result += ", teacherAssurance=" + teacherAssurance; result += ", teacherInterestStimulation=" + teacherInterestStimulation; result += ", teacherAvailability=" + teacherAvailability; result += ", teacherReasoningStimulation=" + teacherReasoningStimulation; result += ", teacherDoubtEnlightnmentClarity=" + teacherDoubtEnlightnmentClarity; result += ", teacherStudentInterventionStimulation=" + teacherStudentInterventionStimulation; result += ", teacherClassObjectivesIndication=" + teacherClassObjectivesIndication; result += ", teachingRythm=" + teachingRythm; result += ", teacherBibliographySpecification=" + teacherBibliographySpecification; result += ", teacherStudentEvaluationExpectedClarification=" + teacherStudentEvaluationExpectedClarification; result += ", globalAppreciation=" + globalAppreciation; result += "]\n"; return result; } public boolean hasClassType(String classType) { return classTypes.contains(ShiftType.valueOf(classType)); } public Integer getTeacherBibliographySpecification() { return teacherBibliographySpecification; } public void setTeacherBibliographySpecification(Integer teacherBibliographySpecification) { this.teacherBibliographySpecification = teacherBibliographySpecification; } public Integer getTeacherClassObjectivesIndication() { return teacherClassObjectivesIndication; } public void setTeacherClassObjectivesIndication(Integer teacherClassObjectivesIndication) { this.teacherClassObjectivesIndication = teacherClassObjectivesIndication; } public Integer getTeacherDoubtEnlightnmentClarity() { return teacherDoubtEnlightnmentClarity; } public void setTeacherDoubtEnlightnmentClarity(Integer teacherDoubtEnlightnmentClarity) { this.teacherDoubtEnlightnmentClarity = teacherDoubtEnlightnmentClarity; } public Integer getTeacherStudentEvaluationExpectedClarification() { return teacherStudentEvaluationExpectedClarification; } public void setTeacherStudentEvaluationExpectedClarification( Integer teacherStudentEvaluationExpectedClarification) { this.teacherStudentEvaluationExpectedClarification = teacherStudentEvaluationExpectedClarification; } public Integer getTeacherStudentInterventionStimulation() { return teacherStudentInterventionStimulation; } public void setTeacherStudentInterventionStimulation(Integer teacherStudentInterventionStimulation) { this.teacherStudentInterventionStimulation = teacherStudentInterventionStimulation; } public Integer getTeachingRythm() { return teachingRythm; } public void setTeachingRythm(Integer teachingRythm) { this.teachingRythm = teachingRythm; } public String getImprovementSuggestion() { return improvementSuggestion == null ? StringUtils.EMPTY : improvementSuggestion; } public void setImprovementSuggestion(String improvementSuggestion) { this.improvementSuggestion = improvementSuggestion; } public boolean isAnswered() { return answered; } public void setAnswered(boolean answered) { this.answered = answered; } }