using OCL from java [message #692754] |
Tue, 05 July 2011 03:21  |
Eclipse User |
|
|
|
hello
i'm new with OCL in eclipse, so that coul be a noob question:
i tried to validate an uml model at runtime with java
i read the OCL Interpreter Tutorial and tried to use this for my aim
but i could not run the example, because i got a compile error in this line
OCL<?, EClassifier, ?, ?, ?, ?, ?, ?, ?, Constraint, EClass, EObject> ocl;
"the type OCL is not generic"
if i had understand the tutorial, i have to adapt the following line
ocl = OCL.newInstance(EcoreEnvironmentFactory.INSTANCE);
into something like this:
ocl = OCL.newInstance(UMLEnvironment.);
but there is no choice of INSTANCE like above
ever help is welcome
regards
stoehm
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05064 seconds