/* * Created on 8/Jul/2004 * */ package net.sourceforge.fenixedu.dataTransferObject; import net.sourceforge.fenixedu.domain.Curriculum; /** * @author Tânia Pousão * */ public class InfoCurriculumWithInfoCurricularCourseAndInfoDegree extends InfoCurriculum { /* * (non-Javadoc) * * @see * net.sourceforge.fenixedu.dataTransferObject.InfoCurriculum#copyFromDomain * (Dominio.Curriculum) */ public void copyFromDomain(Curriculum curriculum) { super.copyFromDomain(curriculum); if (curriculum != null) { setInfoCurricularCourse(InfoCurricularCourse.newInfoFromDomain(curriculum.getCurricularCourse())); } } public static InfoCurriculum newInfoFromDomain(Curriculum curriculum) { InfoCurriculumWithInfoCurricularCourseAndInfoDegree infoCurriculum = null; if (curriculum != null) { infoCurriculum = new InfoCurriculumWithInfoCurricularCourseAndInfoDegree(); infoCurriculum.copyFromDomain(curriculum); } return infoCurriculum; } }