|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.argouml.persistence.SAXParserBase
org.argouml.persistence.ArgoParser
Field Summary | |
private static Logger |
LOG
Logger. |
private ArrayList |
memberList
|
private Project |
project
|
private ArgoTokenTable |
tokens
|
private URL |
url
|
Fields inherited from class org.argouml.persistence.SAXParserBase |
DBG |
Constructor Summary | |
ArgoParser()
The constructor. |
Method Summary | |
List |
getMemberList()
Get the numer of diagram members read. |
Project |
getProject()
Get the project to which the URL is to be parsed. |
protected void |
handleArgo(XMLElement e)
|
protected void |
handleAuthorname(XMLElement e)
|
protected void |
handleDescription(XMLElement e)
|
protected void |
handleDocumentation(XMLElement e)
|
void |
handleEndElement(XMLElement e)
Implement in the concrete class to handle reaching the end tag of an element of interest. |
protected void |
handleHistoryfile(XMLElement e)
|
protected void |
handleMember(XMLElement e)
|
protected void |
handleSearchpath(XMLElement e)
|
void |
handleStartElement(XMLElement e)
Implement in the concrete class to handle reaching the start tag of an element of interest. |
protected void |
handleVersion(XMLElement e)
|
protected boolean |
isElementOfInterest(String name)
Determine if an element of the given name is of interest to the parser. |
void |
readProject(Project theProject,
InputStream is)
|
void |
setProject(Project newProj)
Set the project to which the URL is to be parsed. |
Methods inherited from class org.argouml.persistence.SAXParserBase |
characters, endElement, getJarResource, getParseTime, getStats, ignoreElement, notImplemented, parse, resolveEntity, setStats, startElement |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Logger LOG
private Project project
private ArgoTokenTable tokens
private URL url
private ArrayList memberList
Constructor Detail |
public ArgoParser()
Method Detail |
public void readProject(Project theProject, InputStream is) throws SAXException
theProject
- the project to populateis
- the inputStream
SAXException
- on error when parsing xmlpublic Project getProject()
public void setProject(Project newProj)
newProj
- the projectpublic void handleStartElement(XMLElement e) throws SAXException
SAXParserBase
handleStartElement
in class SAXParserBase
e
- the element.
SAXException
- on any error parsing the element.SAXParserBase.handleStartElement(
org.argouml.persistence.XMLElement)
public void handleEndElement(XMLElement e) throws SAXException
SAXParserBase
handleEndElement
in class SAXParserBase
e
- the element.
SAXException
- on any error parsing the element.SAXParserBase.handleEndElement(
org.argouml.persistence.XMLElement)
protected boolean isElementOfInterest(String name)
SAXParserBase
isElementOfInterest
in class SAXParserBase
name
- the element name.
SAXParserBase.isElementOfInterest(String)
protected void handleArgo(XMLElement e)
e
- the elementprotected void handleDocumentation(XMLElement e)
e
- the elementprotected void handleAuthorname(XMLElement e)
e
- the elementprotected void handleVersion(XMLElement e)
e
- the elementprotected void handleDescription(XMLElement e)
e
- the elementprotected void handleSearchpath(XMLElement e)
e
- the elementprotected void handleMember(XMLElement e) throws SAXException
e
- the element
SAXException
- on any error parsing the member XML.protected void handleHistoryfile(XMLElement e)
e
- the elementpublic List getMemberList()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |