using OCL from java [message #692754] |
Tue, 05 July 2011 07:21 |
st oehm Messages: 79 Registered: October 2009 |
Member |
|
|
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
|
|
|
|
|
Re: using OCL from java [message #692820 is a reply to message #692795] |
Tue, 05 July 2011 09:56 |
st oehm Messages: 79 Registered: October 2009 |
Member |
|
|
hi
ok i checked out the other problem with the resource, but for me there is still the problem, that i don't know what is the right call in case of UML since
ocl = OCL.newInstance(new UMLEnvironmentFactory().createEnvironment());
is not working
any hint is welcome
best regards
[Updated on: Tue, 05 July 2011 12:45] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03029 seconds