Closed spmiller2055 closed 9 years ago
Hi Steve,
Please see https://wiki.sei.cmu.edu/aadl/index.php/Metamodel_updates#Annex_handling it should provide all the information you need. Please let us know if it addresses your need.
Julien.
Hi Steve,
look at org.osate.annexsupport.AnnexUtil It has a method for getting all annex subclauses of a certain annex type.
I use a variant of this method in EMV2Util where I am dealing with inheriting elements of the EMV2 annex, e.g., inheriting a transition declaration from a component type that has been extended.
Hi Peter,
Thanks. How do you specify the second Eclass argument? For example, to specify getting all the Behavior Annex annexes?
On Mon, Jul 21, 2014 at 9:28 PM, Peter Feiler notifications@github.com wrote:
Hi Steve,
look at org.osate.annexsupport.AnnexUtil It has a method for getting all annex subclauses of a certain annex type.
I use a variant of this method in EMV2Util where I am dealing with inheriting elements of the EMV2 annex, e.g., inheriting a transition declaration from a component type that has been extended.
— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/380#issuecomment-49691199.
You get this from the Java instance of the Ecore model (generated by EMF) For EMV2 it is ErrorModelPackage.eINSTANCE.getErrorModelSubclause();
The method getAllAnnexSubclauses is undefined for the type ComponentClassifier in the current release of OSATE. Is there a method that should be used instead?