Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Applying Stereotypes programatically returns IllegalArgumentException
Applying Stereotypes programatically returns IllegalArgumentException [message #628153] Tue, 05 January 2010 11:17 Go to next message
Stefan  is currently offline Stefan Friend
Messages: 13
Registered: October 2009
Junior Member
Hi,

i am trying to apply a stereotype to a model element programatically, every time i do this an IllegalArgumentException is thrown by ElementOperations.applyStereotypes. My project setup is done according to the tutorial for standalone Projects mentioned here several times.
Here the Profile is loaded and the new model is created.

URI annotationProfileFile = URI.createURI(" file:/Users/schegi/Documents/Diplomarbeit/Eclipse/sandbox/UM L-Test/MetaModels/Anntation.profile.uml ");
UMLResource annotationProfileResource = (UMLResource)resourceSet.getResource(annotationProfileFile, true);

URI ontologyAPIModelFile = URI.createURI(" file:/Users/schegi/Documents/Diplomarbeit/Eclipse/sandbox/UM L-Test/Models/Ontology-API.uml ");
UMLResource ontologyAPIModelResource = (UMLResource)resourceSet.createResource(ontologyAPIModelFile );


I can apply the Profile to the model itself and newly created Packages in the model. And if i performe getAppliedProfiles i can see that the Profile is applied correctly.
If i performe a element.getApplicableStereotypes the returned list is empty, every time.

Setting breakpoints in the ElementOperations.applyStereotypes point me to ElementOperations.getExtension.
In there it seems that i cant enter the if-block if (type instanceof org.eclipse.uml2.uml.Class)
but my debugger says that the type variable is of type ClassImpl.
I dont understand this.

The other strange think is that if i outcomment the stereotype application and save the model. I am able to apply stereotypes by hand if i open the model in an uml view. As long as i can say it has nothing to do with the Profile. I think there are some update problems, after applying the Profile.

Thx for help

Stefan
Re: Applying Stereotypes programatically returns IllegalArgumentException [message #628154 is a reply to message #628153] Tue, 05 January 2010 15:25 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
If your debugger is saying that ClassImpl is not an instance of
org.eclipse.uml2.uml.Class then your environment might be invalid. Perhaps
you have included UML2 plugins in your workspace in addition to your debug
environment?

If it is possible, post a section of your profile so that I can verify it
has been defined correctly.

Also, try using the code in CVS used to create the sample UML2 editor. If
you can apply stereotypes using the editor you should be able to cut /paste
that code in your program and it should work.

- James.

"Stefan" <schegi@uni-koblenz.de> wrote in message
news:hhv757$d5q$1@build.eclipse.org...
> Hi,
>
> i am trying to apply a stereotype to a model element programatically,
> every time i do this an IllegalArgumentException is thrown by
> ElementOperations.applyStereotypes. My project setup is done according to
> the tutorial for standalone Projects mentioned here several times.
> Here the Profile is loaded and the new model is created.
> URI annotationProfileFile =
> URI.createURI(" file:/Users/schegi/Documents/Diplomarbeit/Eclipse/sandbox/UM L-Test/MetaModels/Anntation.profile.uml ");
> UMLResource annotationProfileResource =
> (UMLResource)resourceSet.getResource(annotationProfileFile, true);
>
> URI ontologyAPIModelFile =
> URI.createURI(" file:/Users/schegi/Documents/Diplomarbeit/Eclipse/sandbox/UM L-Test/Models/Ontology-API.uml ");
> UMLResource ontologyAPIModelResource =
> (UMLResource)resourceSet.createResource(ontologyAPIModelFile );
>
>
> I can apply the Profile to the model itself and newly created Packages in
> the model. And if i performe getAppliedProfiles i can see that the Profile
> is applied correctly. If i performe a element.getApplicableStereotypes the
> returned list is empty, every time.
>
> Setting breakpoints in the ElementOperations.applyStereotypes point me to
> ElementOperations.getExtension.
> In there it seems that i cant enter the if-block if (type instanceof
> org.eclipse.uml2.uml.Class)
> but my debugger says that the type variable is of type ClassImpl.
> I dont understand this.
>
> The other strange think is that if i outcomment the stereotype application
> and save the model. I am able to apply stereotypes by hand if i open the
> model in an uml view. As long as i can say it has nothing to do with the
> Profile. I think there are some update problems, after applying the
> Profile.
>
> Thx for help
>
> Stefan
>
Re: Applying Stereotypes programatically returns IllegalArgumentException [message #628155 is a reply to message #628153] Tue, 05 January 2010 15:40 Go to previous messageGo to next message
Stefan  is currently offline Stefan Friend
Messages: 13
Registered: October 2009
Junior Member
Hi,

I am working on an standalone application, in an plugin environment all works well. For Example when i skip the programatical Stereotype application and open the generated Model in the Eclipse UML Model Editor i can apply the stereotype without any additional work.

Here is my standalone setup:

final String UML2_200_NS_URI = "http://www.eclipse.org/uml2/2.0.0/UML";

ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(UMLPackage.eCONTENT_TYP E, UMLPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(UMLPackage.eNAME, UMLPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(UMLPackage.eNS_PREFIX, UMLPackage.eINSTANCE);
resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);


EPackage.Registry.INSTANCE.put(UML2_200_NS_URI,EPackage.Regi stry.INSTANCE.get(UMLPackage.eINSTANCE.getNsURI()));
Ecore2XMLPackage.eINSTANCE.getEClassifiers();

Map uriMap = resourceSet.getURIConverter().getURIMap();
URI uri = URI.createURI(" jar:file:/C:/eclipse/plugins/org.eclipse.uml2.uml.resources_ 3.0.0.v200906011111.jar!/ ");
uriMap.put(URI.createURI(UMLResource.LIBRARIES_PATHMAP), uri.appendSegment("libraries").appendSegment(""));
uriMap.put(URI.createURI(UMLResource.METAMODELS_PATHMAP), uri.appendSegment("metamodels").appendSegment(""));
uriMap.put(URI.createURI(UMLResource.PROFILES_PATHMAP), uri.appendSegment("profiles").appendSegment(""));


And here is the Profile:

<?xml version="1.0" encoding="UTF-8"?>
<uml:Profile xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xmi:id="_sgoFIPRsEd6r3-nGxzDfug" name="Annotation" metaclassReference="_DGU0wPRvEd6-do6LdBmvGQ _DGU0wfRvEd6-do6LdBmvGQ _DGU0wvRvEd6-do6LdBmvGQ">
<eAnnotations xmi:id="_mtIVIPRvEd6-do6LdBmvGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
<contents xmi:type="ecore:EPackage" xmi:id="_SWYikfoOEd6sgcJOqXKzHA" name="Annotation" nsURI="http:///schemas/Annotation/_SWYikPoOEd6sgcJOqXKzHA/7" nsPrefix="Annotation">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_SWYikvoOEd6sgcJOqXKzHA" name="_winter">
<eAnnotations xmi:id="_SWYik_oOEd6sgcJOqXKzHA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_M1n2gPRtEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_SWYilPoOEd6sgcJOqXKzHA" name="query" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_SWYilvoOEd6sgcJOqXKzHA" name="var" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_SWYimPoOEd6sgcJOqXKzHA" name="src" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_SWYimvoOEd6sgcJOqXKzHA" name="dst" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_SWYinPoOEd6sgcJOqXKzHA" name="type" ordered="false" lowerBound="1" eType="_SWYipPoOEd6sgcJOqXKzHA"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_SWYinvoOEd6sgcJOqXKzHA" name="base_Class" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_SWYioPoOEd6sgcJOqXKzHA" name="base_Interface" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Interface"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_SWYiovoOEd6sgcJOqXKzHA" name="base_Property" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EEnum" xmi:id="_SWYipPoOEd6sgcJOqXKzHA" name="Type">
<eAnnotations xmi:id="_SWYipfoOEd6sgcJOqXKzHA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_RR70UPRuEd6-do6LdBmvGQ"/>
<eLiterals xmi:id="_SWYipvoOEd6sgcJOqXKzHA" name="PATTERN"/>
<eLiterals xmi:id="_SWYip_oOEd6sgcJOqXKzHA" name="MAPPING" value="1"/>
<eLiterals xmi:id="_SWYiqPoOEd6sgcJOqXKzHA" name="EXTERNALOBJECT" value="2"/>
<eLiterals xmi:id="_SWYiqfoOEd6sgcJOqXKzHA" name="INTERNALOBJECT" value="3"/>
<eLiterals xmi:id="_SWYiqvoOEd6sgcJOqXKzHA" name="LITERAL" value="4"/>
</eClassifiers>
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_vxPTgPoNEd6sgcJOqXKzHA" name="Annotation" nsURI="http:///schemas/Annotation/_vxOscPoNEd6sgcJOqXKzHA/6" nsPrefix="Annotation">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_vxPTgfoNEd6sgcJOqXKzHA" name="_winter">
<eAnnotations xmi:id="_vxPTgvoNEd6sgcJOqXKzHA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_M1n2gPRtEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_vxPTg_oNEd6sgcJOqXKzHA" name="query" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_vxPThfoNEd6sgcJOqXKzHA" name="var" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_vxPTh_oNEd6sgcJOqXKzHA" name="src" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_vxPTifoNEd6sgcJOqXKzHA" name="dst" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_vxPTi_oNEd6sgcJOqXKzHA" name="type" ordered="false" lowerBound="1" eType="_vxPTkvoNEd6sgcJOqXKzHA"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_vxPTjfoNEd6sgcJOqXKzHA" name="base_Class" ordered="false" lowerBound="1"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_vxPTjvoNEd6sgcJOqXKzHA" name="base_Interface" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Interface"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_vxPTkPoNEd6sgcJOqXKzHA" name="base_Property" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EEnum" xmi:id="_vxPTkvoNEd6sgcJOqXKzHA" name="Type">
<eAnnotations xmi:id="_vxPTk_oNEd6sgcJOqXKzHA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_RR70UPRuEd6-do6LdBmvGQ"/>
<eLiterals xmi:id="_vxPTlPoNEd6sgcJOqXKzHA" name="PATTERN"/>
<eLiterals xmi:id="_vxPTlfoNEd6sgcJOqXKzHA" name="MAPPING" value="1"/>
<eLiterals xmi:id="_vxPTlvoNEd6sgcJOqXKzHA" name="EXTERNALOBJECT" value="2"/>
<eLiterals xmi:id="_vxPTl_oNEd6sgcJOqXKzHA" name="INTERNALOBJECT" value="3"/>
<eLiterals xmi:id="_vxPTmPoNEd6sgcJOqXKzHA" name="LITERAL" value="4"/>
</eClassifiers>
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_XH8CgPoNEd6sgcJOqXKzHA" name="Annotation" nsURI="http:///schemas/Annotation/_XH6NUPoNEd6sgcJOqXKzHA/5" nsPrefix="Annotation">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_XH8CgfoNEd6sgcJOqXKzHA" name="_winter">
<eAnnotations xmi:id="_XH8CgvoNEd6sgcJOqXKzHA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_M1n2gPRtEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_XH8Cg_oNEd6sgcJOqXKzHA" name="query" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_XH8ChfoNEd6sgcJOqXKzHA" name="var" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_XH8Ch_oNEd6sgcJOqXKzHA" name="src" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_XH8CifoNEd6sgcJOqXKzHA" name="dst" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_XH8Ci_oNEd6sgcJOqXKzHA" name="type" ordered="false" lowerBound="1" eType="_XH8CkvoNEd6sgcJOqXKzHA"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_XH8CjfoNEd6sgcJOqXKzHA" name="base_Class" ordered="false" lowerBound="1"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_XH8CjvoNEd6sgcJOqXKzHA" name="base_Interface" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Interface"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_XH8CkPoNEd6sgcJOqXKzHA" name="base_Property" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EEnum" xmi:id="_XH8CkvoNEd6sgcJOqXKzHA" name="Type">
<eAnnotations xmi:id="_XH8Ck_oNEd6sgcJOqXKzHA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_RR70UPRuEd6-do6LdBmvGQ"/>
<eLiterals xmi:id="_XH8pkPoNEd6sgcJOqXKzHA" name="PATTERN"/>
<eLiterals xmi:id="_XH8pkfoNEd6sgcJOqXKzHA" name="MAPPING" value="1"/>
<eLiterals xmi:id="_XH8pkvoNEd6sgcJOqXKzHA" name="EXTERNALOBJECT" value="2"/>
<eLiterals xmi:id="_XH8pk_oNEd6sgcJOqXKzHA" name="INTERNALOBJECT" value="3"/>
<eLiterals xmi:id="_XH8plPoNEd6sgcJOqXKzHA" name="LITERAL" value="4"/>
</eClassifiers>
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_BO1_0fl_Ed6c3LQ2uro9sg" name="Annotation" nsURI="http:///schemas/Annotation/_BO1_0Pl_Ed6c3LQ2uro9sg/4" nsPrefix="Annotation">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_BO1_0vl_Ed6c3LQ2uro9sg" name="_winter">
<eAnnotations xmi:id="_BO1_0_l_Ed6c3LQ2uro9sg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_M1n2gPRtEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_BO1_1Pl_Ed6c3LQ2uro9sg" name="query" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_BO1_1vl_Ed6c3LQ2uro9sg" name="var" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_BO1_2Pl_Ed6c3LQ2uro9sg" name="src" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_BO1_2vl_Ed6c3LQ2uro9sg" name="dst" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_BO1_3Pl_Ed6c3LQ2uro9sg" name="type" ordered="false" lowerBound="1" eType="_BO2m4vl_Ed6c3LQ2uro9sg"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_BO1_3vl_Ed6c3LQ2uro9sg" name="base_Class" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_BO1_4Pl_Ed6c3LQ2uro9sg" name="base_Interface" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Interface"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_BO2m4Pl_Ed6c3LQ2uro9sg" name="base_Property" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EEnum" xmi:id="_BO2m4vl_Ed6c3LQ2uro9sg" name="Type">
<eAnnotations xmi:id="_BO2m4_l_Ed6c3LQ2uro9sg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_RR70UPRuEd6-do6LdBmvGQ"/>
<eLiterals xmi:id="_BO2m5Pl_Ed6c3LQ2uro9sg" name="PATTERN"/>
<eLiterals xmi:id="_BO2m5fl_Ed6c3LQ2uro9sg" name="MAPPING" value="1"/>
<eLiterals xmi:id="_BO2m5vl_Ed6c3LQ2uro9sg" name="EXTERNALOBJECT" value="2"/>
<eLiterals xmi:id="_BO2m5_l_Ed6c3LQ2uro9sg" name="INTERNALOBJECT" value="3"/>
<eLiterals xmi:id="_BO2m6Pl_Ed6c3LQ2uro9sg" name="LITERAL" value="4"/>
</eClassifiers>
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_tdUykfl9Ed6c3LQ2uro9sg" name="Annotation" nsURI="http:///schemas/Annotation/_tdUykPl9Ed6c3LQ2uro9sg/3" nsPrefix="Annotation">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_tdUykvl9Ed6c3LQ2uro9sg" name="_winter">
<eAnnotations xmi:id="_tdUyk_l9Ed6c3LQ2uro9sg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_M1n2gPRtEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_tdUylPl9Ed6c3LQ2uro9sg" name="query" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_tdUylvl9Ed6c3LQ2uro9sg" name="var" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_tdUymPl9Ed6c3LQ2uro9sg" name="src" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_tdUymvl9Ed6c3LQ2uro9sg" name="dst" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_tdUynPl9Ed6c3LQ2uro9sg" name="type" ordered="false" lowerBound="1" eType="_tdUypPl9Ed6c3LQ2uro9sg"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_tdUynvl9Ed6c3LQ2uro9sg" name="base_Class" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_tdUyoPl9Ed6c3LQ2uro9sg" name="base_Interface" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Interface"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_tdUyovl9Ed6c3LQ2uro9sg" name="base_Property" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EEnum" xmi:id="_tdUypPl9Ed6c3LQ2uro9sg" name="Type">
<eAnnotations xmi:id="_tdUypfl9Ed6c3LQ2uro9sg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_RR70UPRuEd6-do6LdBmvGQ"/>
<eLiterals xmi:id="_tdUypvl9Ed6c3LQ2uro9sg" name="PATTERN"/>
<eLiterals xmi:id="_tdUyp_l9Ed6c3LQ2uro9sg" name="MAPPING" value="1"/>
<eLiterals xmi:id="_tdUyqPl9Ed6c3LQ2uro9sg" name="EXTERNALOBJECT" value="2"/>
<eLiterals xmi:id="_tdUyqfl9Ed6c3LQ2uro9sg" name="INTERNALOBJECT" value="3"/>
<eLiterals xmi:id="_tdUyqvl9Ed6c3LQ2uro9sg" name="LITERAL" value="4"/>
</eClassifiers>
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_rs1zwfl6Ed6c3LQ2uro9sg" name="Annotation" nsURI="http:///schemas/Annotation/_rs1zwPl6Ed6c3LQ2uro9sg/2" nsPrefix="Annotation">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_rs1zwvl6Ed6c3LQ2uro9sg" name="_winter">
<eAnnotations xmi:id="_rs1zw_l6Ed6c3LQ2uro9sg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_M1n2gPRtEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_rs1zxPl6Ed6c3LQ2uro9sg" name="query" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_rs1zxvl6Ed6c3LQ2uro9sg" name="var" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_rs1zyPl6Ed6c3LQ2uro9sg" name="src" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_rs1zyvl6Ed6c3LQ2uro9sg" name="dst" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_rs1zzPl6Ed6c3LQ2uro9sg" name="type" ordered="false" lowerBound="1" eType="_rs1z1Pl6Ed6c3LQ2uro9sg"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_rs1zzvl6Ed6c3LQ2uro9sg" name="base_Class" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_rs1z0Pl6Ed6c3LQ2uro9sg" name="base_Interface" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Interface"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_rs1z0vl6Ed6c3LQ2uro9sg" name="base_Property" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EEnum" xmi:id="_rs1z1Pl6Ed6c3LQ2uro9sg" name="Type">
<eAnnotations xmi:id="_rs1z1fl6Ed6c3LQ2uro9sg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_RR70UPRuEd6-do6LdBmvGQ"/>
<eLiterals xmi:id="_rs1z1vl6Ed6c3LQ2uro9sg" name="PATTERN"/>
<eLiterals xmi:id="_rs1z1_l6Ed6c3LQ2uro9sg" name="MAPPING" value="1"/>
<eLiterals xmi:id="_rs1z2Pl6Ed6c3LQ2uro9sg" name="EXTERNALOBJECT" value="2"/>
<eLiterals xmi:id="_rs1z2fl6Ed6c3LQ2uro9sg" name="INTERNALOBJECT" value="3"/>
<eLiterals xmi:id="_rs1z2vl6Ed6c3LQ2uro9sg" name="LITERAL" value="4"/>
</eClassifiers>
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_GtJqUPl5Ed6c3LQ2uro9sg" name="Annotation" nsURI="http:///schemas/Annotation/_GtHOEPl5Ed6c3LQ2uro9sg/1" nsPrefix="Annotation">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_GtJqUfl5Ed6c3LQ2uro9sg" name="_winter">
<eAnnotations xmi:id="_GtJqUvl5Ed6c3LQ2uro9sg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_M1n2gPRtEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_GtJqU_l5Ed6c3LQ2uro9sg" name="query" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_GtJqVfl5Ed6c3LQ2uro9sg" name="var" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_GtJqV_l5Ed6c3LQ2uro9sg" name="src" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_GtJqWfl5Ed6c3LQ2uro9sg" name="dst" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_GtJqW_l5Ed6c3LQ2uro9sg" name="type" ordered="false" lowerBound="1" eType="_GtJqY_l5Ed6c3LQ2uro9sg"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_GtJqXfl5Ed6c3LQ2uro9sg" name="base_Class" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_GtJqX_l5Ed6c3LQ2uro9sg" name="base_Interface" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Interface"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_GtJqYfl5Ed6c3LQ2uro9sg" name="base_Property" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EEnum" xmi:id="_GtJqY_l5Ed6c3LQ2uro9sg" name="Type">
<eAnnotations xmi:id="_GtJqZPl5Ed6c3LQ2uro9sg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_RR70UPRuEd6-do6LdBmvGQ"/>
<eLiterals xmi:id="_GtJqZfl5Ed6c3LQ2uro9sg" name="PATTERN"/>
<eLiterals xmi:id="_GtJqZvl5Ed6c3LQ2uro9sg" name="MAPPING" value="1"/>
<eLiterals xmi:id="_GtJqZ_l5Ed6c3LQ2uro9sg" name="EXTERNALOBJECT" value="2"/>
<eLiterals xmi:id="_GtJqaPl5Ed6c3LQ2uro9sg" name="INTERNALOBJECT" value="3"/>
<eLiterals xmi:id="_GtJqafl5Ed6c3LQ2uro9sg" name="LITERAL" value="4"/>
</eClassifiers>
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_mtI8MPRvEd6-do6LdBmvGQ" name="Annotation" nsURI="http:///schemas/Annotation/_mtEqwPRvEd6-do6LdBmvGQ/0" nsPrefix="Annotation">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_mtI8MfRvEd6-do6LdBmvGQ" name="_winter">
<eAnnotations xmi:id="_mtI8MvRvEd6-do6LdBmvGQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_M1n2gPRtEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_mtI8M_RvEd6-do6LdBmvGQ" name="query" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_mtI8NfRvEd6-do6LdBmvGQ" name="var" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_mtI8N_RvEd6-do6LdBmvGQ" name="src" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_mtI8OfRvEd6-do6LdBmvGQ" name="dst" ordered="false" upperBound="-1">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_mtI8O_RvEd6-do6LdBmvGQ" name="type" ordered="false" lowerBound="1" eType="_mtI8Q_RvEd6-do6LdBmvGQ"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_mtI8PfRvEd6-do6LdBmvGQ" name="base_Class" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Class"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_mtI8P_RvEd6-do6LdBmvGQ" name="base_Interface" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Interface"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_mtI8QfRvEd6-do6LdBmvGQ" name="base_Property" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EEnum" xmi:id="_mtI8Q_RvEd6-do6LdBmvGQ" name="Type">
<eAnnotations xmi:id="_mtI8RPRvEd6-do6LdBmvGQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_RR70UPRuEd6-do6LdBmvGQ"/>
<eLiterals xmi:id="_mtI8RfRvEd6-do6LdBmvGQ" name="PATTERN"/>
<eLiterals xmi:id="_mtI8RvRvEd6-do6LdBmvGQ" name="MAPPING" value="1"/>
<eLiterals xmi:id="_mtI8R_RvEd6-do6LdBmvGQ" name="EXTERNALOBJECT" value="2"/>
<eLiterals xmi:id="_mtI8SPRvEd6-do6LdBmvGQ" name="INTERNALOBJECT" value="3"/>
<eLiterals xmi:id="_mtI8SfRvEd6-do6LdBmvGQ" name="LITERAL" value="4"/>
</eClassifiers>
</contents>
</eAnnotations>
<elementImport xmi:id="_DGU0wPRvEd6-do6LdBmvGQ">
<importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</elementImport>
<elementImport xmi:id="_DGU0wfRvEd6-do6LdBmvGQ">
<importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Interface"/>
</elementImport>
<elementImport xmi:id="_DGU0wvRvEd6-do6LdBmvGQ">
<importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Property"/>
</elementImport>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_M1n2gPRtEd6-do6LdBmvGQ" name="@winter">
<ownedAttribute xmi:id="_Q2qqEPRtEd6-do6LdBmvGQ" name="query">
<type xmi:type="uml:PrimitiveType" href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedAttribute>
<ownedAttribute xmi:id="_SoU08PRtEd6-do6LdBmvGQ" name="var">
<type xmi:type="uml:PrimitiveType" href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedAttribute>
<ownedAttribute xmi:id="_TnM4APRtEd6-do6LdBmvGQ" name="src">
<type xmi:type="uml:PrimitiveType" href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_p3r3gPRtEd6-do6LdBmvGQ" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_pJps0PRtEd6-do6LdBmvGQ"/>
</ownedAttribute>
<ownedAttribute xmi:id="_UkXq4PRtEd6-do6LdBmvGQ" name="dst">
<type xmi:type="uml:PrimitiveType" href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_sUFogPRtEd6-do6LdBmvGQ" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rhj_YPRtEd6-do6LdBmvGQ"/>
</ownedAttribute>
<ownedAttribute xmi:id="_Vd568PRtEd6-do6LdBmvGQ" name="type" type="_RR70UPRuEd6-do6LdBmvGQ"/>
<ownedAttribute xmi:id="_RmSeQfRvEd6-do6LdBmvGQ" name="base_Class" association="_RmR3MPRvEd6-do6LdBmvGQ">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
<ownedAttribute xmi:id="_RmSeRPRvEd6-do6LdBmvGQ" name="base_Interface" association="_RmR3MPRvEd6-do6LdBmvGQ">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Interface"/>
</ownedAttribute>
<ownedAttribute xmi:id="_RmTFUfRvEd6-do6LdBmvGQ" name="base_Property" association="_RmR3MPRvEd6-do6LdBmvGQ">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Property"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="_RR70UPRuEd6-do6LdBmvGQ" name="Type">
<ownedLiteral xmi:id="_TXRJIPRuEd6-do6LdBmvGQ" name="PATTERN"/>
<ownedLiteral xmi:id="_US8HMPRuEd6-do6LdBmvGQ" name="MAPPING"/>
<ownedLiteral xmi:id="_U_jVkPRuEd6-do6LdBmvGQ" name="EXTERNALOBJECT"/>
<ownedLiteral xmi:id="_VwXugPRuEd6-do6LdBmvGQ" name="INTERNALOBJECT"/>
<ownedLiteral xmi:id="_WY8xcPRuEd6-do6LdBmvGQ" name="LITERAL"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension" xmi:id="_RmR3MPRvEd6-do6LdBmvGQ" name="Extension_@winter" memberEnd="_RmSeQPRvEd6-do6LdBmvGQ _RmSeQfRvEd6-do6LdBmvGQ _RmSeRPRvEd6-do6LdBmvGQ _RmTFUfRvEd6-do6LdBmvGQ">
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_RmSeQPRvEd6-do6LdBmvGQ" name="extension_@winter" type="_M1n2gPRtEd6-do6LdBmvGQ" association="_RmR3MPRvEd6-do6LdBmvGQ"/>
</packagedElement>
</uml:Profile>


Thx for your work, hope you could help.

Stefan
Re: Applying Stereotypes programatically returns IllegalArgumentException [message #639529 is a reply to message #628155] Tue, 16 November 2010 19:58 Go to previous message
Engin Deveci is currently offline Engin DeveciFriend
Messages: 7
Registered: November 2010
Junior Member
Hi Stefan,

Did you find a solution to your problem? I've faced the same problem.

Best Regards,
Engin Deveci
Previous Topic:Reading and writing UML file with MWE Workflow
Next Topic:Galileo/Helios UML profile conflict.
Goto Forum:
  


Current Time: Thu Apr 18 10:51:12 GMT 2024

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

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

Back to the top