|
OCL | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topcased.service.oclchecker.helper.OCLServiceHelper
public class OCLServiceHelper
Helper for common code between checker and statistic services.
Mainly composed by methods accessible by a static way.
| Constructor Summary | |
|---|---|
OCLServiceHelper()
|
|
| Method Summary | |
|---|---|
static org.eclipse.ocl.expressions.OCLExpression<EClassifier> |
createOCLExpression(java.lang.String mmURI,
java.lang.String context,
java.lang.String rule)
Creates an OCL Expression |
static org.eclipse.ocl.expressions.OCLExpression<EClassifier> |
createOCLQuery(java.lang.String mmURI,
java.lang.String context,
java.lang.String rule)
Creates an OCL Query |
static EClass |
getContext(java.lang.String mmURI,
java.lang.String context)
Gets the metamodel and looks for the textual context in order to return the corresponding model element. |
static EPackage |
getMetaModelPackage(java.lang.String mmURI)
Gets the metamodel corresponding to the URI given in parameter. The EMF registry is inspected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OCLServiceHelper()
| Method Detail |
|---|
public static EPackage getMetaModelPackage(java.lang.String mmURI)
mmURI - The metamodel of the model
public static EClass getContext(java.lang.String mmURI,
java.lang.String context)
mmURI - The metamodel of the modelcontext - The context of the OCL rule to apply
public static org.eclipse.ocl.expressions.OCLExpression<EClassifier> createOCLExpression(java.lang.String mmURI,
java.lang.String context,
java.lang.String rule)
throws org.eclipse.ocl.ParserException
mmURI - The metamodel of the modelcontext - The context of the OCL rule to applyrule - The OCL rule to execute
ModelingServiceError - If an error occured while the creation of the OCLHelper.
org.eclipse.ocl.ParserException
public static org.eclipse.ocl.expressions.OCLExpression<EClassifier> createOCLQuery(java.lang.String mmURI,
java.lang.String context,
java.lang.String rule)
throws org.eclipse.ocl.ParserException
mmURI - The metamodel of the modelcontext - The context of the OCL rule to applyrule - The OCL rule to execute
ModelingServiceError - If an error occured while the creation of the OCLHelper.
org.eclipse.ocl.ParserException
|
OCL | |||||||||
| 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.