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