|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectolg.csv.bean.loader.CellProcessorLoader<B>
B - the entity type the cellProcessor deals with.public class CellProcessorLoader<B>
Class dedicated to load List of ColumnFormatter from an XML file.
CellProcessor| Nested Class Summary | |
|---|---|
protected static class |
CellProcessorLoader.RowBeanPropertyFormatterLoader<B>
PropertyFormatterLoader adaptation in order to manage with beanRowType elements. |
| Field Summary | |
|---|---|
protected static String |
ATTR_CLASS
class attribute name. |
protected static String |
ATTR_NAME
column name attribute name. |
protected static String |
ATTR_RANG
rang atribute name. |
protected static String |
EL_COLUMN
Column node name. |
protected static String |
EL_FILTER
Filter node name. |
protected static String |
EL_FORMATTER
Formatter node name. |
protected static String |
EL_PROPERTIES
Properties node name. |
protected static String |
EL_PROPERTY
Property node name. |
| Constructor Summary | |
|---|---|
CellProcessorLoader()
|
|
| Method Summary | ||
|---|---|---|
protected
|
extractColumnType(Element element,
Class<E> beanClass)
Identifies from an XML Element a CellProcessor list. |
|
protected
|
load(Element element,
String xmlListNodeName,
Class<E> beanClass)
load a CellProcessor list from an xml node. |
|
List<CellProcessor<B>> |
load(File file)
Returns the ColumnFormatter list described in the given XML file. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String ATTR_NAME
protected static final String ATTR_CLASS
protected static final String ATTR_RANG
protected static final String EL_COLUMN
protected static final String EL_FORMATTER
protected static final String EL_FILTER
protected static final String EL_PROPERTY
protected static final String EL_PROPERTIES
| Constructor Detail |
|---|
public CellProcessorLoader()
| Method Detail |
|---|
public List<CellProcessor<B>> load(File file)
throws LoadException
XML root of the given file must be one of the followings :
file - the XML File.
LoadException - if an error occurs during loadingCellProcessor
protected <E> List<CellProcessor<B>> load(Element element,
String xmlListNodeName,
Class<E> beanClass)
throws ClassNotFoundException,
LoadException,
XPathExpressionException
E - the type on which identify the properties target of the cell
processors.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.
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
protected <E> List<CellProcessor<B>> extractColumnType(Element element,
Class<E> beanClass)
throws LoadException,
XPathExpressionException,
ClassNotFoundException
E - the type on which identify the properties target of the cell
processors.element - the XML Element (ColumnType 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.
XPathExpressionException - on invalid XPathExpression
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||