org.argouml.xml.argo
Class ArgoParser

org.argouml.xml.SAXParserBase
  |
  +--org.argouml.xml.argo.ArgoParser

public class ArgoParser
extends SAXParserBase


Field Summary
protected  Project _proj
           
protected static org.apache.log4j.Category cat
           
static ArgoParser SINGLETON
           
 
Fields inherited from class org.argouml.xml.SAXParserBase
_dbg, _returnString, _startElement, _verbose
 
Constructor Summary
protected ArgoParser()
           
 
Method Summary
 java.lang.String getLastLoadMessage()
          get the last message which caused loading to fail.
 boolean getLastLoadStatus()
          return the status of the last load attempt.
 Project getProject()
           
protected  void handleArgo(XMLElement e)
           
protected  void handleAuthorname(XMLElement e)
           
protected  void handleDescription(XMLElement e)
           
protected  void handleDocumentation(XMLElement e)
           
 void handleEndElement(XMLElement e)
           
protected  void handleHistoryfile(XMLElement e)
           
protected  void handleMember(XMLElement e)
           
protected  void handleSearchpath(XMLElement e)
           
 void handleStartElement(XMLElement e)
           
protected  void handleVersion(XMLElement e)
           
 void readProject(java.io.InputStream is, boolean addMembers)
           
 void readProject(java.net.URL url)
           
 void readProject(java.net.URL url, boolean addMembers)
           
 void setLastLoadMessage(java.lang.String msg)
          set the last load message.
 void setLastLoadStatus(boolean status)
          set the status of the last load attempt.
 void setURL(java.net.URL url)
           
 
Methods inherited from class org.argouml.xml.SAXParserBase
characters, endElement, getJarResource, getParseTime, getStats, ignoreElement, notImplemented, parse, parse, resolveEntity, setDebug, setStats, startElement
 

Field Detail

cat

protected static org.apache.log4j.Category cat

SINGLETON

public static ArgoParser SINGLETON

_proj

protected Project _proj
Constructor Detail

ArgoParser

protected ArgoParser()
Method Detail

readProject

public void readProject(java.net.URL url)
                 throws java.io.IOException

readProject

public void readProject(java.net.URL url,
                        boolean addMembers)
                 throws java.io.IOException

setURL

public void setURL(java.net.URL url)

readProject

public void readProject(java.io.InputStream is,
                        boolean addMembers)

getProject

public Project getProject()

handleStartElement

public void handleStartElement(XMLElement e)
Overrides:
handleStartElement in class SAXParserBase

handleEndElement

public void handleEndElement(XMLElement e)
Overrides:
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.


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook