All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xm.xm_NodeFactory

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

public class xm_NodeFactory
extends xm_Factory
Factory for generating XML nodes given a name and/or type.


Constructor Index

 o xm_NodeFactory()

Method Index

 o createEntity(String, int, String)

Create an entity of the type suitable for the entity whose name is InputNodeName. Deprecated.

 o createNode(String, int, String)

Create a node of the type suitable for the entity whose name is InputNodeName.

Constructors

 o xm_NodeFactory
 public xm_NodeFactory()

Methods

 o createNode
 public static xg_Node createNode(String InputNodeName,
                                  int InputNodeType,
                                  String InputUsualClassName) throws xm_ParseException

Create a node of the type suitable for the entity whose name is InputNodeName. If this name is not registered, a node of type InputNodeType is created, where InputNodeType identifies one of the fixed XML entity types.

Non-standard nodes are added by registering with xm_NodeTypeRegistry the names to which they relate.

Parameters:
InputNodeName - The name of the node we need to create
InputNodeType - The type of node we need to create
InputUsualClassName - The name of the class which is usually used to represent entities of this type. The class actually used must be this or derived from it.
Returns:
The newly-created node
 o createEntity
 public static xg_Node createEntity(String InputNodeName,
                                    int InputNodeType,
                                    String InputUsualClassName) throws xm_ParseException
Note: createEntity() is deprecated.

Create an entity of the type suitable for the entity whose name is InputNodeName. This is synonymous with createNode(), and is retained only to stop existing callers breaking.

Non-standard entities are added by registering with xm_NodeTypeRegistry the names to which they relate.

Parameters:
InputNodeName - The name of the node we need to create
InputNodeType - The type of node we need to create
InputUsualClassName - The name of the class which is usually used to represent entities of this type. The class actually used must be this or derived from it.
Returns:
The newly-created node

All Packages  Class Hierarchy  This Package  Previous  Next  Index