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

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

public class HandlerFactory
extends java.lang.Object

Factory class for creating SAX XML parsers for use with the XML Parser class.


Method Summary
 Handler create(java.util.Properties props)
          Creates a new Handler object.
static HandlerFactory newInstance()
          Return a reference to a singelton HandlerFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static HandlerFactory newInstance()
Return a reference to a singelton HandlerFactory

Returns:
newly created reference to a HandlerFactory

create

public Handler create(java.util.Properties props)
Creates a new Handler object. The class of XML handler is controlled by the 'HandlerType' key. Returns 'FOAF2Graph' if the key matches no handler type.

Parameters:
props - parameters for creating a HandlerObject
Returns:
newly created Handler object