| Summary: | [MWE2] Class Identifiers for Associations | ||
|---|---|---|---|
| Product: | [Modeling] EMFT | Reporter: | Daniel Mising name <danielku15> |
| Component: | MWE | Assignee: | Project Inbox <emft-mwe-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Build Identifier: I20110613-1736 If you want to reference a class within an association, you are forced to specify a full qualified class name within a string: in MWE2: myProperty = "at.myproduct.module.MyClass" in Java public void setMyProperty(String clazz) { myProperty = Class.forName(clazz); } It should be possible to reference class definitions as an own literal in MWE2 myProperty = at.myproduct.module.MyClass in Java public void setMyProperty(Class<?> clazz) { myProperty = clazz; } Of course the class constraints need to be checked public void setMyProperty(Class<MyClass> clz) public void setMyProperty(Class<? extends MyBaseClass> clz) public void setMyProperty(Class<? super MyBaseClass> clz) Reproducible: Always Steps to Reproduce: 1. Create a Workflow component which provides a Class<?> property 2. Try to assign a value within a MWE2 workflow