olg.csv.bean.loader
Class CellProcessorLoader.RowBeanPropertyFormatterLoader<B>
java.lang.Object
olg.csv.bean.loader.CellProcessorLoader<B>
olg.csv.bean.loader.CellProcessorLoader.RowBeanPropertyFormatterLoader<B>
- Enclosing class:
- CellProcessorLoader<B>
protected static final class CellProcessorLoader.RowBeanPropertyFormatterLoader<B>
- extends CellProcessorLoader<B>
PropertyFormatterLoader adaptation in order to manage with beanRowType
elements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CellProcessorLoader.RowBeanPropertyFormatterLoader
protected CellProcessorLoader.RowBeanPropertyFormatterLoader()
checkLoading
protected <E> void checkLoading(List<CellProcessor<E>> columnFormatters)
throws LoadException
- Checking the order of columns.
- Type Parameters:
E
- the type the cell processors deals with- Parameters:
columnFormatters
- CellProcessor list to check.
- Throws:
LoadException
- if the columns do not follow the "rang" order
load
protected <E> List<CellProcessor<B>> load(Element element,
String xmlListNodeName,
Class<E> beanClass)
throws ClassNotFoundException,
LoadException,
XPathExpressionException
- Description copied from class:
CellProcessorLoader
- load a CellProcessor list from an xml node.
- Overrides:
load
in class CellProcessorLoader<B>
- Type Parameters:
E
- the type on which identify the properties target of the cell
processors.- Parameters:
element
- xml element conformed to XML Schema bean-writerType or
beanRowType specification.xmlListNodeName
- node name identifying columnFormatter description as
expectected in the XML schema type of the given elementbeanClass
- the bean class from which identify the properties targeted by
the cell processors.. May be the B class or the class of a B
property.
- Returns:
- a new ColumnFormatter list
- Throws:
ClassNotFoundException
- if class not found when an attribute ("class") is identified
as a class
LoadException
- if an error occurs during loading
XPathExpressionException
- on invalid XPathExpression
extractColumnType
protected <T> List<CellProcessor<B>> extractColumnType(Element element,
Class<T> classBean)
throws LoadException,
XPathExpressionException,
ClassNotFoundException
- Description copied from class:
CellProcessorLoader
- Identifies from an XML Element a CellProcessor list.
- Overrides:
extractColumnType
in class CellProcessorLoader<B>
- Type Parameters:
T
- the type on which identify the properties target of the cell
processors.- Parameters:
element
- corresponding to BeanRowPropertyType xsd declaration
the XML Element (ColumnType Element)classBean
- the bean class from which identify the properties targeted by
the cell processors. May be the B class or the class of a B
property.
- Returns:
- a list
- Throws:
LoadException
- if an error occurs during loading
XPathExpressionException
- on invalid XPathExpression
ClassNotFoundException
- if class not found when an attribute ("class") is identified
as a class
Copyright © 2014. All Rights Reserved.