nz.ac.waikato.mcennis.rat.parser.xmlHandler
Class Handler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by nz.ac.waikato.mcennis.rat.parser.xmlHandler.Handler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Direct Known Subclasses:
ArtistDeciderXML, FOAF2Graph, GraphReader, LastFmArtistHandler, LastFMArtistTag, LastFMFriends, LastFMProfile, LastFMSimilarUsers, LastFMUserArtistTags, LastFMUserTags, LastFMUserTopArtists, ParseBibliographyXML, ParseClassLabel, RATExecution, YahooArtistHandler

public abstract class Handler
extends org.xml.sax.helpers.DefaultHandler

Extends SAX default handler for infrastructure needed to be called by the XMLParser parser class.


Constructor Summary
Handler()
           
 
Method Summary
abstract  Handler duplicate()
          Create a complete duplicate of this class
 void error(org.xml.sax.SAXParseException e)
          Error method for XML parsers
 void fatalError(org.xml.sax.SAXParseException e)
          Error method for XML parsers
abstract  ParsedObject get()
          Return the underlying parsed object
abstract  void set(ParsedObject o)
          Set the underlying parsed object for parsing
 void setCrawler(Crawler crawler)
          Set the crawler to be used for spidering new pages
 void warning(org.xml.sax.SAXParseException e)
          Warning method for XML Parsers
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

get

public abstract ParsedObject get()
Return the underlying parsed object

Returns:
parsed object

set

public abstract void set(ParsedObject o)
Set the underlying parsed object for parsing

Parameters:
o - underlying parsed object

setCrawler

public void setCrawler(Crawler crawler)
Set the crawler to be used for spidering new pages

Parameters:
crawler - crawler to be parsing.

duplicate

public abstract Handler duplicate()
Create a complete duplicate of this class

Returns:
deep copy of the original.

error

public void error(org.xml.sax.SAXParseException e)
           throws org.xml.sax.SAXException
Error method for XML parsers

Specified by:
error in interface org.xml.sax.ErrorHandler
Overrides:
error in class org.xml.sax.helpers.DefaultHandler
Parameters:
e - error thrown
Throws:
org.xml.sax.SAXException

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
                throws org.xml.sax.SAXException
Error method for XML parsers

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Overrides:
fatalError in class org.xml.sax.helpers.DefaultHandler
Parameters:
e - error thrown
Throws:
org.xml.sax.SAXException

warning

public void warning(org.xml.sax.SAXParseException e)
             throws org.xml.sax.SAXException
Warning method for XML Parsers

Specified by:
warning in interface org.xml.sax.ErrorHandler
Overrides:
warning in class org.xml.sax.helpers.DefaultHandler
Parameters:
e - warning thrown
Throws:
org.xml.sax.SAXException