WikiVis Web Application
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Private Attributes | List of all members
wikivis.data.RevisionExtractorHandler Class Reference

A SAX handler that extracts revision model data from a revsion data extract generated by wikipedia-dump-extractor. More...

Inherits DefaultHandler.

Public Member Functions

void startElement (String uri, String localName, String qName, Attributes attributes) throws SAXException
void characters (char[] ch, int start, int length) throws SAXException
void endElement (String uri, String localName, String qName) throws SAXException
List< RevisiongetRevisions ()
 returns the list of currently extracted revisions
Map< String, AuthorgetAuthors ()
 returns the map of current extracted authors with thais usernames as keys

Private Attributes

ArrayList< Revisionrevisions = new ArrayList<Revision>()
 a list of currently extracted revisions
Revision currentRevision = null
 the current revision instance
HashMap< String, Authorauthors = new HashMap<String, Author>()
 a map of all currently extracted authors, with their name as keys
boolean inTimeStamp = false
 indicates if the parser is inside a timestamp element
boolean inUsername = false
 indicates if the parser is inside a username element
boolean inComment = false
 indicates if the parser is inside a comment element

Detailed Description

A SAX handler that extracts revision model data from a revsion data extract generated by wikipedia-dump-extractor.

Author
Manuel Wyss e0106.nosp@m.157@.nosp@m.stude.nosp@m.nt.t.nosp@m.uwien.nosp@m..ac..nosp@m.at
Florian Zoubek zoube.nosp@m.k@bi.nosp@m.tanda.nosp@m.rt.a.nosp@m.t

Member Function Documentation

void wikivis.data.RevisionExtractorHandler.characters ( char[]  ch,
int  start,
int  length 
) throws SAXException
void wikivis.data.RevisionExtractorHandler.endElement ( String  uri,
String  localName,
String  qName 
) throws SAXException
Map<String, Author> wikivis.data.RevisionExtractorHandler.getAuthors ( )

returns the map of current extracted authors with thais usernames as keys

Returns
the map of authors
List<Revision> wikivis.data.RevisionExtractorHandler.getRevisions ( )

returns the list of currently extracted revisions

Returns
the list of revisions
void wikivis.data.RevisionExtractorHandler.startElement ( String  uri,
String  localName,
String  qName,
Attributes  attributes 
) throws SAXException

Member Data Documentation

HashMap<String, Author> wikivis.data.RevisionExtractorHandler.authors = new HashMap<String, Author>()
private

a map of all currently extracted authors, with their name as keys

Revision wikivis.data.RevisionExtractorHandler.currentRevision = null
private

the current revision instance

boolean wikivis.data.RevisionExtractorHandler.inComment = false
private

indicates if the parser is inside a comment element

boolean wikivis.data.RevisionExtractorHandler.inTimeStamp = false
private

indicates if the parser is inside a timestamp element

boolean wikivis.data.RevisionExtractorHandler.inUsername = false
private

indicates if the parser is inside a username element

ArrayList<Revision> wikivis.data.RevisionExtractorHandler.revisions = new ArrayList<Revision>()
private

a list of currently extracted revisions


The documentation for this class was generated from the following file: