Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Instead of going directly for the UML2EcoreConverter, take a look at</p> <p>org.eclipse.uml2.uml.util.UMLUtil.convertToEcore(Package, Map)</p> <p>It takes a package and a Map of options and returns the converted EPackage(s). The options map can be fed the options from UMLUtil.UML2EcoreConverter.OPTION__* as keys. Possible values are UMLUtil.OPTION_<em>DISCARD/OPTION</em>_IGNORE/OPTION_<em>PROCESS/OPTION</em>_REPORT. All options default to OPTION__IGNORE.</p> <p>Most of these options are for processing concepts of UML2 class diagrams that don't map cleanly to Ecore, so you can control how they should be handled.</p> <p>For extended feature mapping (subset/union, redefines ...), see OPTION_<em>REDEFINING</em>*, OPTION_<em>SUBSETTING</em>*, OPTION__UNION_PROPERTIES, OPTION_<em>DUPLICATE</em>*. It should be okay to set all of these to OPTION_PROCESS.</p> <p>One option you might want to disable is OPTION__SUPER_CLASS_ORDER. This will reorder the generalizations and interface realizations in alphabetical order, which might cause implementation concerns when you want to inherit a specific super implementation. Another one is OPTION__CAMEL_CASE_NAMES, which will process class and feature names to force a strict camel case scheme. This only makes sense in cases where your UML artifacts don't have valid java names. Just set them to OPTION_IGNORE, or, to see where they would change something, to OPTION_REPORT.</p> <p>There's also a convertFromEcore(...) for the reverse.</p> <p>In case you would like to understand the inner workings of UML2EcoreConverter better: It's basically a simple recursive visitor that traverses the UML model, converting each artifact to its Ecore equivalent and doing some cleaning up. It extends UMLSwitch to handle the different metaclasses. So to see for example how a UML Property is converted to an EStructuralFeature, have a look at caseProperty(...)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload