org.argouml.model.uml
Class XmiReader
java.lang.Object
org.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.
Constructor Summary |
XmiReader()
Constructor for XMIReader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Logger LOG
nsumlXmiReader
private NsumlXmiReader nsumlXmiReader
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
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