/* * Created on Jan 21, 2004 */ package net.sourceforge.fenixedu.dataTransferObject.grant.contract; import net.sourceforge.fenixedu.dataTransferObject.InfoObject; import net.sourceforge.fenixedu.dataTransferObject.InfoTeacher; import net.sourceforge.fenixedu.domain.grant.contract.GrantPart; /** * @author pica * @author barbosa */ public class InfoGrantPart extends InfoObject { private Integer percentage; private InfoGrantSubsidy infoGrantSubsidy; private InfoGrantPaymentEntity infoGrantPaymentEntity; private InfoTeacher infoResponsibleTeacher; /** * @return Returns the infoGrantPaymentEntity. */ public InfoGrantPaymentEntity getInfoGrantPaymentEntity() { return infoGrantPaymentEntity; } /** * @param infoGrantPaymentEntity * The infoGrantPaymentEntity to set. */ public void setInfoGrantPaymentEntity(InfoGrantPaymentEntity infoGrantPaymentEntity) { this.infoGrantPaymentEntity = infoGrantPaymentEntity; } /** * @return Returns the infoGrantResponsibleTeacher. */ public InfoTeacher getInfoResponsibleTeacher() { return infoResponsibleTeacher; } /** * @param infoResponsibleTeacher * The infoResponsibleTeacher to set. */ public void setInfoResponsibleTeacher(InfoTeacher infoResponsibleTeacher) { this.infoResponsibleTeacher = infoResponsibleTeacher; } /** * @return Returns the infoGrantSubsidy. */ public InfoGrantSubsidy getInfoGrantSubsidy() { return infoGrantSubsidy; } /** * @param infoGrantSubsidy * The infoGrantSubsidy to set. */ public void setInfoGrantSubsidy(InfoGrantSubsidy infoGrantSubsidy) { this.infoGrantSubsidy = infoGrantSubsidy; } /** * @return Returns the percentage. */ public Integer getPercentage() { return percentage; } /** * @param percentage * The percentage to set. */ public void setPercentage(Integer percentage) { this.percentage = percentage; } /** * @param GrantPart */ public void copyFromDomain(GrantPart grantPart) { super.copyFromDomain(grantPart); if (grantPart != null) { setPercentage(grantPart.getPercentage()); } } /** * @param GrantPart * @return */ public static InfoGrantPart newInfoFromDomain(GrantPart grantPart) { InfoGrantPart infoGrantPart = null; if (grantPart != null) { infoGrantPart = new InfoGrantPart(); infoGrantPart.copyFromDomain(grantPart); } return infoGrantPart; } }