Modelers

org.topcased.modeler.evaluator.ocl
Class OCLEvaluator

java.lang.Object
  extended by org.topcased.modeler.evaluator.ocl.OCLEvaluator
All Implemented Interfaces:
IEvaluator

public class OCLEvaluator
extends java.lang.Object
implements IEvaluator

Validate an EObject with the EMF basic validation
creation : 16 janv. 2006


Constructor Summary
OCLEvaluator()
           
 
Method Summary
 boolean eval(EObject eObject, java.lang.String rule)
          Evaluate the specified Object, using a specified context and a given rule (the condition to match)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OCLEvaluator

public OCLEvaluator()
Method Detail

eval

public boolean eval(EObject eObject,
                    java.lang.String rule)
Description copied from interface: IEvaluator
Evaluate the specified Object, using a specified context and a given rule (the condition to match)

Specified by:
eval in interface IEvaluator
Parameters:
eObject - the EObject to evaluate
rule - a String that represent the constraint to evaluate
Returns:
the evaluation status
See Also:
IEvaluator.eval(org.eclipse.emf.ecore.EObject, java.lang.String)

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.