|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractExtensionManager
org.topcased.modeler.evaluator.extension.EvaluatorsManager
public final class EvaluatorsManager
Class that stores the evaluators registered with the evaluators extension point. Creation 20 juin 06
Method Summary | |
---|---|
protected void |
addExtension(org.eclipse.core.runtime.IExtension extension)
|
boolean |
evaluate(EObject eObject,
java.lang.String rule,
java.lang.String language)
Evaluate an EObject along several kind of evaluation (EMF, OCL...) |
EvaluatorDescriptor |
find(java.lang.String id)
Find a descriptor in the registry. |
EvaluatorDescriptor[] |
getEvaluators()
Get an enumeration of evaluator descriptors. |
static EvaluatorsManager |
getInstance()
Get the shared instance. |
protected void |
removeExtension(org.eclipse.core.runtime.IExtension extension)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EvaluatorsManager getInstance()
public EvaluatorDescriptor find(java.lang.String id)
id
- the searched evaluator id
null
if not foundpublic boolean evaluate(EObject eObject, java.lang.String rule, java.lang.String language) throws EvaluatorException
eObject
- the EObject to validaterule
- a String representing the rule to checklanguage
- the language in which the rule is expressed
EvaluatorException
- the constraint cannot be interpreted by the
enginepublic EvaluatorDescriptor[] getEvaluators()
protected void addExtension(org.eclipse.core.runtime.IExtension extension)
org.topcased.facilities.extensions.AbstractExtensionManager#addExtension(org.eclipse.core.runtime.IExtension)
protected void removeExtension(org.eclipse.core.runtime.IExtension extension)
org.topcased.facilities.extensions.AbstractExtensionManager#removeExtension(org.eclipse.core.runtime.IExtension)
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.