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:
FOAF2Graph, GraphReader, LastFmArtistHandler, LastFMArtistTag, LastFMFriends, LastFMProfile, LastFMSimilarUsers, LastFMUserArtistTags, LastFMUserTags, LastFMUserTopArtists, ParseBibliographyXML, ParseClassLabel, QueryReader, RATExecution

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.


Field Summary
protected  PropertiesInternal properties
           
protected  PropertiesInternal site
           
 
Constructor Summary
Handler()
           
 
Method Summary
 boolean check(Parameter parameter)
           
 boolean check(Properties parameters)
           
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
 java.lang.String getName()
           
 Properties getParameter()
           
 Parameter getParameter(java.lang.String parameter)
           
 void init(Properties parameters)
           
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 setName(java.lang.String name)
           
 void setProperties(Properties site)
           
 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
 

Field Detail

properties

protected PropertiesInternal properties

site

protected PropertiesInternal site
Constructor Detail

Handler

public Handler()
Method Detail

setProperties

public void setProperties(Properties site)

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

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

init

public void init(Properties parameters)

getParameter

public Properties getParameter()

getParameter

public Parameter getParameter(java.lang.String parameter)

check

public boolean check(Properties parameters)

check

public boolean check(Parameter parameter)

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads