Pregunta

Por favor, ayúdame si alguno tienen ans para esta pregunta.

Gracias Prashant

¿Fue útil?

Solución

Yes You can generate xmi file for sequence diagram and it's very easy to implement it just check below link, you can get all idea.

http://www.umlgraph.org/

Otros consejos

This question does not make sense as such. XMI is a storage format for UML (and as pointed out above for any MOF-based language) models. Therefore a XMI file will contain the class diagram, sequence diagram, ... of your UML project.

Therefore, any tool able to load such UML diagram will be able to show the sequence diagram contained in it.

What may happen though is that the XMI file does not include the graphical layout information of your diagrams. So, you may import the model information but the tool may not display them graphically. You may need to browse the model, and one by one, take the model elements and reposition them in the canvas.

Assuming that the XMI file represents a sequence diagram, then you need to find a UML tool that reads XMI files, load the file and then send the file to the printer.

This page includes a list of UML tools that are XMI capable.

If the XMI file is for some other kind of UML diagram, or something that is not UML at all*, then the simple answer is that you can't do it.

* It is a little known fact that the OMG XMI specification actually defines an XML serialization for any modeling language that has a OMG MOF-based metamodel. XMI/UML is just one example.

I do not agree with Jordi. An XMI document describes a model. A model is different from its representation (diagrams) which could however be a model too aimed at describing the way elements belonging to the first model should be depicted. In TopCased for instance, a CASE tool based on the Eclipse Modeling Framework, a diagram is a model itself. So you could, and I actually did it thus it is possible, look at how TopCased describes diagrams in XMI and try to generate it from the XMI of your models.

Good Luck

Part of the confusion here is that UML 1 XMI did not contain diagram layout information, while UML 2 XMI can contain diagram layout information. So UML 2 XMI is both model and presentation (merits of this are debatable, but it eases portability).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top