|
|||||||||||
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.TodoParser
Class that reads a todo list from a todo xml file.
Field Summary | |
private String |
critic
The critic String of the ResolvedCritic currently being read. |
private String |
description
The description of the ToDoItem currently being read. |
private String |
headline
The headline of the ToDoItem currently being read. |
private static Logger |
LOG
|
private String |
moreinfourl
The moreInfoURL of the ToDoItem currently being read. |
private Vector |
offenders
The offenders vector of the ResolvedCritic currently being read. |
private int |
priority
The priority of the ToDoItem currently being read. |
private TodoTokenTable |
tokens
|
Fields inherited from class org.argouml.persistence.SAXParserBase |
DBG |
Constructor Summary | |
TodoParser()
Creates a new TodoParser. |
Method Summary | |
static String |
decode(String str)
Utility method to decode a String filtering out any noise that an XML framework might have seen fit to add and thus regaining the original unmodified String. |
static String |
encode(String str)
Utility method to encode a String in a way that allows it to be saved properly in an XML file and regained filtering out any noice that an XML framework might have seen fit to add. |
protected void |
handleDescription(XMLElement e)
Internal method. |
void |
handleEndElement(XMLElement e)
Called by the XML implementation to signal the end of an XML entity. |
protected void |
handleHeadline(XMLElement e)
Internal method. |
protected void |
handleIssueEnd(XMLElement e)
Internal method. |
protected void |
handleIssueStart(XMLElement e)
Internal method. |
protected void |
handleMoreInfoURL(XMLElement e)
Internal method. |
protected void |
handleOffender(XMLElement e)
Internal method. |
protected void |
handlePoster(XMLElement e)
Internal method. |
protected void |
handlePriority(XMLElement e)
Internal method. |
protected void |
handleResolvedCritics(XMLElement e)
Internal method. |
void |
handleStartElement(XMLElement e)
Called by the XML implementation to signal the start of an XML entity. |
protected void |
handleTodo(XMLElement e)
Internal method. |
protected void |
handleTodoItemEnd(XMLElement e)
Internal method. |
protected void |
handleTodoItemStart(XMLElement e)
Internal method. |
protected void |
handleTodoList(XMLElement e)
Internal method. |
void |
readTodoList(InputStream is)
Reads an XML todo list from InputStream is and enters any todo items into the current designer. |
Methods inherited from class org.argouml.persistence.SAXParserBase |
characters, endElement, getJarResource, getParseTime, getStats, ignoreElement, isElementOfInterest, 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 TodoTokenTable tokens
private String headline
private int priority
private String moreinfourl
private String description
private String critic
private Vector offenders
Constructor Detail |
public TodoParser()
Method Detail |
public void readTodoList(InputStream is) throws SAXException
is
- The stream containing TodoList XML data.
SAXException
- on any errorpublic void handleStartElement(XMLElement e)
handleStartElement
in class SAXParserBase
e
- The entity being started.public void handleEndElement(XMLElement e) throws SAXException
handleEndElement
in class SAXParserBase
e
- The XML entity that ends.
SAXException
- on any errorprotected void handleTodo(XMLElement e)
e
- the elementprotected void handleTodoList(XMLElement e)
e
- the elementprotected void handleResolvedCritics(XMLElement e)
e
- the elementprotected void handleTodoItemStart(XMLElement e)
e
- the elementprotected void handleTodoItemEnd(XMLElement e)
e
- the elementprotected void handleHeadline(XMLElement e)
e
- the elementprotected void handlePriority(XMLElement e)
e
- the elementprotected void handleMoreInfoURL(XMLElement e)
e
- the elementprotected void handleDescription(XMLElement e)
e
- the elementprotected void handleIssueStart(XMLElement e)
e
- the elementprotected void handleIssueEnd(XMLElement e)
e
- the elementprotected void handlePoster(XMLElement e)
e
- the elementprotected void handleOffender(XMLElement e)
e
- the elementpublic static String decode(String str)
str
- The String to decode.
public static String encode(String str)
str
- The String to encode.
|
|||||||||||
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 |