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


Field Summary
protected  Project _proj
           
protected static 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
 
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
 

Field Detail

cat

protected static 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,
                        javax.xml.parsers.ParserConfigurationException,
                        org.xml.sax.SAXException
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
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
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

getProject

public Project getProject()

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.



ArgoUML © 1996-2003 (20030919)ArgoUML Project HomeArgoUML Cookbook