olg.csv.bean.loader.parser.impl
Class CustomParserLoader
java.lang.Object
olg.csv.bean.loader.parser.AbstractParserLoader
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
Method Summary |
protected
|
getConcreteParser(Class<T> clazz,
Element node)
Returns a concret parser this concret loader has the responsablity to
create. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomParserLoader
public CustomParserLoader(AbstractParserLoader successor)
- Constructor.
- Parameters:
successor
- the next parser loader in the loader chain.
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 returnnode
- 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.