|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object olg.csv.bean.loader.getter.AbstractGetterLoader
public abstract class AbstractGetterLoader
Class dedicated to load a getter AbstractGetter
from an XML element
conformed to XML schema GetterType specification. Each concret class shall
have the responsibility to load a concrete AbstractGetter class.
Class based on Chain of responsability pattern and used to chain concret Getter Loaders.
AbstractGetter
Field Summary | |
---|---|
private static AbstractGetterLoader |
instance
Singleton responsible of getters loading. |
protected AbstractGetterLoader |
successor
GetterLoader 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 |
AbstractGetterLoader(String xPathExpression,
AbstractGetterLoader successor)
|
Method Summary | |
---|---|
protected abstract AbstractGetter |
getConcreteGetter(Element node,
String defaultValue)
Returns a concret getter. |
AbstractGetter |
getGetter(Element element)
Returns a concret getter identified from the given XML element. |
static AbstractGetterLoader |
getInstance()
Returns singleton responsible of getters loading This is this instance you have to be used to load every type of getter from XML element conformed to XML Schema GetterType specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static AbstractGetterLoader instance
protected AbstractGetterLoader successor
protected String xPathExpression
Constructor Detail |
---|
protected AbstractGetterLoader(String xPathExpression, AbstractGetterLoader successor)
xPathExpression
- XPath expression that allows to identify the concret getter
under the XML GetterType nodesuccessor
- following concret loader in the chain of responsabilityMethod Detail |
---|
public static AbstractGetterLoader getInstance()
public final AbstractGetter getGetter(Element element) throws XPathExpressionException, LoadException
element
- XML node corresponding to correspondant to XML GetterType as
described in our XML schema.
null
if the given element
doesn't match concret getter type this loader has responsability
and doesn't match any successor
XPathExpressionException
- on invalid XPathExpression
LoadException
- on Error occurs during loadingprotected abstract AbstractGetter getConcreteGetter(Element node, String defaultValue) throws XPathExpressionException, LoadException
node
- XML Element corresponding to the XPath expression from which
the corresponding getter is loaded.defaultValue
- value the loaded getter must used as default value.
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 |