org.argouml.persistence
Class XMIParser
java.lang.Object
org.argouml.persistence.XMIParser
- public class XMIParser
- extends Object
XMI is an XML based exchange format between UML tools.
ArgoUML uses this as standard saving mechanism so that easy interchange
with other tools and compliance with open standards are secured.
XMI version 1.0 for UML 1.3 is used. To convert older models in XMI
(Argo 0.7 used XMI 1.0 for UML1.1) to the latest version,
Meta Integration provides a free key to their Model Bridge.
This also permits you to convert Rational Rose models to ArgoUML!
This currently only includes model information, but no graphical
information (like layout of diagrams).
Constructor Summary |
protected |
XMIParser()
The constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Logger LOG
- logger
singleton
private static XMIParser singleton
curModel
private Object curModel
proj
private Project proj
uUIDRefs
private HashMap uUIDRefs
XMIParser
protected XMIParser()
- The constructor.
getCurModel
public Object getCurModel()
- Returns:
- the current model
setProject
public void setProject(Project p)
- Parameters:
p
- the project
getUUIDRefs
public HashMap getUUIDRefs()
- Returns:
- the UUID
readModels
public void readModels(Project p,
URL url)
throws IOException
- The main parsing method.
- Parameters:
p
- the projecturl
- the URL
- Throws:
IOException
- when there is an IO error
getSingleton
public static XMIParser getSingleton()
- Returns:
- Returns the singleton.