com.japisoft.dtdparser.node
Class DTDNodeFactory

java.lang.Object
  extended bycom.japisoft.dtdparser.node.DTDNodeFactory

public class DTDNodeFactory
extends java.lang.Object

Factory for producing DTDNode. If you want to produce your own DTDNode, please inherit from this class. You will have to create custom DTDNode

Version:
1.0
Author:
(c) 2002-2003 JAPISOFT

Constructor Summary
DTDNodeFactory()
           
 
Method Summary
 DTDNode getNodeForType(int type)
          Recall the getNodeForType with a null argument
 DTDNode getNodeForType(int type, java.lang.String arg)
          HERE the mehod you will have to override if you want to use custom node
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDNodeFactory

public DTDNodeFactory()
Method Detail

getNodeForType

public DTDNode getNodeForType(int type)
Recall the getNodeForType with a null argument


getNodeForType

public DTDNode getNodeForType(int type,
                              java.lang.String arg)
HERE the mehod you will have to override if you want to use custom node

Returns:
the good DTDNode for the specified type : DTDNode.COMMENT, DTDNode.ENTITY, DTDNode.ELEMENT, DTDNode.ATTRIBUTE