org.argouml.xml.xmi
Class XMIReader
org.argouml.xml.xmi.XMIReader
- public class XMIReader
Parses an XMI file. Extended from the NSUML XMIReader since this
reader does not handle errorhandling very well and is not very well
programmed at all. This led to issues loading xmi files and hanging ArgoUML
by doing that.
- See Also:
ru.novosoft.uml.xmi.XMIReader
Constructor Summary |
XMIReader()
Constructor for XMIReader. |
XMIReader(ru.novosoft.uml.MFactory p_factory)
Constructor for XMIReader. |
Method Summary |
boolean |
getErrors()
|
org.xml.sax.Parser |
getParser()
|
ru.novosoft.uml.model_management.MModel |
parse(org.xml.sax.InputSource p_is)
|
protected void |
parseStream(org.xml.sax.InputSource p_is)
Parses an xmi inputsource. |
void |
setErrors(boolean errors)
|
void |
setParser(org.xml.sax.Parser parser)
|
XMIReader
public XMIReader()
throws org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Constructor for XMIReader.
- Throws:
SAXException
- ParserConfigurationException
-
XMIReader
public XMIReader(ru.novosoft.uml.MFactory p_factory)
throws org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Constructor for XMIReader.
- Parameters:
p_factory
- - Throws:
SAXException
- ParserConfigurationException
-
parseStream
protected void parseStream(org.xml.sax.InputSource p_is)
- Parses an xmi inputsource. Sets errors to true if an exception is
thrown. Could not change the API from the superclass. Therefore this
strange construction.
- See Also:
ru.novosoft.uml.xmi.XMIReader#parseStream(InputSource)
parse
public ru.novosoft.uml.model_management.MModel parse(org.xml.sax.InputSource p_is)
setErrors
public void setErrors(boolean errors)
getErrors
public boolean getErrors()
setParser
public void setParser(org.xml.sax.Parser parser)
getParser
public org.xml.sax.Parser getParser()