olg.csv.bean.loader.parser.impl
Class CustomParserLoader

Package class diagram package CustomParserLoader
java.lang.Object
  extended by olg.csv.bean.loader.parser.AbstractParserLoader
      extended by olg.csv.bean.loader.parser.impl.CustomParserLoader

public final class CustomParserLoader
extends AbstractParserLoader

Loader used to load user custom parser described in XML node. This node must to be conformed to CustomType as defined in our XML schema.

See Also:
CustomLoader, AbstractParser

Field Summary
 
Fields inherited from class olg.csv.bean.loader.parser.AbstractParserLoader
successor, xPathExpression
 
Constructor Summary
CustomParserLoader(AbstractParserLoader successor)
          Constructor.
 
Method Summary
protected
<T> AbstractParser<T>
getConcreteParser(Class<T> clazz, Element node)
          Returns a concret parser this concret loader has the responsablity to create.
 
Methods inherited from class olg.csv.bean.loader.parser.AbstractParserLoader
getInstance, getParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomParserLoader

public CustomParserLoader(AbstractParserLoader successor)
Constructor.

Parameters:
successor - the next parser loader in the loader chain.
Method Detail

getConcreteParser

protected <T> AbstractParser<T> getConcreteParser(Class<T> clazz,
                                                  Element node)
                                       throws XPathExpressionException,
                                              LoadException
Description copied from class: AbstractParserLoader
Returns a concret parser this concret loader has the responsablity to create.

Specified by:
getConcreteParser in class AbstractParserLoader
Type Parameters:
T - the type the parser treats.
Parameters:
clazz - the class that the parser should return
node - XML Element corresponding to the XPath expression from which load corresponding parser
Returns:
the concret parser. null if the given node doesn't match the type this loader should return
Throws:
XPathExpressionException - on invalid XPathExpression
LoadException - if Error occurs during loading
See Also:
AbstractParserLoader.xPathExpression


Copyright © 2014. All Rights Reserved.