org.eclipse.ocl.Query.evaluate()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.eclipse.ocl.Query.evaluate方法的一些代码示例,展示了Query.evaluate的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.evaluate方法的具体详情如下:
包路径:org.eclipse.ocl.Query
类名称:Query
方法名:evaluate

Query.evaluate介绍

[英]Evaluates the query. This method is used when there is no 'self' context required by the query. Either the query is constant, or uses allInstances() exclusively for evaluation.
[中]计算查询。当查询不需要“自我”上下文时,使用此方法。查询要么是常量,要么只使用allInstances()进行计算。

代码示例

代码示例来源:origin: org.eclipse.emf.cdo.server/ocl

protected Object evaluate(Query<EClassifier, EClass, EObject> query, EObject object)
{
 if (object == null)
 {
  return query.evaluate();
 }
 return query.evaluate(object);
}

代码示例来源:origin: org.eclipse.ocl/ecore

public Object evaluate() {
  return delegate.evaluate();
}

代码示例来源:origin: org.eclipse.ocl/uml

public Object evaluate(Object obj) {
  return delegate.evaluate(obj);
}

代码示例来源:origin: org.eclipse.ocl/uml

public List<?> evaluate(List<?> objects) {
  return delegate.evaluate(objects);
}

代码示例来源:origin: org.eclipse.ocl/uml

public Object evaluate() {
  return delegate.evaluate();
}

代码示例来源:origin: org.eclipse.ocl/ecore

public List<?> evaluate(List<?> objects) {
  return delegate.evaluate(objects);
}

代码示例来源:origin: org.eclipse.ocl/ecore

public Object evaluate(Object obj) {
  return delegate.evaluate(obj);
}

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_POLICY_ACTIVITY_HOLDER_TEMPLATE_ID__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(policyActivity);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_POLICY_ACTIVITY_HOLDER_HOLDER_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(policyActivity);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_PRODUCT_INSTANCE_SCOPING_ENTITY_ID__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(productInstance);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_GENERAL_HEADER_CONSTRAINTS_AUTHOR_TIME__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(generalHeaderConstraints);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_POLICY_ACTIVITY_PAYER_TYPE_CODE__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(policyActivity);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_POLICY_ACTIVITY_GUARANTOR_TIME__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(policyActivity);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_POLICY_ACTIVITY_COVERAGE_HIGH_TIME__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(policyActivity);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_POLICY_ACTIVITY_HOLDER_HOLDER_ROLE_ID__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(policyActivity);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_COMMENT_ACTIVITY_AUTHOR_ASSIGNED_AUTHOR_ID__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(commentActivity);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_OPERATIVE_NOTE_DOCUMENTATION_OF_SERVICE_EVENT_EFFECTIVE_TIME__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(operativeNote);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_FAMILY_HISTORY_ORGANIZER_SUBJECT_RELATED_SUBJECT__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(familyHistoryOrganizer);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_CONSULTATION_NOTE_COMPONENT_OF_ENCOMPASSING_ENCOUNTER__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(consultationNote);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

代码示例来源:origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda-consol

Object oclResult = VALIDATE_POLICY_ACTIVITY_PAYER_PAYER_ASSIGNED_ENTITY_ADDR__DIAGNOSTIC_CHAIN_MAP__EOCL_QRY.evaluate(policyActivity);
if (oclResult != null && oclResult instanceof Collection) {
  Collection<? extends EObject> oclResultSet = (Collection<? extends EObject>) oclResult;

相关文章