org.argouml.persistence
Class XMIParser

java.lang.Object
  extended byorg.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).


Field Summary
private  Object curModel
           
private static Logger LOG
          logger
private  Project proj
           
private static XMIParser singleton
           
private  HashMap uUIDRefs
           
 
Constructor Summary
protected XMIParser()
          The constructor.
 
Method Summary
 Object getCurModel()
           
static XMIParser getSingleton()
           
 HashMap getUUIDRefs()
           
 void readModels(Project p, URL url)
          The main parsing method.
 void setProject(Project p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
logger


singleton

private static XMIParser singleton

curModel

private Object curModel

proj

private Project proj

uUIDRefs

private HashMap uUIDRefs
Constructor Detail

XMIParser

protected XMIParser()
The constructor.

Method Detail

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 project
url - the URL
Throws:
IOException - when there is an IO error

getSingleton

public static XMIParser getSingleton()
Returns:
Returns the singleton.


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook