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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fragmentKey
public static final java.lang.Object fragmentKey
factoryKey
public static final java.lang.Object factoryKey
DOMTreeFactory
public DOMTreeFactory()
DOMTreeFactory
public DOMTreeFactory(org.w3c.dom.Document document)
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)