olg.csv.bean.loader
Class CellProcessorLoader.RowBeanPropertyFormatterLoader<B>

Package class diagram package CellProcessorLoader.RowBeanPropertyFormatterLoader
java.lang.Object
  extended by olg.csv.bean.loader.CellProcessorLoader<B>
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class olg.csv.bean.loader.CellProcessorLoader
CellProcessorLoader.RowBeanPropertyFormatterLoader<B>
 
Field Summary
 
Fields inherited from class olg.csv.bean.loader.CellProcessorLoader
ATTR_CLASS, ATTR_NAME, ATTR_RANG, EL_COLUMN, EL_FILTER, EL_FORMATTER, EL_PROPERTIES, EL_PROPERTY
 
Constructor Summary
protected CellProcessorLoader.RowBeanPropertyFormatterLoader()
           
 
Method Summary
protected
<E> void
checkLoading(List<CellProcessor<E>> columnFormatters)
          Checking the order of columns.
protected
<T> List<CellProcessor<B>>
extractColumnType(Element element, Class<T> classBean)
          Identifies from an XML Element a CellProcessor list.
protected
<E> List<CellProcessor<B>>
load(Element element, String xmlListNodeName, Class<E> beanClass)
          load a CellProcessor list from an xml node.
 
Methods inherited from class olg.csv.bean.loader.CellProcessorLoader
load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellProcessorLoader.RowBeanPropertyFormatterLoader

protected CellProcessorLoader.RowBeanPropertyFormatterLoader()
Method Detail

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 element
beanClass - 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.