package net.sourceforge.fenixedu.domain; import com.linkare.commons.metainfo.Linkare; /** * * @author Nuno Correia * @author Ricardo Rodrigues */ public class ScientificArea extends ScientificArea_Base { public ScientificArea() { super(); setRootDomainObject(RootDomainObject.getInstance()); } public ScientificArea(final String name) { this(); super.setName(name); } @Linkare(author = "Paulo Zenida") public static ScientificArea readScientificAreaByName(String name) { for (final ScientificArea scientificArea : RootDomainObject.getInstance().getScientificAreas()) { if (scientificArea.getName().equals(name)) { return scientificArea; } } return null; } @Linkare(author = "Paulo Zenida") @Override public String getShortDescription() { return getName(); } }