org.argouml.xml.argo
Class ArgoParser
java.lang.Object
org.xml.sax.HandlerBase
org.argouml.xml.SAXParserBase
org.argouml.xml.argo.ArgoParser
- All Implemented Interfaces:
- org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class ArgoParser
- extends SAXParserBase
Methods inherited from class org.argouml.xml.SAXParserBase |
characters, endElement, getJarResource, getParseTime, getStats, ignoreElement, notImplemented, parse, parse, resolveEntity, setDebug, setStats, startElement |
Methods inherited from class org.xml.sax.HandlerBase |
endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
private static org.apache.log4j.Logger cat
- logger
SINGLETON
public static ArgoParser SINGLETON
_proj
protected Project _proj
_tokens
private ArgoTokenTable _tokens
_addMembers
private boolean _addMembers
_url
private java.net.URL _url
lastLoadStatus
private boolean lastLoadStatus
lastLoadMessage
private java.lang.String lastLoadMessage
ArgoParser
protected ArgoParser()
readProject
public void readProject(java.net.URL url)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
readProject
public void readProject(java.net.URL url,
boolean addMembers)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
setURL
public void setURL(java.net.URL url)
readProject
public void readProject(java.io.InputStream is,
boolean addMembers)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getProject
public Project getProject()
setProject
public void setProject(Project newProj)
handleStartElement
public void handleStartElement(XMLElement e)
- Specified by:
handleStartElement
in class SAXParserBase
handleEndElement
public void handleEndElement(XMLElement e)
- Specified by:
handleEndElement
in class SAXParserBase
handleArgo
protected void handleArgo(XMLElement e)
handleDocumentation
protected void handleDocumentation(XMLElement e)
handleAuthorname
protected void handleAuthorname(XMLElement e)
handleVersion
protected void handleVersion(XMLElement e)
handleDescription
protected void handleDescription(XMLElement e)
handleSearchpath
protected void handleSearchpath(XMLElement e)
handleMember
protected void handleMember(XMLElement e)
handleHistoryfile
protected void handleHistoryfile(XMLElement e)
getLastLoadStatus
public boolean getLastLoadStatus()
- return the status of the last load attempt.
Used for junit tests.
setLastLoadStatus
public void setLastLoadStatus(boolean status)
- set the status of the last load attempt.
Used for junit tests.
getLastLoadMessage
public java.lang.String getLastLoadMessage()
- get the last message which caused loading to fail.
Used for junit tests.
setLastLoadMessage
public void setLastLoadMessage(java.lang.String msg)
- set the last load message.
Used for junit tests.