org.eclipse.ocl.Query类的使用及代码示例

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

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

Query介绍

[英]An OCL constraint or query. The query is validated for correctness when it is created. The query can subsequently be evaluated on a single object or on multiple objects in one operation.

See the Environment class for a description of the generic type parameters of this class.
[中]OCL约束或查询。创建查询时,将验证其正确性。查询随后可以在一个操作中对单个对象或多个对象求值。
有关该类的泛型类型参数的描述,请参见Environment类。

代码示例

代码示例来源: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 boolean check(List<?> objects) {
  return delegate.check(objects);
}

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

public EvaluationEnvironment<EClassifier, ?, ?, EClass, EObject> getEvaluationEnvironment() {
  return delegate.getEvaluationEnvironment();
}

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

public String queryText() {
  return delegate.queryText();
}

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

public EClassifier resultType() {
  return delegate.resultType();
}

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

public OCLExpression getExpression() {
  return (OCLExpression) delegate.getExpression();
}

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

public <T> List<T> select(List<T> objects) {
  return delegate.select(objects);
}

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

public <T> List<T> reject(List<T> objects) {
  return delegate.reject(objects);
}

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

public Map<EClass, ? extends Set<? extends EObject>> getExtentMap() {
  return delegate.getExtentMap();
}

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

public String queryText() {
  return delegate.queryText();
}

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

public Classifier resultType() {
  return delegate.resultType();
}

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

public OCLExpression getExpression() {
  return (OCLExpression) delegate.getExpression();
}

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

public <T> List<T> select(List<T> objects) {
  return delegate.select(objects);
}

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

public <T> List<T> reject(List<T> objects) {
  return delegate.reject(objects);
}

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

public Map<Class, ? extends Set<? extends EObject>> getExtentMap() {
  return delegate.getExtentMap();
}

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

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

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

public boolean check(Object obj) {
  return delegate.check(obj);
}

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

public EvaluationEnvironment<Classifier, ?, ?, Class, EObject> getEvaluationEnvironment() {
  return delegate.getEvaluationEnvironment();
}

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

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

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

public boolean check(Object obj) {
  return delegate.check(obj);
}

相关文章