org.sourceprojects.xmlparser
Interface ParserContext<T>

Type Parameters:
T - Type of ContextObject to use

public interface ParserContext<T>

Interface for ParserContext implementations.
The standard implementation of this interface returned by XmlParserFactory is generified to be able to meet users requirements while parsing

Since:
0.0.1
Author:
noctarius

Method Summary
 T getContextObject()
          Returns the context object of type T for being available while parsing
 java.lang.String getParserState()
          Returns the state string to identify different states of parsing on same TagDefinitionParser implementations for all parsing reasons
 void setContextObject(T contextObject)
          Sets the context object of type T for being available while parsing
 void setParserState(java.lang.String parserState)
          Sets the state string to identify different states for parsing on same TagDefinitionParser implementations for all parsing reasons
 

Method Detail

setContextObject

void setContextObject(T contextObject)
Sets the context object of type T for being available while parsing

Parameters:
contextObject - Instance of type T

getContextObject

T getContextObject()
Returns the context object of type T for being available while parsing

Returns:
Instance of type T

setParserState

void setParserState(java.lang.String parserState)
Sets the state string to identify different states for parsing on same TagDefinitionParser implementations for all parsing reasons

Parameters:
parserState - String to identify a parser state

getParserState

java.lang.String getParserState()
Returns the state string to identify different states of parsing on same TagDefinitionParser implementations for all parsing reasons

Returns:


Copyright © 2010. All Rights Reserved.