package net.sourceforge.fenixedu.dataTransferObject.inquiries; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.ResourceBundle; import net.sourceforge.fenixedu.dataTransferObject.InfoClass; import net.sourceforge.fenixedu.dataTransferObject.InfoExecutionDegree; import net.sourceforge.fenixedu.dataTransferObject.InfoExecutionPeriod; import net.sourceforge.fenixedu.dataTransferObject.InfoObject; import net.sourceforge.fenixedu.domain.District; import net.sourceforge.fenixedu.domain.RootDomainObject; import net.sourceforge.fenixedu.domain.candidacy.degree.DayPeriodType; import net.sourceforge.fenixedu.domain.inquiries.InquiriesCourse3; import net.sourceforge.fenixedu.domain.inquiries.InquiriesDemographicalAndAcademical3; import net.sourceforge.fenixedu.domain.person.Gender; import net.sourceforge.fenixedu.util.LanguageUtils; import org.apache.commons.beanutils.BeanComparator; import org.apache.commons.lang.StringUtils; import org.apache.struts.util.LabelValueBean; import org.apache.struts.validator.LazyValidatorForm; public class InfoInquiriesDemographicalAndAcademical3 extends InfoObject implements Comparable { private Integer keyExecutionPeriod; private InfoExecutionPeriod executionPeriod; private Integer keyExecutionDegree; private InfoExecutionDegree executionDegree; private Integer keyStudentSchoolClass; private InfoClass studentSchoolClass; private Integer studentCurricularYear; private Integer age; private Gender gender; private String district; private DayPeriodType dayPeriodType; private Integer classRooms; private Integer informaticLabs; private Integer studyRooms; private Integer labs; private Integer laisure; private Integer bathrooms; private Integer bibliography; private Integer foreignLanguage; private Integer softwareAndHardware; private Integer fotocopyMachines; private Integer multimediaMaterial; private Boolean classRoomsInsufficient; private Boolean informaticLabsInsufficient; private Boolean studyRoomsInsufficient; private Boolean labsInsufficient; private Boolean laisureInsufficient; private Boolean bathroomsInsufficient; private Boolean bibliographyInsufficient; private Boolean foreignLanguageInsufficient; private Boolean softwareAndHardwareInsufficient; private Boolean fotocopyMachinesInsufficient; private Boolean multimediaMaterialInsufficient; private Integer biblio; private Integer informaticsSupport; private Integer administrativeOffice; private Integer tesourary; private Integer languagesCenter; private Integer mobilityOffice; private Integer degreeAdminOffice; private Integer researchCenters; private Integer bookShop; private Integer fotocopyServices; private Integer studentAssociation; private Integer auxiliarAndSecurityPersonnel; private Integer schedule; private Integer yearCouncil; private Integer degreePedagogicalComitee; private Integer pedagogicalCouncil; private Integer degreeGlobalSatisfaction; private Integer universityGlobalSatisfaction; private Integer universityComparedToOthers; private Integer isWorkingStudent; private Integer reprovedAnyCourse; private Integer numReprovedCourses; private Integer reprovedAnyYear; private Integer numReprovedYears; private Integer ingressUniversityFirstChoice; private Integer ingressDegreeFirstChoice; private Integer isDislocated; private Integer hasSocialServicesScholarship; private Integer degreeTheoreticalKnowledge; private Integer degreePracticalKnowledge; private Integer degreeWorkMarketIntegration; private String degreePositivePoint1; private String degreeImprovmentPoint1; private List infoInquiriesCourses3 = new ArrayList(); public InfoInquiriesDemographicalAndAcademical3() { super(); } public static InfoInquiriesDemographicalAndAcademical3 newInfoFromForm(LazyValidatorForm inquiryForm) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { InfoInquiriesDemographicalAndAcademical3 infoInquiriy3 = InfoInquiriesDemographicalAndAcademical3 .newInfoFromDomain(RootDomainObject.getInstance().readInquiriesDemographicalAndAcademical3ByOID( (Integer) inquiryForm.get("inquiryID"))); infoInquiriy3.setStudentSchoolClass(InfoClass.newInfoFromDomain(RootDomainObject.getInstance().readSchoolClassByOID( Integer.valueOf((String) inquiryForm.get("studentSchoolClassIdAsString"))))); infoInquiriy3.setDistrict((String) inquiryForm.get("district")); infoInquiriy3.setStudentCurricularYear((Integer) inquiryForm.get("studentCurricularYear")); String dayPeriodType = (String) inquiryForm.get("dayPeriodType"); infoInquiriy3.setDayPeriodType(StringUtils.isEmpty(dayPeriodType) ? null : DayPeriodType.valueOf(dayPeriodType)); infoInquiriy3.setIsWorkingStudent((Integer) inquiryForm.get("isWorkingStudent")); infoInquiriy3.setReprovedAnyCourse((Integer) inquiryForm.get("reprovedAnyCourse")); infoInquiriy3.setNumReprovedCourses((Integer) inquiryForm.get("numReprovedCourses")); infoInquiriy3.setReprovedAnyYear((Integer) inquiryForm.get("reprovedAnyYear")); infoInquiriy3.setNumReprovedYears((Integer) inquiryForm.get("numReprovedYears")); infoInquiriy3.setIngressUniversityFirstChoice((Integer) inquiryForm.get("ingressUniversityFirstChoice")); infoInquiriy3.setIngressDegreeFirstChoice((Integer) inquiryForm.get("ingressDegreeFirstChoice")); infoInquiriy3.setIsDislocated((Integer) inquiryForm.get("isDislocated")); infoInquiriy3.setHasSocialServicesScholarship((Integer) inquiryForm.get("hasSocialServicesScholarship")); infoInquiriy3.setClassRooms((Integer) inquiryForm.get("classRooms")); infoInquiriy3.setInformaticLabs((Integer) inquiryForm.get("informaticLabs")); infoInquiriy3.setStudyRooms((Integer) inquiryForm.get("studyRooms")); infoInquiriy3.setLabs((Integer) inquiryForm.get("labs")); infoInquiriy3.setLaisure((Integer) inquiryForm.get("laisure")); infoInquiriy3.setBathrooms((Integer) inquiryForm.get("bathrooms")); infoInquiriy3.setBiblio((Integer) inquiryForm.get("biblio")); infoInquiriy3.setBibliography((Integer) inquiryForm.get("bibliography")); infoInquiriy3.setForeignLanguage((Integer) inquiryForm.get("foreignLanguage")); infoInquiriy3.setSoftwareAndHardware((Integer) inquiryForm.get("softwareAndHardware")); infoInquiriy3.setFotocopyMachines((Integer) inquiryForm.get("fotocopyMachines")); infoInquiriy3.setMultimediaMaterial((Integer) inquiryForm.get("multimediaMaterial")); infoInquiriy3.setClassRoomsInsufficient((Boolean) inquiryForm.get("classRoomsInsufficient")); infoInquiriy3.setInformaticLabsInsufficient((Boolean) inquiryForm.get("informaticLabsInsufficient")); infoInquiriy3.setStudyRoomsInsufficient((Boolean) inquiryForm.get("studyRoomsInsufficient")); infoInquiriy3.setLabsInsufficient((Boolean) inquiryForm.get("labsInsufficient")); infoInquiriy3.setLaisureInsufficient((Boolean) inquiryForm.get("laisureInsufficient")); infoInquiriy3.setBathroomsInsufficient((Boolean) inquiryForm.get("bathroomsInsufficient")); infoInquiriy3.setBibliographyInsufficient((Boolean) inquiryForm.get("bibliographyInsufficient")); infoInquiriy3.setForeignLanguageInsufficient((Boolean) inquiryForm.get("foreignLanguageInsufficient")); infoInquiriy3.setSoftwareAndHardwareInsufficient((Boolean) inquiryForm.get("softwareAndHardwareInsufficient")); infoInquiriy3.setFotocopyMachinesInsufficient((Boolean) inquiryForm.get("fotocopyMachinesInsufficient")); infoInquiriy3.setMultimediaMaterialInsufficient((Boolean) inquiryForm.get("multimediaMaterialInsufficient")); infoInquiriy3.setBiblio((Integer) inquiryForm.get("biblio")); infoInquiriy3.setInformaticsSupport((Integer) inquiryForm.get("informaticsSupport")); infoInquiriy3.setAdministrativeOffice((Integer) inquiryForm.get("administrativeOffice")); infoInquiriy3.setTesourary((Integer) inquiryForm.get("tesourary")); infoInquiriy3.setLanguagesCenter((Integer) inquiryForm.get("languagesCenter")); infoInquiriy3.setMobilityOffice((Integer) inquiryForm.get("mobilityOffice")); infoInquiriy3.setDegreeAdminOffice((Integer) inquiryForm.get("degreeAdminOffice")); infoInquiriy3.setResearchCenters((Integer) inquiryForm.get("researchCenters")); infoInquiriy3.setBookShop((Integer) inquiryForm.get("bookShop")); infoInquiriy3.setFotocopyServices((Integer) inquiryForm.get("fotocopyServices")); infoInquiriy3.setStudentAssociation((Integer) inquiryForm.get("studentAssociation")); infoInquiriy3.setAuxiliarAndSecurityPersonnel((Integer) inquiryForm.get("auxiliarAndSecurityPersonnel")); infoInquiriy3.setSchedule((Integer) inquiryForm.get("schedule")); infoInquiriy3.setYearCouncil((Integer) inquiryForm.get("yearCouncil")); infoInquiriy3.setDegreePedagogicalComitee((Integer) inquiryForm.get("degreePedagogicalComitee")); infoInquiriy3.setPedagogicalCouncil((Integer) inquiryForm.get("pedagogicalCouncil")); infoInquiriy3.setDegreeGlobalSatisfaction((Integer) inquiryForm.get("degreeGlobalSatisfaction")); infoInquiriy3.setUniversityGlobalSatisfaction((Integer) inquiryForm.get("universityGlobalSatisfaction")); infoInquiriy3.setUniversityComparedToOthers((Integer) inquiryForm.get("universityComparedToOthers")); infoInquiriy3.setDegreeTheoreticalKnowledge((Integer) inquiryForm.get("degreeTheoreticalKnowledge")); infoInquiriy3.setDegreePracticalKnowledge((Integer) inquiryForm.get("degreePracticalKnowledge")); infoInquiriy3.setDegreeWorkMarketIntegration((Integer) inquiryForm.get("degreeWorkMarketIntegration")); infoInquiriy3.setDegreePositivePoint1((String) inquiryForm.get("degreePositivePoint1")); infoInquiriy3.setDegreeImprovmentPoint1((String) inquiryForm.get("degreeImprovmentPoint1")); for (InfoInquiriesCourse3 infoInquiriesCourse3 : infoInquiriy3.getInfoInquiriesCourses3()) { String prefixWithECID = "ECID" + infoInquiriesCourse3.getExecutionCourse().getIdInternal() + ":"; String answered = (String) inquiryForm.get(prefixWithECID + "answered"); if (StringUtils.isEmpty(answered) || !answered.equals("on")) { infoInquiriesCourse3.setAnswered(false); continue; } else { infoInquiriesCourse3.setAnswered(true); } String knowledgeIncrease = (String) inquiryForm.get(prefixWithECID + "knowledgeIncrease"); infoInquiriesCourse3.setKnowledgeIncrease(StringUtils.isEmpty(knowledgeIncrease) ? null : Integer .valueOf(knowledgeIncrease)); String weeklySpentHours = (String) inquiryForm.get(prefixWithECID + "weeklySpentHours"); infoInquiriesCourse3.setWeeklySpentHours(StringUtils.isEmpty(weeklySpentHours) ? null : Integer .valueOf(weeklySpentHours)); String courseWareStructuring = (String) inquiryForm.get(prefixWithECID + "courseWareStructuring"); infoInquiriesCourse3.setCourseWareStructuring(StringUtils.isEmpty(courseWareStructuring) ? null : Integer .valueOf(courseWareStructuring)); String otherCoursesArticulation = (String) inquiryForm.get(prefixWithECID + "otherCoursesArticulation"); infoInquiriesCourse3.setOtherCoursesArticulation(StringUtils.isEmpty(otherCoursesArticulation) ? null : Integer .valueOf(otherCoursesArticulation)); String programLoadVsClassTimeAdequation = (String) inquiryForm.get(prefixWithECID + "programLoadVsClassTimeAdequation"); infoInquiriesCourse3.setProgramLoadVsClassTimeAdequation(StringUtils.isEmpty(programLoadVsClassTimeAdequation) ? null : Integer.valueOf(programLoadVsClassTimeAdequation)); String fieldWorkKnowledgeApplication = (String) inquiryForm.get(prefixWithECID + "fieldWorkKnowledgeApplication"); infoInquiriesCourse3.setFieldWorkKnowledgeApplication(StringUtils.isEmpty(fieldWorkKnowledgeApplication) ? null : Integer.valueOf(fieldWorkKnowledgeApplication)); String globalInterestLevel = (String) inquiryForm.get(prefixWithECID + "globalInterestLevel"); infoInquiriesCourse3.setGlobalInterestLevel(StringUtils.isEmpty(globalInterestLevel) ? null : Integer .valueOf(globalInterestLevel)); String ownAssiduity = (String) inquiryForm.get(prefixWithECID + "ownAssiduity"); infoInquiriesCourse3.setOwnAssiduity(StringUtils.isEmpty(ownAssiduity) ? null : Integer.valueOf(ownAssiduity)); String ownDiscussionParticipation = (String) inquiryForm.get(prefixWithECID + "ownDiscussionParticipation"); infoInquiriesCourse3.setOwnDiscussionParticipation(StringUtils.isEmpty(ownDiscussionParticipation) ? null : Integer .valueOf(ownDiscussionParticipation)); String ownRecommendedReading = (String) inquiryForm.get(prefixWithECID + "ownRecommendedReading"); infoInquiriesCourse3.setOwnRecommendedReading(StringUtils.isEmpty(ownRecommendedReading) ? null : Integer .valueOf(ownRecommendedReading)); String ownBibliographySearching = (String) inquiryForm.get(prefixWithECID + "ownBibliographySearching"); infoInquiriesCourse3.setOwnBibliographySearching(StringUtils.isEmpty(ownBibliographySearching) ? null : Integer .valueOf(ownBibliographySearching)); String ownSchemasAndReportsCreation = (String) inquiryForm.get(prefixWithECID + "ownSchemasAndReportsCreation"); infoInquiriesCourse3.setOwnSchemasAndReportsCreation(StringUtils.isEmpty(ownSchemasAndReportsCreation) ? null : Integer.valueOf(ownSchemasAndReportsCreation)); String ownSubjectIdentificationForFurtherExploration = (String) inquiryForm.get(prefixWithECID + "ownSubjectIdentificationForFurtherExploration"); infoInquiriesCourse3.setOwnSubjectIdentificationForFurtherExploration(StringUtils .isEmpty(ownSubjectIdentificationForFurtherExploration) ? null : Integer .valueOf(ownSubjectIdentificationForFurtherExploration)); String ownTeachersDoubtEnlightnment = (String) inquiryForm.get(prefixWithECID + "ownTeachersDoubtEnlightnment"); infoInquiriesCourse3.setOwnTeachersDoubtEnlightnment(StringUtils.isEmpty(ownTeachersDoubtEnlightnment) ? null : Integer.valueOf(ownTeachersDoubtEnlightnment)); String globalAppreciation = (String) inquiryForm.get(prefixWithECID + "globalAppreciation"); String numEnrollments = (String) inquiryForm.get(prefixWithECID + "numEnrollments"); infoInquiriesCourse3.setNumEnrollments(StringUtils.isEmpty(numEnrollments) ? null : Integer.valueOf(numEnrollments)); infoInquiriesCourse3.setGlobalAppreciation(StringUtils.isEmpty(globalAppreciation) ? null : Integer .valueOf(globalAppreciation)); infoInquiriesCourse3.setPositivePointOne((String) inquiryForm.get(prefixWithECID + "positivePointOne")); infoInquiriesCourse3.setPositivePointTwo((String) inquiryForm.get(prefixWithECID + "positivePointTwo")); infoInquiriesCourse3.setPositivePointThree((String) inquiryForm.get(prefixWithECID + "positivePointThree")); infoInquiriesCourse3.setImprovmentPointOne((String) inquiryForm.get(prefixWithECID + "improvmentPointOne")); infoInquiriesCourse3.setImprovmentPointTwo((String) inquiryForm.get(prefixWithECID + "improvmentPointTwo")); infoInquiriesCourse3.setImprovmentPointThree((String) inquiryForm.get(prefixWithECID + "improvmentPointThree")); for (InfoInquiriesTeacher3 inquiriesTeacher3 : infoInquiriesCourse3.getInfoInquiriesTeachers3()) { String prefixWithTID = prefixWithECID + "TID" + inquiriesTeacher3.getTeacher().getIdInternal() + ":"; String teacherAnswered = (String) inquiryForm.get(prefixWithTID + "answered"); if (StringUtils.isEmpty(teacherAnswered) || !teacherAnswered.equals("on")) { inquiriesTeacher3.setAnswered(false); continue; } else { inquiriesTeacher3.setAnswered(true); } String teacherClarity = (String) inquiryForm.get(prefixWithTID + "teacherClarity"); inquiriesTeacher3.setTeacherClarity(StringUtils.isEmpty(teacherClarity) ? null : Integer.valueOf(teacherClarity)); String teacherDoubtEnlightnmentClarity = (String) inquiryForm.get(prefixWithTID + "teacherDoubtEnlightnmentClarity"); inquiriesTeacher3.setTeacherDoubtEnlightnmentClarity(StringUtils.isEmpty(teacherDoubtEnlightnmentClarity) ? null : Integer.valueOf(teacherDoubtEnlightnmentClarity)); String teacherInterestStimulation = (String) inquiryForm.get(prefixWithTID + "teacherInterestStimulation"); inquiriesTeacher3.setTeacherInterestStimulation(StringUtils.isEmpty(teacherInterestStimulation) ? null : Integer .valueOf(teacherInterestStimulation)); String teacherStudentInterventionStimulation = (String) inquiryForm.get(prefixWithTID + "teacherStudentInterventionStimulation"); inquiriesTeacher3.setTeacherStudentInterventionStimulation(StringUtils .isEmpty(teacherStudentInterventionStimulation) ? null : Integer .valueOf(teacherStudentInterventionStimulation)); String teacherClassObjectivesIndication = (String) inquiryForm.get(prefixWithTID + "teacherClassObjectivesIndication"); inquiriesTeacher3 .setTeacherClassObjectivesIndication(StringUtils.isEmpty(teacherClassObjectivesIndication) ? null : Integer.valueOf(teacherClassObjectivesIndication)); String teachingRythm = (String) inquiryForm.get(prefixWithTID + "teachingRythm"); inquiriesTeacher3.setTeachingRythm(StringUtils.isEmpty(teachingRythm) ? null : Integer.valueOf(teachingRythm)); String teacherBibliographySpecification = (String) inquiryForm.get(prefixWithTID + "teacherBibliographySpecification"); inquiriesTeacher3 .setTeacherBibliographySpecification(StringUtils.isEmpty(teacherBibliographySpecification) ? null : Integer.valueOf(teacherBibliographySpecification)); String teacherStudentEvaluationExpectedClarification = (String) inquiryForm.get(prefixWithTID + "teacherStudentEvaluationExpectedClarification"); inquiriesTeacher3.setTeacherStudentEvaluationExpectedClarification(StringUtils .isEmpty(teacherStudentEvaluationExpectedClarification) ? null : Integer .valueOf(teacherStudentEvaluationExpectedClarification)); String teacherGlobalAppreciation = (String) inquiryForm.get(prefixWithTID + "globalAppreciation"); inquiriesTeacher3.setGlobalAppreciation(StringUtils.isEmpty(teacherGlobalAppreciation) ? null : Integer .valueOf(teacherGlobalAppreciation)); inquiriesTeacher3.setImprovementSuggestion((String) inquiryForm.get(prefixWithTID + "improvementSuggestion")); } } return infoInquiriy3; } public int compareTo(InfoInquiriesDemographicalAndAcademical3 o) { return 0; } public static InfoInquiriesDemographicalAndAcademical3 newInfoFromDomain( InquiriesDemographicalAndAcademical3 inquiriesDemographicalAndAcademical3) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { InfoInquiriesDemographicalAndAcademical3 newInfo = null; if (inquiriesDemographicalAndAcademical3 != null) { newInfo = new InfoInquiriesDemographicalAndAcademical3(); newInfo.copyFromDomain(inquiriesDemographicalAndAcademical3); } return newInfo; } public void copyFromDomain(InquiriesDemographicalAndAcademical3 inquiriesDemographicalAndAcademical3) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { if (inquiriesDemographicalAndAcademical3 != null) { super.copyFromDomain(inquiriesDemographicalAndAcademical3); this.setExecutionPeriod(InfoExecutionPeriod.newInfoFromDomain(inquiriesDemographicalAndAcademical3 .getExecutionPeriod())); this.setExecutionDegree(InfoExecutionDegree.newInfoFromDomain(inquiriesDemographicalAndAcademical3 .getExecutionDegree())); this.setStudentSchoolClass(InfoClass.newInfoFromDomain(inquiriesDemographicalAndAcademical3.getStudentSchoolClass())); this.setStudentCurricularYear(inquiriesDemographicalAndAcademical3.getStudentCurricularYear()); this.setAge(inquiriesDemographicalAndAcademical3.getAge()); this.setDistrict(inquiriesDemographicalAndAcademical3.getDistrict()); this.setGender(inquiriesDemographicalAndAcademical3.getGender()); this.setDayPeriodType(inquiriesDemographicalAndAcademical3.getDayPeriodType()); this.setIsWorkingStudent(inquiriesDemographicalAndAcademical3.getIsWorkingStudent()); this.setReprovedAnyCourse(inquiriesDemographicalAndAcademical3.getReprovedAnyCourse()); this.setNumReprovedCourses(inquiriesDemographicalAndAcademical3.getNumReprovedCourses()); this.setReprovedAnyYear(inquiriesDemographicalAndAcademical3.getReprovedAnyYear()); this.setNumReprovedYears(inquiriesDemographicalAndAcademical3.getNumReprovedYears()); this.setIngressDegreeFirstChoice(inquiriesDemographicalAndAcademical3.getIngressDegreeFirstChoice()); this.setIngressUniversityFirstChoice(inquiriesDemographicalAndAcademical3.getIngressUniversityFirstChoice()); this.setIsDislocated(inquiriesDemographicalAndAcademical3.getIsDislocated()); this.setHasSocialServicesScholarship(inquiriesDemographicalAndAcademical3.getHasSocialServicesScholarship()); this.setClassRooms(inquiriesDemographicalAndAcademical3.getClassRooms()); this.setInformaticLabs(inquiriesDemographicalAndAcademical3.getInformaticLabs()); this.setStudyRooms(inquiriesDemographicalAndAcademical3.getStudyRooms()); this.setLabs(inquiriesDemographicalAndAcademical3.getLabs()); this.setLaisure(inquiriesDemographicalAndAcademical3.getLaisure()); this.setBathrooms(inquiriesDemographicalAndAcademical3.getBathrooms()); this.setBibliography(inquiriesDemographicalAndAcademical3.getBibliography()); this.setForeignLanguage(inquiriesDemographicalAndAcademical3.getForeignLanguage()); this.setSoftwareAndHardware(inquiriesDemographicalAndAcademical3.getSoftwareAndHardware()); this.setFotocopyMachines(inquiriesDemographicalAndAcademical3.getFotocopyMachines()); this.setMultimediaMaterial(inquiriesDemographicalAndAcademical3.getMultimediaMaterial()); this.setClassRoomsInsufficient(inquiriesDemographicalAndAcademical3.getClassRoomsInsufficient()); this.setInformaticLabsInsufficient(inquiriesDemographicalAndAcademical3.getInformaticLabsInsufficient()); this.setStudyRoomsInsufficient(inquiriesDemographicalAndAcademical3.getStudyRoomsInsufficient()); this.setLabsInsufficient(inquiriesDemographicalAndAcademical3.getLabsInsufficient()); this.setLaisureInsufficient(inquiriesDemographicalAndAcademical3.getLaisureInsufficient()); this.setBathroomsInsufficient(inquiriesDemographicalAndAcademical3.getBathroomsInsufficient()); this.setBibliographyInsufficient(inquiriesDemographicalAndAcademical3.getBibliographyInsufficient()); this.setForeignLanguageInsufficient(inquiriesDemographicalAndAcademical3.getForeignLanguageInsufficient()); this.setSoftwareAndHardwareInsufficient(inquiriesDemographicalAndAcademical3.getSoftwareAndHardwareInsufficient()); this.setFotocopyMachinesInsufficient(inquiriesDemographicalAndAcademical3.getFotocopyMachinesInsufficient()); this.setMultimediaMaterialInsufficient(inquiriesDemographicalAndAcademical3.getMultimediaMaterialInsufficient()); this.setBiblio(inquiriesDemographicalAndAcademical3.getBiblio()); this.setInformaticsSupport(inquiriesDemographicalAndAcademical3.getInformaticsSupport()); this.setAdministrativeOffice(inquiriesDemographicalAndAcademical3.getAdministrativeOffice()); this.setTesourary(inquiriesDemographicalAndAcademical3.getTesourary()); this.setLanguagesCenter(inquiriesDemographicalAndAcademical3.getLanguagesCenter()); this.setMobilityOffice(inquiriesDemographicalAndAcademical3.getMobilityOffice()); this.setDegreeAdminOffice(inquiriesDemographicalAndAcademical3.getDegreeAdminOffice()); this.setResearchCenters(inquiriesDemographicalAndAcademical3.getResearchCenters()); this.setBookShop(inquiriesDemographicalAndAcademical3.getBookShop()); this.setFotocopyServices(inquiriesDemographicalAndAcademical3.getFotocopyServices()); this.setStudentAssociation(inquiriesDemographicalAndAcademical3.getStudentAssociation()); this.setAuxiliarAndSecurityPersonnel(inquiriesDemographicalAndAcademical3.getAuxiliarAndSecurityPersonnel()); this.setSchedule(inquiriesDemographicalAndAcademical3.getSchedule()); this.setYearCouncil(inquiriesDemographicalAndAcademical3.getYearCouncil()); this.setDegreePedagogicalComitee(inquiriesDemographicalAndAcademical3.getDegreePedagogicalComitee()); this.setPedagogicalCouncil(inquiriesDemographicalAndAcademical3.getPedagogicalCouncil()); this.setDegreeTheoreticalKnowledge(inquiriesDemographicalAndAcademical3.getDegreeTheoreticalKnowledge()); this.setDegreePracticalKnowledge(inquiriesDemographicalAndAcademical3.getDegreePracticalKnowledge()); this.setDegreeWorkMarketIntegration(inquiriesDemographicalAndAcademical3.getDegreeWorkMarketIntegration()); this.setDegreePositivePoint1(inquiriesDemographicalAndAcademical3.getDegreePositivePoint1()); this.setDegreeImprovmentPoint1(inquiriesDemographicalAndAcademical3.getDegreeImprovmentPoint1()); this.setDegreeGlobalSatisfaction(inquiriesDemographicalAndAcademical3.getDegreeGlobalSatisfaction()); this.setUniversityGlobalSatisfaction(inquiriesDemographicalAndAcademical3.getUniversityGlobalSatisfaction()); this.setUniversityComparedToOthers(inquiriesDemographicalAndAcademical3.getUniversityComparedToOthers()); for (InquiriesCourse3 InquiriesCourse3 : inquiriesDemographicalAndAcademical3.getAssociatedInquiriesCourses3()) { InfoInquiriesCourse3 infoInquiriesCourse3 = InfoInquiriesCourse3.newInfoFromDomain(InquiriesCourse3); addInfoInquiriesCourse(infoInquiriesCourse3); } } } public String toString() { String result = "[InfoInquiriesCourse3"; result += ", id=" + getIdInternal(); if (executionPeriod != null) result += ", executionPeriod=" + executionPeriod.toString(); if (executionDegree != null) result += ", executionDegree=" + executionDegree.toString(); if (studentSchoolClass != null) result += ", studentSchoolClass=" + studentSchoolClass; result += ", studentCurricularYear=" + studentCurricularYear; result += ", age=" + age; result += ", gender=" + gender; result += ", dayPeriodType=" + dayPeriodType; result += ", classRooms=" + classRooms; result += ", informaticLabs=" + informaticLabs; result += ", studyRooms=" + studyRooms; result += ", labs=" + labs; result += ", laisure=" + laisure; result += ", bathrooms=" + bathrooms; result += ", bibliography=" + bibliography; result += ", foreignLanguage=" + foreignLanguage; result += ", softwareAndHardware=" + softwareAndHardware; result += ", fotocopyMachines=" + fotocopyMachines; result += ", multimediaMaterial=" + multimediaMaterial; result += ", classRoomsInsufficient=" + classRoomsInsufficient; result += ", informaticLabsInsufficient=" + informaticLabsInsufficient; result += ", studyRoomsInsufficient=" + studyRoomsInsufficient; result += ", labsInsufficient=" + labsInsufficient; result += ", laisureInsufficient=" + laisureInsufficient; result += ", bathroomsInsufficient=" + bathroomsInsufficient; result += ", bibliographyInsufficient=" + bibliographyInsufficient; result += ", foreignLanguageInsufficient=" + foreignLanguageInsufficient; result += ", softwareAndHardwareInsufficient=" + softwareAndHardwareInsufficient; result += ", fotocopyMachinesInsufficient=" + fotocopyMachinesInsufficient; result += ", multimediaMaterialInsufficient=" + multimediaMaterialInsufficient; result += ", biblio=" + biblio; result += ", informaticsSupport=" + informaticsSupport; result += ", administrativeOffice=" + administrativeOffice; result += ", tesourary=" + tesourary; result += ", languagesCenter=" + languagesCenter; result += ", mobilityOffice=" + mobilityOffice; result += ", degreeAdminOffice=" + degreeAdminOffice; result += ", researchCenters=" + researchCenters; result += ", bookShop=" + bookShop; result += ", fotocopyServices=" + fotocopyServices; result += ", studentAssociation=" + studentAssociation; result += ", auxiliarAndSecurityPersonnel=" + auxiliarAndSecurityPersonnel; result += ", schedule=" + schedule; result += ", yearCouncil=" + yearCouncil; result += ", degreePedagogicalComitee=" + degreePedagogicalComitee; result += ", pedagogicalCouncil=" + pedagogicalCouncil; result += ", degreeGlobalSatisfaction=" + degreeGlobalSatisfaction; result += ", universityGlobalSatisfaction=" + universityGlobalSatisfaction; result += "]\n"; return result; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } public String getDistrict() { return district; } public void setDistrict(String district) { this.district = district; } public DayPeriodType getDayPeriodType() { return dayPeriodType; } public void setDayPeriodType(DayPeriodType dayPeriodType) { this.dayPeriodType = dayPeriodType; } public Integer getDegreeGlobalSatisfaction() { return degreeGlobalSatisfaction; } public void setDegreeGlobalSatisfaction(Integer degreeGlobalSatisfaction) { this.degreeGlobalSatisfaction = degreeGlobalSatisfaction; } public InfoExecutionDegree getExecutionDegree() { return executionDegree; } public void setExecutionDegree(InfoExecutionDegree executionDegree) { this.executionDegree = executionDegree; } public InfoExecutionPeriod getExecutionPeriod() { return executionPeriod; } public void setExecutionPeriod(InfoExecutionPeriod executionPeriod) { this.executionPeriod = executionPeriod; } public Gender getGender() { return gender; } public void setGender(Gender gender) { this.gender = gender; } public Integer getKeyExecutionDegree() { return keyExecutionDegree; } public void setKeyExecutionDegree(Integer keyExecutionDegree) { this.keyExecutionDegree = keyExecutionDegree; } public Integer getKeyExecutionPeriod() { return keyExecutionPeriod; } public Integer getKeyStudentSchoolClass() { return keyStudentSchoolClass; } public void setKeyStudentSchoolClass(Integer keyStudentSchoolClass) { this.keyStudentSchoolClass = keyStudentSchoolClass; } public void setKeyExecutionPeriod(Integer keyExecutionPeriod) { this.keyExecutionPeriod = keyExecutionPeriod; } public Integer getStudentCurricularYear() { return studentCurricularYear; } public void setStudentCurricularYear(Integer studentCurricularYear) { this.studentCurricularYear = studentCurricularYear; } public Integer getUniversityGlobalSatisfaction() { return universityGlobalSatisfaction; } public void setUniversityGlobalSatisfaction(Integer universityGlobalSatisfaction) { this.universityGlobalSatisfaction = universityGlobalSatisfaction; } public void addInfoInquiriesCourse(InfoInquiriesCourse3 InfoInquiriesCourse3) { infoInquiriesCourses3.add(InfoInquiriesCourse3); } public List getInfoInquiriesCourses3() { return infoInquiriesCourses3; } public List getGenderList() { List genders = new ArrayList(); for (Gender g : Gender.values()) genders.add(new LabelValueBean(g.toLocalizedString(), g.name())); return genders; } public List getDayPeriodTypeList() { List dayPeriodTypes = new ArrayList(); for (DayPeriodType dpt : DayPeriodType.values()) dayPeriodTypes.add(new LabelValueBean(dpt.getLocalizedName(), dpt.name())); return dayPeriodTypes; } public List getDistrictsList() { final List districts = new ArrayList(); for (District district : RootDomainObject.getInstance().getDistricts()) { districts.add(new LabelValueBean(district.getName(), district.getCode())); } Collections.sort(districts, new BeanComparator("value")); for (final LabelValueBean districtBean : districts) { districtBean.setValue(districtBean.getLabel()); } return districts; } public String getResource(String name) { try { final ResourceBundle resourceBundle = ResourceBundle.getBundle("resources.InquiriesResources", LanguageUtils .getLocale()); return resourceBundle.getString(name); } catch (Exception swallowed) { swallowed.printStackTrace(); return null; } } public List loadChoiceValues(String prefix) { List choiceOptions = new ArrayList(); String choiceList = getResource(prefix + ".choiceList"); String choiceValues = getResource(prefix + ".choiceValues"); String[] choiceOptionLabels = choiceList.split("#"); String[] choiceOptionValues = choiceValues.split("#"); for (int i = 0; i < choiceOptionLabels.length; i++) { choiceOptions.add(new LabelValueBean(choiceOptionLabels[i], choiceOptionValues[i])); } return choiceOptions; } public List getYesNoList() { return loadChoiceValues("yesNo"); } public List getAgreementLevelList() { return loadChoiceValues("agreementLevel"); } public List getQuantityLevelList() { return loadChoiceValues("quantityLevel"); } public List getNumberTimesEnrollmentLevelList() { return loadChoiceValues("numberTimesEnrollmentLevel"); } public List getAcceptanceLevelList() { return loadChoiceValues("acceptanceLevel"); } public List getQualityLevelList() { return loadChoiceValues("qualityLevel"); } public List getComparisonLevelList() { return loadChoiceValues("comparisonLevel"); } public List getAdequationLevelList() { return loadChoiceValues("adequationLevel"); } public List getSatisfactionLevelList() { return loadChoiceValues("satisfactionLevel"); } public List getBehaviourAccordanceLevelList() { return loadChoiceValues("behaviourAccordanceLevel"); } public List getFrequencyLevelList() { return loadChoiceValues("frequencyLevel"); } public InfoClass getStudentSchoolClass() { return studentSchoolClass; } public String getStudentSchoolClassIdAsString() { if (getStudentSchoolClass() == null || getStudentSchoolClass().getIdInternal() == null) return null; else return getStudentSchoolClass().getIdInternal().toString(); } public void setStudentSchoolClass(InfoClass studentSchoolClass) { this.studentSchoolClass = studentSchoolClass; } public Integer getClassRooms() { return classRooms; } public void setClassRooms(Integer classRooms) { this.classRooms = classRooms; } public Integer getInformaticLabs() { return informaticLabs; } public void setInformaticLabs(Integer informaticLabs) { this.informaticLabs = informaticLabs; } public Integer getStudyRooms() { return studyRooms; } public void setStudyRooms(Integer studyRooms) { this.studyRooms = studyRooms; } public Integer getLabs() { return labs; } public void setLabs(Integer labs) { this.labs = labs; } public Integer getLaisure() { return laisure; } public void setLaisure(Integer laisure) { this.laisure = laisure; } public Integer getBathrooms() { return bathrooms; } public void setBathrooms(Integer bathrooms) { this.bathrooms = bathrooms; } public Integer getBibliography() { return bibliography; } public void setBibliography(Integer bibliography) { this.bibliography = bibliography; } public Integer getForeignLanguage() { return foreignLanguage; } public void setForeignLanguage(Integer foreignLanguage) { this.foreignLanguage = foreignLanguage; } public Integer getSoftwareAndHardware() { return softwareAndHardware; } public void setSoftwareAndHardware(Integer softwareAndHardware) { this.softwareAndHardware = softwareAndHardware; } public Integer getFotocopyMachines() { return fotocopyMachines; } public void setFotocopyMachines(Integer fotocopyMachines) { this.fotocopyMachines = fotocopyMachines; } public Integer getMultimediaMaterial() { return multimediaMaterial; } public void setMultimediaMaterial(Integer multimediaMaterial) { this.multimediaMaterial = multimediaMaterial; } public Integer getBiblio() { return biblio; } public void setBiblio(Integer biblio) { this.biblio = biblio; } public Integer getInformaticsSupport() { return informaticsSupport; } public void setInformaticsSupport(Integer informaticsSupport) { this.informaticsSupport = informaticsSupport; } public Integer getAdministrativeOffice() { return administrativeOffice; } public void setAdministrativeOffice(Integer administrativeOffice) { this.administrativeOffice = administrativeOffice; } public Integer getTesourary() { return tesourary; } public void setTesourary(Integer tesourary) { this.tesourary = tesourary; } public Integer getLanguagesCenter() { return languagesCenter; } public void setLanguagesCenter(Integer languagesCenter) { this.languagesCenter = languagesCenter; } public Integer getMobilityOffice() { return mobilityOffice; } public void setMobilityOffice(Integer mobilityOffice) { this.mobilityOffice = mobilityOffice; } public Integer getDegreeAdminOffice() { return degreeAdminOffice; } public void setDegreeAdminOffice(Integer degreeAdminOffice) { this.degreeAdminOffice = degreeAdminOffice; } public Integer getResearchCenters() { return researchCenters; } public void setResearchCenters(Integer researchCenters) { this.researchCenters = researchCenters; } public Integer getBookShop() { return bookShop; } public void setBookShop(Integer bookShop) { this.bookShop = bookShop; } public Integer getFotocopyServices() { return fotocopyServices; } public void setFotocopyServices(Integer fotocopyServices) { this.fotocopyServices = fotocopyServices; } public Integer getStudentAssociation() { return studentAssociation; } public void setStudentAssociation(Integer studentAssociation) { this.studentAssociation = studentAssociation; } public Integer getAuxiliarAndSecurityPersonnel() { return auxiliarAndSecurityPersonnel; } public void setAuxiliarAndSecurityPersonnel(Integer auxiliarAndSecurityPersonnel) { this.auxiliarAndSecurityPersonnel = auxiliarAndSecurityPersonnel; } public Integer getSchedule() { return schedule; } public void setSchedule(Integer schedule) { this.schedule = schedule; } public Integer getYearCouncil() { return yearCouncil; } public void setYearCouncil(Integer yearCouncil) { this.yearCouncil = yearCouncil; } public Integer getDegreePedagogicalComitee() { return degreePedagogicalComitee; } public void setDegreePedagogicalComitee(Integer degreePedagogicalComitee) { this.degreePedagogicalComitee = degreePedagogicalComitee; } public Integer getPedagogicalCouncil() { return pedagogicalCouncil; } public void setPedagogicalCouncil(Integer pedagogicalCouncil) { this.pedagogicalCouncil = pedagogicalCouncil; } /** * @return the classRoomsInsufficient */ public Boolean getClassRoomsInsufficient() { return classRoomsInsufficient; } /** * @param classRoomsInsufficient * the classRoomsInsufficient to set */ public void setClassRoomsInsufficient(Boolean classRoomsInsufficient) { this.classRoomsInsufficient = classRoomsInsufficient; } /** * @return the informaticLabsInsufficient */ public Boolean getInformaticLabsInsufficient() { return informaticLabsInsufficient; } /** * @param informaticLabsInsufficient * the informaticLabsInsufficient to set */ public void setInformaticLabsInsufficient(Boolean informaticLabsInsufficient) { this.informaticLabsInsufficient = informaticLabsInsufficient; } /** * @return the studyRoomsInsufficient */ public Boolean getStudyRoomsInsufficient() { return studyRoomsInsufficient; } /** * @param studyRoomsInsufficient * the studyRoomsInsufficient to set */ public void setStudyRoomsInsufficient(Boolean studyRoomsInsufficient) { this.studyRoomsInsufficient = studyRoomsInsufficient; } /** * @return the labsInsufficient */ public Boolean getLabsInsufficient() { return labsInsufficient; } /** * @param labsInsufficient * the labsInsufficient to set */ public void setLabsInsufficient(Boolean labsInsufficient) { this.labsInsufficient = labsInsufficient; } /** * @return the laisureInsufficient */ public Boolean getLaisureInsufficient() { return laisureInsufficient; } /** * @param laisureInsufficient * the laisureInsufficient to set */ public void setLaisureInsufficient(Boolean laisureInsufficient) { this.laisureInsufficient = laisureInsufficient; } /** * @return the bathroomsInsufficient */ public Boolean getBathroomsInsufficient() { return bathroomsInsufficient; } /** * @param bathroomsInsufficient * the bathroomsInsufficient to set */ public void setBathroomsInsufficient(Boolean bathroomsInsufficient) { this.bathroomsInsufficient = bathroomsInsufficient; } /** * @return the bibliographyInsufficient */ public Boolean getBibliographyInsufficient() { return bibliographyInsufficient; } /** * @param bibliographyInsufficient * the bibliographyInsufficient to set */ public void setBibliographyInsufficient(Boolean bibliographyInsufficient) { this.bibliographyInsufficient = bibliographyInsufficient; } /** * @return the foreignLanguageInsufficient */ public Boolean getForeignLanguageInsufficient() { return foreignLanguageInsufficient; } /** * @param foreignLanguageInsufficient * the foreignLanguageInsufficient to set */ public void setForeignLanguageInsufficient(Boolean foreignLanguageInsufficient) { this.foreignLanguageInsufficient = foreignLanguageInsufficient; } /** * @return the softwareAndHardwareInsufficient */ public Boolean getSoftwareAndHardwareInsufficient() { return softwareAndHardwareInsufficient; } /** * @param softwareAndHardwareInsufficient * the softwareAndHardwareInsufficient to set */ public void setSoftwareAndHardwareInsufficient(Boolean softwareAndHardwareInsufficient) { this.softwareAndHardwareInsufficient = softwareAndHardwareInsufficient; } /** * @return the fotocopyMachinesInsufficient */ public Boolean getFotocopyMachinesInsufficient() { return fotocopyMachinesInsufficient; } /** * @param fotocopyMachinesInsufficient * the fotocopyMachinesInsufficient to set */ public void setFotocopyMachinesInsufficient(Boolean fotocopyMachinesInsufficient) { this.fotocopyMachinesInsufficient = fotocopyMachinesInsufficient; } /** * @return the multimediaMaterialInsufficient */ public Boolean getMultimediaMaterialInsufficient() { return multimediaMaterialInsufficient; } /** * @param multimediaMaterialInsufficient * the multimediaMaterialInsufficient to set */ public void setMultimediaMaterialInsufficient(Boolean multimediaMaterialInsufficient) { this.multimediaMaterialInsufficient = multimediaMaterialInsufficient; } /** * @param infoInquiriesCourses3 * the infoInquiriesCourses3 to set */ public void setInfoInquiriesCourses3(List infoInquiriesCourses3) { this.infoInquiriesCourses3 = infoInquiriesCourses3; } /** * @return the isWorkingStudent */ public Integer getIsWorkingStudent() { return isWorkingStudent; } /** * @param isWorkingStudent * the isWorkingStudent to set */ public void setIsWorkingStudent(Integer isWorkingStudent) { this.isWorkingStudent = isWorkingStudent; } /** * @return the reprovedAnyCourse */ public Integer getReprovedAnyCourse() { return reprovedAnyCourse; } /** * @param reprovedAnyCourse * the reprovedAnyCourse to set */ public void setReprovedAnyCourse(Integer reprovedAnyCourse) { this.reprovedAnyCourse = reprovedAnyCourse; } /** * @return the numReprovedCourses */ public Integer getNumReprovedCourses() { return numReprovedCourses; } /** * @param numReprovedCourses * the numReprovedCourses to set */ public void setNumReprovedCourses(Integer numReprovedCourses) { this.numReprovedCourses = numReprovedCourses; } /** * @return the reprovedAnyYear */ public Integer getReprovedAnyYear() { return reprovedAnyYear; } /** * @param reprovedAnyYear * the reprovedAnyYear to set */ public void setReprovedAnyYear(Integer reprovedAnyYear) { this.reprovedAnyYear = reprovedAnyYear; } /** * @return the numReprovedYears */ public Integer getNumReprovedYears() { return numReprovedYears; } /** * @param numReprovedYears * the numReprovedYears to set */ public void setNumReprovedYears(Integer numReprovedYears) { this.numReprovedYears = numReprovedYears; } /** * @return the ingressUniversityFirstChoice */ public Integer getIngressUniversityFirstChoice() { return ingressUniversityFirstChoice; } /** * @param ingressUniversityFirstChoice * the ingressUniversityFirstChoice to set */ public void setIngressUniversityFirstChoice(Integer ingressUniversityFirstChoice) { this.ingressUniversityFirstChoice = ingressUniversityFirstChoice; } /** * @return the ingressDegreeFirstChoice */ public Integer getIngressDegreeFirstChoice() { return ingressDegreeFirstChoice; } /** * @param ingressDegreeFirstChoice * the ingressDegreeFirstChoice to set */ public void setIngressDegreeFirstChoice(Integer ingressDegreeFirstChoice) { this.ingressDegreeFirstChoice = ingressDegreeFirstChoice; } /** * @return the isDislocated */ public Integer getIsDislocated() { return isDislocated; } /** * @param isDislocated * the isDislocated to set */ public void setIsDislocated(Integer isDislocated) { this.isDislocated = isDislocated; } /** * @return the hasSocialServicesScholarship */ public Integer getHasSocialServicesScholarship() { return hasSocialServicesScholarship; } /** * @param hasSocialServicesScholarship * the hasSocialServicesScholarship to set */ public void setHasSocialServicesScholarship(Integer hasSocialServicesScholarship) { this.hasSocialServicesScholarship = hasSocialServicesScholarship; } /** * @return the universityComparedToOthers */ public Integer getUniversityComparedToOthers() { return universityComparedToOthers; } /** * @param universityComparedToOthers * the universityComparedToOthers to set */ public void setUniversityComparedToOthers(Integer universityComparedToOthers) { this.universityComparedToOthers = universityComparedToOthers; } /** * @return the degreeTheoreticalKnowledge */ public Integer getDegreeTheoreticalKnowledge() { return degreeTheoreticalKnowledge; } /** * @param degreeTheoreticalKnowledge * the degreeTheoreticalKnowledge to set */ public void setDegreeTheoreticalKnowledge(Integer degreeTheoreticalKnowledge) { this.degreeTheoreticalKnowledge = degreeTheoreticalKnowledge; } /** * @return the degreePracticalKnowledge */ public Integer getDegreePracticalKnowledge() { return degreePracticalKnowledge; } /** * @param degreePracticalKnowledge * the degreePracticalKnowledge to set */ public void setDegreePracticalKnowledge(Integer degreePracticalKnowledge) { this.degreePracticalKnowledge = degreePracticalKnowledge; } /** * @return the degreeWorkMarketIntegration */ public Integer getDegreeWorkMarketIntegration() { return degreeWorkMarketIntegration; } /** * @param degreeWorkMarketIntegration * the degreeWorkMarketIntegration to set */ public void setDegreeWorkMarketIntegration(Integer degreeWorkMarketIntegration) { this.degreeWorkMarketIntegration = degreeWorkMarketIntegration; } /** * @return the degreePositivePoint1 */ public String getDegreePositivePoint1() { return degreePositivePoint1; } /** * @param degreePositivePoint1 * the degreePositivePoint1 to set */ public void setDegreePositivePoint1(String degreePositivePoint1) { this.degreePositivePoint1 = degreePositivePoint1; } /** * @return the degreeImprovmentPoint1 */ public String getDegreeImprovmentPoint1() { return degreeImprovmentPoint1; } /** * @param degreeImprovmentPoint1 * the degreeImprovmentPoint1 to set */ public void setDegreeImprovmentPoint1(String degreeImprovmentPoint1) { this.degreeImprovmentPoint1 = degreeImprovmentPoint1; } }