|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectolg.csv.bean.loader.filter.AbstractFiltreLoader
public abstract class AbstractFiltreLoader
Class dedicated to load a filter AbstractStringFilter
from an XML
element conformed to XML schema FilterType specification. Each concret class
shall have the responsibility to load a concrete AbstractStringFilter class.
Class based on Chain of responsability pattern and used to chain concret Filter Loaders.
AbstractStringFilter
Field Summary | |
---|---|
protected AbstractFiltreLoader |
successor
FiltreLoader successor as describe in Chain of responsability pattern. |
protected String |
xPathExpression
This Xpath expression allows to identify xml node which describe the corresponding concret filter under Fitler Type node. |
Constructor Summary | |
---|---|
protected |
AbstractFiltreLoader(String xPathExpression,
AbstractFiltreLoader successor)
|
Method Summary | |
---|---|
protected abstract AbstractStringFilter |
getConcreteFilter(Element node)
Returns a concret filter. |
AbstractStringFilter |
getFilter(Element element)
Returns a concret filter identified from the given XML element. |
static AbstractFiltreLoader |
getInstance()
Returns singleton responsible of filters loading. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractFiltreLoader successor
protected String xPathExpression
Constructor Detail |
---|
protected AbstractFiltreLoader(String xPathExpression, AbstractFiltreLoader successor)
xPathExpression
- XPath expression that allows to identify the concret filter
under the XML FilterType nodesuccessor
- following concret loader in the chain of responsabilityMethod Detail |
---|
public static AbstractFiltreLoader getInstance()
public final AbstractStringFilter getFilter(Element element) throws XPathExpressionException, LoadException
element
- XML node corresponding to correspondant to XML FilterType as
described in our XML schema.
null
if the given element
doesn't match concret filter type this loader has responsability
and doesn't match any successor
XPathExpressionException
- on invalid XPathExpression
LoadException
- on Error occurs during loadingprotected abstract AbstractStringFilter getConcreteFilter(Element node) throws XPathExpressionException, LoadException
node
- XML Element corresponding to the XPath expression from which
the concret filter will be loaded
null
if the given node doesn't match the type this
loader should return
XPathExpressionException
- on invalid XPathExpression
LoadException
- on Error occurs during loadingxPathExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |