Menu

#102 Code Gen: fileName & modelName shouldn't have to be same

open
nobody
None
5
2007-10-01
2007-10-01
Ken Webb
No

Currently, when generating XML and Java from a UML or SysML model, the file name and the model name are required to be the same. For example, the name of the model inside Elevator.uml has to be Elevator. This is unlikely to be the case in a lot of models that Xholon will need to handle. It should be possible to call the file "ElevatorTest1.uml" and the model "Elevator".

Changes are required to Xmi2Xholon.java. For example, the following code gets the modelName from the xmiFileName:
String modelName = getModelName(xmiFileName);

Discussion


Log in to post a comment.

Monday.com Logo