/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public ISeverity getSeverity() { if (GET_SEVERITY__EOCL_QRY == null) { OCL.Helper helper = EOCL_ENV.createOCLHelper(); helper.setOperationContext( DomainPackage.Literals.IPROBLEM_ENTRY, DomainPackage.Literals.IPROBLEM_ENTRY.getEAllOperations().get(18)); try { GET_SEVERITY__EOCL_QRY = helper.createQuery(GET_SEVERITY__EOCL_EXP); } catch (ParserException pe) { throw new UnsupportedOperationException(pe.getLocalizedMessage()); } } OCL.Query query = EOCL_ENV.createQuery(GET_SEVERITY__EOCL_QRY); return (ISeverity) query.evaluate(this); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public IProblemStatusObservation getProblemStatus() { if (GET_PROBLEM_STATUS__EOCL_QRY == null) { OCL.Helper helper = EOCL_ENV.createOCLHelper(); helper.setOperationContext( DomainPackage.Literals.IPROBLEM_ENTRY, DomainPackage.Literals.IPROBLEM_ENTRY.getEAllOperations().get(21)); try { GET_PROBLEM_STATUS__EOCL_QRY = helper.createQuery(GET_PROBLEM_STATUS__EOCL_EXP); } catch (ParserException pe) { throw new UnsupportedOperationException(pe.getLocalizedMessage()); } } OCL.Query query = EOCL_ENV.createQuery(GET_PROBLEM_STATUS__EOCL_QRY); return (IProblemStatusObservation) query.evaluate(this); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public ICauseOfDeathObservation getCauseOfDeath() { if (GET_CAUSE_OF_DEATH__EOCL_QRY == null) { OCL.Helper helper = EOCL_ENV.createOCLHelper(); helper.setOperationContext( DomainPackage.Literals.IPROBLEM_ENTRY, DomainPackage.Literals.IPROBLEM_ENTRY.getEAllOperations().get(30)); try { GET_CAUSE_OF_DEATH__EOCL_QRY = helper.createQuery(GET_CAUSE_OF_DEATH__EOCL_EXP); } catch (ParserException pe) { throw new UnsupportedOperationException(pe.getLocalizedMessage()); } } OCL.Query query = EOCL_ENV.createQuery(GET_CAUSE_OF_DEATH__EOCL_QRY); return (ICauseOfDeathObservation) query.evaluate(this); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public EList<IComment> getComments() { if (GET_COMMENTS__EOCL_QRY == null) { OCL.Helper helper = EOCL_ENV.createOCLHelper(); helper.setOperationContext( DomainPackage.Literals.IPROBLEM_ENTRY, DomainPackage.Literals.IPROBLEM_ENTRY.getEAllOperations().get(27)); try { GET_COMMENTS__EOCL_QRY = helper.createQuery(GET_COMMENTS__EOCL_EXP); } catch (ParserException pe) { throw new UnsupportedOperationException(pe.getLocalizedMessage()); } } OCL.Query query = EOCL_ENV.createQuery(GET_COMMENTS__EOCL_QRY); @SuppressWarnings("unchecked") Collection<IComment> result = (Collection<IComment>) query.evaluate(this); return new BasicEList.UnmodifiableEList<IComment>(result.size(), result.toArray()); }