/* * 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.InfoExecutionCourse; import net.sourceforge.fenixedu.dataTransferObject.InfoExecutionDegree; import net.sourceforge.fenixedu.dataTransferObject.InfoObject; import net.sourceforge.fenixedu.domain.inquiries.InquiriesCourse3; import net.sourceforge.fenixedu.domain.inquiries.InquiriesTeacher3; import org.apache.commons.lang.StringUtils; /** * @author Joćo Fialho & Rita Ferreira * */ public class InfoInquiriesCourse3 extends InfoObject implements Comparable { private boolean answered = false; private Integer keyExecutionCourse; private InfoExecutionCourse executionCourse; private Integer keyExecutionDegree; private InfoExecutionDegree executionDegree; private Integer studentFirstEnrollment; private Double onlineInfo; private Double classCoordination; private Double studyElementsContribution; private Double previousKnowledgeArticulation; private Double contributionForGraduation; private Double evaluationMethodAdequation; private Integer weeklySpentHours; private Integer globalAppreciation; private Integer courseWareStructuring; private Integer otherCoursesArticulation; private Integer programLoadVsClassTimeAdequation; private Integer fieldWorkKnowledgeApplication; private Integer numEnrollments; private Integer ownAssiduity; private Integer ownDiscussionParticipation; private Integer ownRecommendedReading; private Integer ownBibliographySearching; private Integer ownSchemasAndReportsCreation; private Integer ownSubjectIdentificationForFurtherExploration; private Integer ownTeachersDoubtEnlightnment; private String positivePointOne; private String positivePointTwo; private String positivePointThree; private String improvmentPointOne; private String improvmentPointTwo; private String improvmentPointThree; private Integer knowledgeIncrease; private Integer globalInterestLevel; private List infoInquiriesTeachers3 = new ArrayList(); public Double getOnlineInfo() { return onlineInfo; } public void setOnlineInfo(Double onlineInfo) { this.onlineInfo = onlineInfo; } /** * @return Returns the classCoordination. */ public Double getClassCoordination() { return classCoordination; } /** * @param classCoordination * The classCoordination to set. */ public void setClassCoordination(Double classCoordination) { this.classCoordination = classCoordination; } /** * @return Returns the contributionForGraduation. */ public Double getContributionForGraduation() { return contributionForGraduation; } /** * @param contributionForGraduation * The contributionForGraduation to set. */ public void setContributionForGraduation(Double contributionForGraduation) { this.contributionForGraduation = contributionForGraduation; } /** * @return Returns the evaluationMethodAdequation. */ public Double getEvaluationMethodAdequation() { return evaluationMethodAdequation; } /** * @param evaluationMethodAdequation * The evaluationMethodAdequation to set. */ public void setEvaluationMethodAdequation(Double evaluationMethodAdequation) { this.evaluationMethodAdequation = evaluationMethodAdequation; } /** * @return Returns the executionCourse. */ public InfoExecutionCourse getExecutionCourse() { return executionCourse; } /** * @param executionCourse * The executionCourse to set. */ public void setExecutionCourse(InfoExecutionCourse executionCourse) { this.executionCourse = executionCourse; } /** * @return Returns the executionDegreeCourse. */ public InfoExecutionDegree getExecutionDegree() { return executionDegree; } /** * @param executionDegreeCourse * The executionDegreeCourse to set. */ public void setExecutionDegree(InfoExecutionDegree executionDegree) { this.executionDegree = executionDegree; } /** * @return Returns the globalAppreciation. */ public Integer getGlobalAppreciation() { return globalAppreciation; } /** * @param globalAppreciation * The globalAppreciation to set. */ public void setGlobalAppreciation(Integer globalAppreciation) { this.globalAppreciation = globalAppreciation; } /** * @return Returns the keyExecutionCourse. */ public Integer getKeyExecutionCourse() { return keyExecutionCourse; } /** * @param keyExecutionCourse * The keyExecutionCourse to set. */ public void setKeyExecutionCourse(Integer keyExecutionCourse) { this.keyExecutionCourse = keyExecutionCourse; } /** * @return Returns the keyExecutionDegreeCourse. */ public Integer getKeyExecutionDegree() { return keyExecutionDegree; } /** * @param keyExecutionDegreeCourse * The keyExecutionDegreeCourse to set. */ public void setKeyExecutionDegree(Integer keyExecutionDegree) { this.keyExecutionDegree = keyExecutionDegree; } /** * @return Returns the previousKnowledgeArticulation. */ public Double getPreviousKnowledgeArticulation() { return previousKnowledgeArticulation; } /** * @param previousKnowledgeArticulation * The previousKnowledgeArticulation to set. */ public void setPreviousKnowledgeArticulation(Double previousKnowledgeArticulation) { this.previousKnowledgeArticulation = previousKnowledgeArticulation; } /** * @return Returns the studentFirstEnrollment. */ public Integer getStudentFirstEnrollment() { return studentFirstEnrollment; } /** * @param studentFirstEnrollment * The studentFirstEnrollment to set. */ public void setStudentFirstEnrollment(Integer studentFirstEnrollment) { this.studentFirstEnrollment = studentFirstEnrollment; } /** * @return Returns the studyElementsContribution. */ public Double getStudyElementsContribution() { return studyElementsContribution; } /** * @param studyElementsContribution * The studyElementsContribution to set. */ public void setStudyElementsContribution(Double studyElementsContribution) { this.studyElementsContribution = studyElementsContribution; } /** * @return Returns the weeklySpentHours. */ public Integer getWeeklySpentHours() { return weeklySpentHours; } /** * @param weeklySpentHours * The weeklySpentHours to set. */ public void setWeeklySpentHours(Integer weeklySpentHours) { this.weeklySpentHours = weeklySpentHours; } public int compareTo(Object arg0) { return 0; } public static InfoInquiriesCourse3 newInfoFromDomain(InquiriesCourse3 inquiriesCourse3) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { InfoInquiriesCourse3 newInfo = null; if (inquiriesCourse3 != null) { newInfo = new InfoInquiriesCourse3(); newInfo.copyFromDomain(inquiriesCourse3); } return newInfo; } public void copyFromDomain(InquiriesCourse3 inquiriesCourse3) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { if (inquiriesCourse3 != null) { super.copyFromDomain(inquiriesCourse3); this.setOnlineInfo(inquiriesCourse3.getOnlineInfo()); this.setClassCoordination(inquiriesCourse3.getClassCoordination()); this.setContributionForGraduation(inquiriesCourse3.getContributionForGraduation()); this.setEvaluationMethodAdequation(inquiriesCourse3.getEvaluationMethodAdequation()); this.setGlobalAppreciation(inquiriesCourse3.getGlobalAppreciation()!=null?inquiriesCourse3.getGlobalAppreciation().intValue():null); this.setPreviousKnowledgeArticulation(inquiriesCourse3.getPreviousKnowledgeArticulation()); this.setStudentFirstEnrollment(inquiriesCourse3.getStudentFirstEnrollment()); this.setStudyElementsContribution(inquiriesCourse3.getStudyElementsContribution()); this.setWeeklySpentHours(inquiriesCourse3.getWeeklySpentHours()); this.setExecutionCourse(InfoExecutionCourse.newInfoFromDomain(inquiriesCourse3 .getExecutionCourse())); this.setExecutionDegree(InfoExecutionDegree.newInfoFromDomain(inquiriesCourse3 .getExecutionDegree())); this.setCourseWareStructuring(inquiriesCourse3.getCourseWareStructuring()); this.setOtherCoursesArticulation(inquiriesCourse3.getOtherCoursesArticulation()); this.setProgramLoadVsClassTimeAdequation(inquiriesCourse3 .getProgramLoadVsClassTimeAdequation()); this.setFieldWorkKnowledgeApplication(inquiriesCourse3.getFieldWorkKnowledgeApplication()); this.setNumEnrollments(inquiriesCourse3.getNumEnrollments()); this.setOwnAssiduity(inquiriesCourse3.getOwnAssiduity()); this.setOwnDiscussionParticipation(inquiriesCourse3.getOwnDiscussionParticipation()); this.setOwnRecommendedReading(inquiriesCourse3.getOwnRecommendedReading()); this.setOwnBibliographySearching(inquiriesCourse3.getOwnBibliographySearching()); this.setOwnSchemasAndReportsCreation(inquiriesCourse3.getOwnSchemasAndReportsCreation()); this.setOwnSubjectIdentificationForFurtherExploration(inquiriesCourse3 .getOwnSubjectIdentificationForFurtherExploration()); this.setOwnTeachersDoubtEnlightnment(inquiriesCourse3.getOwnTeachersDoubtEnlightnment()); this.setPositivePointOne(inquiriesCourse3.getPositivePointOne()); this.setPositivePointTwo(inquiriesCourse3.getPositivePointTwo()); this.setPositivePointThree(inquiriesCourse3.getPositivePointThree()); this.setImprovmentPointOne(inquiriesCourse3.getImprovmentPointOne()); this.setImprovmentPointTwo(inquiriesCourse3.getImprovmentPointTwo()); this.setImprovmentPointThree(inquiriesCourse3.getImprovmentPointThree()); this.setKnowledgeIncrease(inquiriesCourse3.getKnowledgeIncrease()); this.setGlobalInterestLevel(inquiriesCourse3.getGlobalInterestLevel()); for (InquiriesTeacher3 inquiriesTeacher3 : inquiriesCourse3.getAssociatedInquiriesTeachers3()) { InfoInquiriesTeacher3 infoInquiriesTeacher3 = InfoInquiriesTeacher3.newInfoFromDomain( inquiriesTeacher3, this); addInfoInquiriesTeacher3(infoInquiriesTeacher3); } this.setAnswered(inquiriesCourse3.getAnswered() == null ? false : inquiriesCourse3 .getAnswered()); } } public String toString() { String result = "[INFOINQUIRIESCOURSE"; result += ", id=" + getIdInternal(); if (executionCourse != null) result += ", executionCourse=" + executionCourse.toString(); if (executionDegree != null) result += ", executionDegree=" + executionDegree.toString(); result += ", studentFirstEnrollment=" + studentFirstEnrollment; result += ", onlineInfo=" + onlineInfo; result += ", classCoordination=" + classCoordination; result += ", studyElementsContribution=" + studyElementsContribution; result += ", previousKnowledgeArticulation=" + previousKnowledgeArticulation; result += ", contributionForGraduation=" + contributionForGraduation; result += ", evaluationMethodAdequation=" + evaluationMethodAdequation; result += ", weeklySpentHours=" + weeklySpentHours; result += ", globalAppreciation=" + globalAppreciation; result += ", courseWareStructuring=" + courseWareStructuring; result += ", otherCoursesArticulation=" + otherCoursesArticulation; result += ", programLoadVsClassTimeAdequation=" + programLoadVsClassTimeAdequation; result += ", fieldWorkKnowledgeApplication=" + fieldWorkKnowledgeApplication; result += ", numEnrollments=" + numEnrollments; result += ", ownAssiduity=" + ownAssiduity; result += ", ownDiscussionParticipation=" + ownDiscussionParticipation; result += ", ownRecommendedReading=" + ownRecommendedReading; result += ", ownBibliographySearching=" + ownBibliographySearching; result += ", ownSchemasAndReportsCreation=" + ownSchemasAndReportsCreation; result += ", ownSubjectIdentificationForFurtherExploration=" + ownSubjectIdentificationForFurtherExploration; result += ", ownTeachersDoubtEnlightnment=" + ownTeachersDoubtEnlightnment; result += ", positivePointOne=" + positivePointOne; result += ", positivePointTwo=" + positivePointTwo; result += ", positivePointThree=" + positivePointThree; result += ", improvmentPointOne=" + improvmentPointOne; result += ", improvmentPointTwo=" + improvmentPointTwo; result += ", improvmentPointThree=" + improvmentPointThree; result += ", knowledgeIncrease=" + knowledgeIncrease; result += ", globalInterestLevel=" + globalInterestLevel; result += "]\n"; return result; } public Integer getCourseWareStructuring() { return courseWareStructuring; } public void setCourseWareStructuring(Integer courseWareStructuring) { this.courseWareStructuring = courseWareStructuring; } public Integer getFieldWorkKnowledgeApplication() { return fieldWorkKnowledgeApplication; } public void setFieldWorkKnowledgeApplication(Integer fieldWorkKnowledgeApplication) { this.fieldWorkKnowledgeApplication = fieldWorkKnowledgeApplication; } public String getImprovmentPointOne() { return improvmentPointOne == null ? StringUtils.EMPTY : improvmentPointOne; } public void setImprovmentPointOne(String improvmentPointOne) { this.improvmentPointOne = improvmentPointOne; } public String getImprovmentPointThree() { return improvmentPointThree == null ? StringUtils.EMPTY : improvmentPointThree; } public void setImprovmentPointThree(String improvmentPointThree) { this.improvmentPointThree = improvmentPointThree; } public String getImprovmentPointTwo() { return improvmentPointTwo == null ? StringUtils.EMPTY : improvmentPointTwo; } public void setImprovmentPointTwo(String improvmentPointTwo) { this.improvmentPointTwo = improvmentPointTwo; } public Integer getNumEnrollments() { return numEnrollments; } public void setNumEnrollments(Integer numEnrollments) { this.numEnrollments = numEnrollments; } public Integer getOtherCoursesArticulation() { return otherCoursesArticulation; } public void setOtherCoursesArticulation(Integer otherCoursesArticulation) { this.otherCoursesArticulation = otherCoursesArticulation; } public Integer getOwnAssiduity() { return ownAssiduity; } public void setOwnAssiduity(Integer ownAssiduity) { this.ownAssiduity = ownAssiduity; } public Integer getOwnBibliographySearching() { return ownBibliographySearching; } public void setOwnBibliographySearching(Integer ownBibliographySearching) { this.ownBibliographySearching = ownBibliographySearching; } public Integer getOwnDiscussionParticipation() { return ownDiscussionParticipation; } public void setOwnDiscussionParticipation(Integer ownDiscussionParticipation) { this.ownDiscussionParticipation = ownDiscussionParticipation; } public Integer getOwnRecommendedReading() { return ownRecommendedReading; } public void setOwnRecommendedReading(Integer ownRecommendedReading) { this.ownRecommendedReading = ownRecommendedReading; } public Integer getOwnSchemasAndReportsCreation() { return ownSchemasAndReportsCreation; } public void setOwnSchemasAndReportsCreation(Integer ownSchemasAndReportsCreation) { this.ownSchemasAndReportsCreation = ownSchemasAndReportsCreation; } public Integer getOwnSubjectIdentificationForFurtherExploration() { return ownSubjectIdentificationForFurtherExploration; } public void setOwnSubjectIdentificationForFurtherExploration( Integer ownSubjectIdentificationForFurtherExploration) { this.ownSubjectIdentificationForFurtherExploration = ownSubjectIdentificationForFurtherExploration; } public Integer getOwnTeachersDoubtEnlightnment() { return ownTeachersDoubtEnlightnment; } public void setOwnTeachersDoubtEnlightnment(Integer ownTeachersDoubtEnlightnment) { this.ownTeachersDoubtEnlightnment = ownTeachersDoubtEnlightnment; } public String getPositivePointOne() { return positivePointOne == null ? StringUtils.EMPTY : positivePointOne; } public void setPositivePointOne(String positivePointOne) { this.positivePointOne = positivePointOne; } public String getPositivePointThree() { return positivePointThree == null ? StringUtils.EMPTY : positivePointThree; } public void setPositivePointThree(String positivePointThree) { this.positivePointThree = positivePointThree; } public String getPositivePointTwo() { return positivePointTwo == null ? StringUtils.EMPTY : positivePointTwo; } public void setPositivePointTwo(String positivePointTwo) { this.positivePointTwo = positivePointTwo; } public Integer getProgramLoadVsClassTimeAdequation() { return programLoadVsClassTimeAdequation; } public void setProgramLoadVsClassTimeAdequation(Integer programLoadVsClassTimeAdequation) { this.programLoadVsClassTimeAdequation = programLoadVsClassTimeAdequation; } public Integer getGlobalInterestLevel() { return globalInterestLevel; } public void setGlobalInterestLevel(Integer globalInterestLevel) { this.globalInterestLevel = globalInterestLevel; } public Integer getKnowledgeIncrease() { return knowledgeIncrease; } public void setKnowledgeIncrease(Integer knowledgeIncrease) { this.knowledgeIncrease = knowledgeIncrease; } public void addInfoInquiriesTeacher3(InfoInquiriesTeacher3 infoInquiriesTeacher3) { infoInquiriesTeachers3.add(infoInquiriesTeacher3); } public List getInfoInquiriesTeachers3() { return infoInquiriesTeachers3; } public boolean isAnswered() { return answered; } public void setAnswered(boolean answered) { this.answered = answered; } }