All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xe.xe_ParserFactory

java.lang.Object
   |
   +----xm.xm_Factory
           |
           +----xm.xm_NodeFactory
                   |
                   +----xe.xe_ParserFactory

public class xe_ParserFactory
extends xm_NodeFactory
Factory for generating parsers for parts of an XML source. It can also create nodes in a similar way. Given the name of an XML entity, it returns a parser object suitable for parsing it. It is able to handle all the normal features of XML, but may be enhanced to support specialised parsers for particular types of entities.


Constructor Index

 o xe_ParserFactory()

Method Index

 o createParser(String, int)

Create a parser of the type suitable for parsing an entity whose type is 'InputNodeName'.

Constructors

 o xe_ParserFactory
 public xe_ParserFactory()

Methods

 o createParser
 public static xe_Parser createParser(String InputNodeName,
                                      int InputNodeType) throws xm_ParseException

Create a parser of the type suitable for parsing an entity whose type is 'InputNodeName'. If no parser is registered for InputNodeName, then a parser suitable for InputNodeType is created. This dual-level scheme allows special parsers to be added, while still creating parsers of the correct standard type the rest of the time.

Non-standard parsers can be added by registering them with xm_NodeTypeRegistry.

Parameters:
InputNodeName - The name of the node for which we need a parser
InputNodeType - The type of node for which we need a parser
Returns:
The newly-created parser for the named entity
Throws: xm_ParseException
Either no parser class is registered or it cannot be instantiated

All Packages  Class Hierarchy  This Package  Previous  Next  Index