My problem is that I have difficulties to determine wheter my Object is an actual Class. If i check if it is an instanceof (org.eclipse.uml2.uml.Class) all Types which inherit from (org.eclipse.uml2.uml.Class) :
You can check that the eClass() is exactly the one from
UML2Package.eINSTANCE.getClass_(); I'm not sure if the
generatedUML2Package has a Literals interface with a CLASS constant).
On 30/11/2012 6:03 PM, Florian Wartenberg wrote:
> My problem is that I have difficulties to determine wheter my Object
> is an actual Class. If i check if it is an instanceof
> (org.eclipse.uml2.uml.Class) all Types which inherit from
> (org.eclipse.uml2.uml.Class) :
> org.eclipse.uml2.uml.AssociationClass (also extends
> org.eclipse.uml2.uml.Interaction (also extends
> org.eclipse.uml2.uml.Node (also extends
> Also fullfill this test. So maybe someone has an idea how to find out
> if it is an actual class.