org.argouml.model.uml
Class XmiReader

java.lang.Object
  extended byorg.argouml.model.uml.XmiReader

public class XmiReader
extends Object

A wrapper around the genuine XmiReader that provides public access with no knowledge of actual UML implementation.


Field Summary
private static Logger LOG
           
private  NsumlXmiReader nsumlXmiReader
           
 
Constructor Summary
XmiReader()
          Constructor for XMIReader.
 
Method Summary
 boolean getErrors()
           
 Map getXMIUUIDToObjectMap()
           
 Object parseToModel(InputSource pIs)
          Parses a given inputsource to a model.
 
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

nsumlXmiReader

private NsumlXmiReader nsumlXmiReader
Constructor Detail

XmiReader

public XmiReader()
          throws SAXException,
                 javax.xml.parsers.ParserConfigurationException
Constructor for XMIReader.

Throws:
SAXException - when there is a XML problem
javax.xml.parsers.ParserConfigurationException - if a parser cannot be created which satisfies the requested configuration
Method Detail

parseToModel

public Object parseToModel(InputSource pIs)
                    throws SAXException,
                           IOException
Parses a given inputsource to a model. Does not override the novosoft parse method since that does not have the right signature.

Parameters:
pIs - the input source for parsing
Returns:
MModel the UML model
Throws:
SAXException - if there is an XML problem
IOException - if there is a file I/O problem

getErrors

public boolean getErrors()
Returns:
true if there were errors

getXMIUUIDToObjectMap

public Map getXMIUUIDToObjectMap()
Returns:
the map


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