All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class XSA.InternalObjectsFactory

java.lang.Object
   |
   +----XSA.InternalObjectsFactory

public class InternalObjectsFactory
extends Object
This class is used by the XSA engine to create objects it uses internally. It can be subclassed by advanced applications that need to change the internal workings of the engine.


Constructor Index

 o InternalObjectsFactory()

Method Index

 o createDocHandler(Parser, XSAClient, String, Hashtable, ObjectFactory)
Sets up and creates the XSADocumentHandler object.
 o createErrorHandler(String, XSAClient)
Creates the error handler to be used during parsing.
 o createParser(String)
Creates a SAX parser.

Constructors

 o InternalObjectsFactory
 public InternalObjectsFactory()

Methods

 o createParser
 public Parser createParser(String parserDriver) throws InternalXSAException
Creates a SAX parser.

Parameters:
parserDriver - The driver to instantiate. If null the factory will try using the org.xml.sax.parser property instead.
Throws: InternalXSAException
Thrown with an appropriate error message if the parser cannot be created.
 o createDocHandler
 public XSADocumentHandler createDocHandler(Parser parser,
                                            XSAClient client,
                                            String url,
                                            Hashtable pids,
                                            ObjectFactory factory)
Sets up and creates the XSADocumentHandler object.

Parameters:
parser - The SAX parser that will use the detector.
client - The XSA client that receives events.
url - The URL of the document to be parsed.
pids - The product IDs of the products to check.
factory - The object factory to be used by the SAX handlers.
 o createErrorHandler
 public ErrorHandler createErrorHandler(String url,
                                        XSAClient client)
Creates the error handler to be used during parsing.

Parameters:
url - The URL of the document to be parsed.
client - The XSA client that receives events.

All Packages  Class Hierarchy  This Package  Previous  Next  Index