Class CreateDOM_ParserEventHandler
- java.lang.Object
-
- dev.pxml.core.reader.parser.eventHandler.CreateDOM_ParserEventHandler
-
- All Implemented Interfaces:
IParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
public class CreateDOM_ParserEventHandler extends java.lang.Object implements IParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
-
-
Constructor Summary
Constructors Constructor Description CreateDOM_ParserEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Document
getResult()
void
onComment(java.lang.String comment, org.w3c.dom.Node parentElement, TextLocation location)
void
onNodeEnd(org.w3c.dom.Node element)
org.w3c.dom.Node
onNodeStart(PXMLNode rootNode, org.w3c.dom.Node parentElement)
void
onRootNodeEnd(org.w3c.dom.Node rootElement)
org.w3c.dom.Node
onRootNodeStart(PXMLNode rootNode)
void
onStart()
void
onStop()
void
onText(java.lang.String text, org.w3c.dom.Node parentElement, TextLocation location)
-
-
-
Method Detail
-
onStart
public void onStart() throws java.lang.Exception
- Specified by:
onStart
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
- Throws:
java.lang.Exception
-
onStop
public void onStop()
- Specified by:
onStop
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
-
onRootNodeStart
public org.w3c.dom.Node onRootNodeStart(PXMLNode rootNode) throws java.lang.Exception
- Specified by:
onRootNodeStart
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
- Throws:
java.lang.Exception
-
onRootNodeEnd
public void onRootNodeEnd(org.w3c.dom.Node rootElement)
- Specified by:
onRootNodeEnd
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
-
onNodeStart
public org.w3c.dom.Node onNodeStart(PXMLNode rootNode, org.w3c.dom.Node parentElement) throws java.lang.Exception
- Specified by:
onNodeStart
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
- Throws:
java.lang.Exception
-
onNodeEnd
public void onNodeEnd(org.w3c.dom.Node element) throws java.lang.Exception
- Specified by:
onNodeEnd
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
- Throws:
java.lang.Exception
-
onText
public void onText(java.lang.String text, org.w3c.dom.Node parentElement, TextLocation location) throws java.lang.Exception
- Specified by:
onText
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
- Throws:
java.lang.Exception
-
onComment
public void onComment(java.lang.String comment, org.w3c.dom.Node parentElement, TextLocation location) throws java.lang.Exception
- Specified by:
onComment
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
- Throws:
java.lang.Exception
-
getResult
public org.w3c.dom.Document getResult()
- Specified by:
getResult
in interfaceIParserEventsHandler<org.w3c.dom.Node,org.w3c.dom.Document>
-
-