|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.HandlerBase
org.argouml.xml.SAXParserBase
org.argouml.xml.todo.TodoParser
Class that reads a todo list from a todo xml file. This class is a SINGLETON.
SINGLETON
Field Summary | |
protected java.lang.String |
_critic
The critic String of the ResolvedCritic currently being read. |
protected java.lang.String |
_description
The description of the ToDoItem currently being read. |
protected java.lang.String |
_headline
The headline of the ToDoItem currently being read. |
protected java.lang.String |
_moreinfourl
The moreInfoURL of the ToDoItem currently being read. |
protected java.util.Vector |
_offenders
The offenders vector of the ResolvedCritic currently being read. |
protected int |
_priority
The priority of the ToDoItem currently being read. |
private TodoTokenTable |
_tokens
|
private java.net.URL |
_url
|
protected static org.apache.log4j.Logger |
cat
|
static TodoParser |
SINGLETON
The SINGLETON object of this class. |
Fields inherited from class org.argouml.xml.SAXParserBase |
_dbg, _returnString, _startElement, _verbose |
Constructor Summary | |
protected |
TodoParser()
Creates a new TodoParser. |
Method Summary | |
static java.lang.String |
decode(java.lang.String str)
Utility method to decode a String filtering out any noice that an XML framework might have seen fit to add and thus regaining the original unmodified String. |
static java.lang.String |
encode(java.lang.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(java.io.InputStream is,
boolean addMembers)
Reads an XML todo list from InputStream is and enters any todo items into the current designer. |
void |
readTodoList(java.net.URL url)
Reads a todo list from the file named in url. |
void |
readTodoList(java.net.URL url,
boolean addMembers)
Reads a todo list from the file named in url. |
void |
setURL(java.net.URL url)
Sets the _url instance variable. |
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 |
protected static org.apache.log4j.Logger cat
public static TodoParser SINGLETON
private TodoTokenTable _tokens
private java.net.URL _url
protected java.lang.String _headline
protected int _priority
protected java.lang.String _moreinfourl
protected java.lang.String _description
protected java.lang.String _critic
protected java.util.Vector _offenders
Constructor Detail |
protected TodoParser()
Method Detail |
public void readTodoList(java.net.URL url)
url
- The URL of the file to read from.public void readTodoList(java.net.URL url, boolean addMembers)
url
- The URL of the file to read from.addMembers
- Ignored.public void setURL(java.net.URL url)
url
- The name of the file the we're eledgedly
reading from.public void readTodoList(java.io.InputStream is, boolean addMembers)
is
- The stream containing TodoList XML data.addMembers
- Ignored.setURL(java.net.URL)
public void handleStartElement(XMLElement e)
handleStartElement
in class SAXParserBase
e
- The entity being started.public void handleEndElement(XMLElement e)
handleEndElement
in class SAXParserBase
e
- The XML entity that ends.protected void handleTodo(XMLElement e)
protected void handleTodoList(XMLElement e)
protected void handleResolvedCritics(XMLElement e)
protected void handleTodoItemStart(XMLElement e)
protected void handleTodoItemEnd(XMLElement e)
protected void handleHeadline(XMLElement e)
protected void handlePriority(XMLElement e)
protected void handleMoreInfoURL(XMLElement e)
protected void handleDescription(XMLElement e)
protected void handleIssueStart(XMLElement e)
protected void handleIssueEnd(XMLElement e)
protected void handlePoster(XMLElement e)
protected void handleOffender(XMLElement e)
public static java.lang.String decode(java.lang.String str)
str
- The String to decode.
public static java.lang.String encode(java.lang.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 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |