package module.mission.domain; import pt.ist.fenixframework.consistencyPredicates.ConsistencyPredicate; public class VehiclItemJustification extends VehiclItemJustification_Base { public VehiclItemJustification(final VehiclItem vehiclItem) { super(); setMissionSystem(MissionSystem.getInstance()); setVehiclItem(vehiclItem); } public void delete() { setVehiclItem(null); setMissionSystem(null); deleteDomainObject(); } public void copy(VehiclItemJustification justificationToWrite) { justificationToWrite.setJustification(getJustification()); justificationToWrite.setMotive(getMotive()); } @ConsistencyPredicate public boolean checkHasVehicleItem() { return getVehiclItem() != null; } @Deprecated public boolean hasMotive() { return getMotive() != null; } @Deprecated public boolean hasJustification() { return getJustification() != null; } @Deprecated public boolean hasMissionSystem() { return getMissionSystem() != null; } @Deprecated public boolean hasVehiclItem() { return getVehiclItem() != null; } }