net.sf.swan.xml.input.tree
Class DOMTreeFactory

java.lang.Object
  |
  +--net.sf.swan.xml.input.tree.DOMTreeFactory
All Implemented Interfaces:
ContextListener, TreeFactory

public class DOMTreeFactory
extends java.lang.Object
implements TreeFactory

Note: This currently does not bother with the expense of making certain that namespace declarations are setup properly.


Field Summary
static java.lang.Object factoryKey
           
static java.lang.Object fragmentKey
           
 
Constructor Summary
DOMTreeFactory()
           
DOMTreeFactory(org.w3c.dom.Document document)
           
 
Method Summary
protected  java.lang.String createErrorMessage(java.lang.String msg, EventContext context)
           
 void endElement(EndElementEvent event)
           
protected  ErrorHandler getErrorHandler(ContextEvent evt)
           
 org.jaxen.Navigator getNavigator()
          Provides a Navigator instance that may be used to navigate the tree model.
protected  org.w3c.dom.Node getSourceNode(ContextEvent event)
           
 void processingInstruction(ProcessingInstructionEvent event)
           
 void startElement(StartElementEvent event)
           
 void text(TextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fragmentKey

public static final java.lang.Object fragmentKey

factoryKey

public static final java.lang.Object factoryKey
Constructor Detail

DOMTreeFactory

public DOMTreeFactory()

DOMTreeFactory

public DOMTreeFactory(org.w3c.dom.Document document)
Method Detail

getNavigator

public org.jaxen.Navigator getNavigator()
Description copied from interface: TreeFactory
Provides a Navigator instance that may be used to navigate the tree model.
Specified by:
getNavigator in interface TreeFactory

startElement

public void startElement(StartElementEvent event)
                  throws EventContextException
Specified by:
startElement in interface ContextListener

endElement

public void endElement(EndElementEvent event)
                throws EventContextException
Specified by:
endElement in interface ContextListener

text

public void text(TextEvent event)
          throws EventContextException
Specified by:
text in interface ContextListener

processingInstruction

public void processingInstruction(ProcessingInstructionEvent event)
                           throws EventContextException
Specified by:
processingInstruction in interface ContextListener

getSourceNode

protected org.w3c.dom.Node getSourceNode(ContextEvent event)
                                  throws EventContextException

createErrorMessage

protected java.lang.String createErrorMessage(java.lang.String msg,
                                              EventContext context)

getErrorHandler

protected ErrorHandler getErrorHandler(ContextEvent evt)