olg.csv.bean.loader
Class CustomLoader
java.lang.Object
olg.csv.bean.loader.CustomLoader
public final class CustomLoader
- extends Object
Class specialized in bean loading from an XML element conformed to XML schema
CustomType specification.
- Author:
- Olivier Godineau
Method Summary |
static Object |
getBean(Element node)
Returns an instance of a bean corresponding to XML node parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getBean
public static Object getBean(Element node)
throws XPathExpressionException,
LoadException
- Returns an instance of a bean corresponding to XML node parameter.
- Parameters:
node
- CustomType node as described in XML schema.
- Returns:
- a new instance
- Throws:
XPathExpressionException
- on invalid XPathExpression
LoadException
- if bean class not found or instanciation not possible. In
case of applying properties, a LoadException is thrown when
property class is not found or setter is not found
XPathExpressionException
- on invalid XPathExpression
Copyright © 2014. All rights reserved.