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

Field Summary
protected  RootDTDNode root
          Root node tied to any node
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected RootDTDNode root
Root node tied to any node

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


Copyright © 2006 JAPISoft. All Rights Reserved.