Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Check] invoke programmatically
[Check] invoke programmatically [message #642428] Wed, 01 December 2010 04:59 Go to next message
Eclipse UserFriend
How is it possible to invoke all constraints in one (or more) Check file(s) programmatically in Java?

Or is it only possible with an mwe workflow?

Thank you
Stephan
Re: [Check] invoke programmatically [message #642467 is a reply to message #642428] Wed, 01 December 2010 08:18 Go to previous message
Eclipse UserFriend
You can use the CheckFacade to do this.

	public final static void checkAll(final String checkFile, final Collection<?> toCheck, final ExecutionContext ctx, final Issues issues) 



checkFile: Qualified name of the check file to invoke, like you pass it in MWE
toCheck: Collection of elements
ctx: create an instance of ExecutionContextImpl, maybe look at AbstractExpressionUsingWorkflowComponent#getExecutionContext (). Important: Register the metamodel(s) used.
issues: instance of IssuesImpl

~Karsten
Previous Topic:[Xpand] Changes in 1.1
Next Topic:[Acceleo 3] Run transformation from java code
Goto Forum:
  


Current Time: Tue Jul 01 18:10:43 EDT 2025

Powered by FUDForum. Page generated in 0.03277 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top