/* * Created on 8/Jul/2004 * */ package net.sourceforge.fenixedu.dataTransferObject; import net.sourceforge.fenixedu.domain.GratuitySituation; /** * @author Tânia Pousão * */ public class InfoGratuitySituationWithInfoPersonAndInfoExecutionDegree extends InfoGratuitySituation { /* * (non-Javadoc) * * @seenet.sourceforge.fenixedu.dataTransferObject.InfoGratuitySituation# * copyFromDomain(Dominio.GratuitySituation) */ public void copyFromDomain(GratuitySituation gratuitySituation) { super.copyFromDomain(gratuitySituation); if (gratuitySituation != null) { setInfoStudentCurricularPlan(InfoStudentCurricularPlan .newInfoFromDomain(gratuitySituation.getStudentCurricularPlan())); setInfoGratuityValues(InfoGratuityValuesWithInfoExecutionDegree.newInfoFromDomain(gratuitySituation .getGratuityValues())); } } public static InfoGratuitySituation newInfoFromDomain(GratuitySituation gratuitySituation) { InfoGratuitySituationWithInfoPersonAndInfoExecutionDegree infoGratuitySituation = null; if (gratuitySituation != null) { infoGratuitySituation = new InfoGratuitySituationWithInfoPersonAndInfoExecutionDegree(); infoGratuitySituation.copyFromDomain(gratuitySituation); } return infoGratuitySituation; } }