Referencing XSD Components from Java Blackbox [message #1018517] |
Wed, 13 March 2013 21:24  |
Eclipse User |
|
|
|
I currently have a QVTO file and a Java blackbox unit (registered with extension point org.eclipse.m2m.qvt.oml.javaBlackboxUnits). The blackbox unit has been working. So has the QVTO file.
I have added a new method to the Java blackbox unit with this method signature:
@Operation(contextual = true, kind = Operation.Kind.HELPER)
public static void setSchemaForSchema(final XSDSchema self, final String prefix, final String namespace) { .... }
I added the following line to my QVTO file:
modeltype XSD uses 'http://www.eclipse.org/xsd/2002/XSD';
Now the blackbox fails to load and I get the following error in my error log:
Can't resolve 'interface org.eclipse.xsd.XSDSchema' as OCL type in java method 'public static void my.Blackbox.setSchemaForSchema(org.eclipse.xsd.XSDSchema,java.lang.String,java.lang.String)'
Am I using the wrong modeltype declaration? I can't seem to find another that would make sense.
Thanks in advance for the help,
---Tim---
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03830 seconds