nz.ac.waikato.mcennis.rat.parser
Class ParserFactory

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.parser.ParserFactory

public class ParserFactory
extends java.lang.Object

Class for creating Parsers


Constructor Summary
protected ParserFactory()
           
 
Method Summary
 Parser create(java.util.Properties props)
          Create Parsers using the given properties file as parameters Parser Class is determined by the 'ParserType' key HTML File'ToFileDirectory' - directory where files should be stored Scheduler - see HandlerFactory-RATExecution for more parameters FOAF - see HandlerFactory-FOAF for more parameters Graph - see HandlerFactory-Graph for more parameters GoogleArtist LastFmArtist 'LastFMType' - LastFM xml parser if XML, Basic bio parser otherwise BaseArtistDecider - ArtistDecider created - see ArtistDeciderFactory ArtistDeciderXML YahooArtistDecider LastFMArtistTag - see HandlerFactory-LastFMArtistTag for parameters
static ParserFactory newInstance()
          Create a new reference to the ParserFactory singelton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserFactory

protected ParserFactory()
Method Detail

newInstance

public static ParserFactory newInstance()
Create a new reference to the ParserFactory singelton

Returns:
new reference

create

public Parser create(java.util.Properties props)
Create Parsers using the given properties file as parameters Parser Class is determined by the 'ParserType' key

Parameters:
props -
Returns: