package net.sourceforge.fenixedu.domain.tuition; import net.sourceforge.fenixedu.dataTransferObject.finantialServices.DegreeTuitionArticleData; import net.sourceforge.fenixedu.dataTransferObject.finantialServices.TuitionArticleData; public class DegreeTuitionArticle extends DegreeTuitionArticle_Base { public DegreeTuitionArticle() { super(); } @Override public boolean isDegreeTuitionArticle() { return true; } @Override public void update(TuitionArticleData data) { update((DegreeTuitionArticleData) data); } public void update(DegreeTuitionArticleData data) { super.update(data); setDegreeTuitionArticleType(data.getDegreeTuitionArticleType()); } @Override public TuitionArticleData convertToDTO() { return new DegreeTuitionArticleData(getCode(), getDescription(), getValue(), getManual(), getCurricularYear(), getStudentStatuteType(), getTuitionArticleState(), getDegreeTuitionArticleType()); } @Override public String getFenixDescription() { if (DegreeTuitionArticleType.DEGREE_IDENTIFIER.equals(getDegreeTuitionArticleType())) { return "[id. prazo pag.]" + getDescription(); } if (DegreeTuitionArticleType.FULL_TUITION.equals(getDegreeTuitionArticleType())) { return "[propina completa] " + getDescription(); } return getDescription(); } }