public abstract class AbstractDataContextFactory extends Object implements DataContextFactory
DataContextFactory
with utility methods for easier subclass implementation.Constructor and Description |
---|
AbstractDataContextFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(DataContextProperties properties,
ResourceFactoryRegistry resourceFactoryRegistry) |
protected boolean |
getBoolean(Object value,
boolean ifNull) |
protected char |
getChar(Object value,
char ifNull) |
protected int |
getInt(Object value,
int ifNull) |
protected String |
getString(Object value,
String ifNull) |
protected abstract String |
getType()
Gets the "type" value for the
DataContext s that this factory produces. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
protected abstract String getType()
DataContext
s that this factory produces. By convention these are lower-case
terms such as "csv" or "jdbc", and separated by dash in case it requires multiple terms, e.g. "fixed-width".public final boolean accepts(DataContextProperties properties, ResourceFactoryRegistry resourceFactoryRegistry)
accepts
in interface DataContextFactory
protected int getInt(Object value, int ifNull)
protected boolean getBoolean(Object value, boolean ifNull)
protected char getChar(Object value, char ifNull)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.