public abstract class BaseLoader extends Object implements Loader
| Constructor and Description |
|---|
BaseLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attemptToAdd(StaticPropertyConfigurationInternal appConfigDef,
List<ValidatedValue> values,
ProblemList<Problem> loaderProblems,
Property prop,
Object value)
Util method to attempt to load an object of an unknown type to a property.
|
protected void |
attemptToAdd(StaticPropertyConfigurationInternal appConfigDef,
List<ValidatedValue> values,
ProblemList<Problem> loaderProblems,
String key,
String strValue)
Util method to load a String to a property by name.
|
protected <T> ValidatedValue |
createValue(StaticPropertyConfigurationInternal appConfigDef,
Property<T> prop,
String untrimmedString) |
protected ValidatedValue |
findDuplicateProperty(ValidatedValue current,
List<ValidatedValue> values) |
Class<?> |
getClassConfig()
Returns a PropertyGroup used to globally configure a class of Loader.
|
SamplePrinter |
getConfigSamplePrinter()
Returns a ConfigSamplePrinter, which can be used to print a configuration
sample for this Loader.
|
List<Property> |
getInstanceConfig()
A list of properties that the user has specified as being configuration
properties for this Loader.
|
void |
releaseResources()
Release any resources held by this loader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoaderDialect, getLoaderType, getSpecificLoadDescription, isTrimmingRequiredForStringValues, loadpublic Class<?> getClassConfig()
LoadergetClassConfig in interface Loaderpublic List<Property> getInstanceConfig()
LoadergetInstanceConfig in interface Loaderpublic SamplePrinter getConfigSamplePrinter()
LoadergetConfigSamplePrinter in interface Loaderprotected void attemptToAdd(StaticPropertyConfigurationInternal appConfigDef, List<ValidatedValue> values, ProblemList<Problem> loaderProblems, String key, String strValue)
appConfigDef - Used to look up the property name for find the actual propertyvalues - List of PropertyValues to add to, which should be only the value of this loader.loaderProblems - A list of Problems to add to if there is a loader related problemkey - The property namestrValue - The property valueprotected void attemptToAdd(StaticPropertyConfigurationInternal appConfigDef, List<ValidatedValue> values, ProblemList<Problem> loaderProblems, Property prop, Object value)
appConfigDef - Used to look up the property name for find the actual propertyvalues - List of PropertyValues to add to, which should be only the value of this loader.loaderProblems - A list of LoaderProblems to add to if there is a loader related problemprop - The Property to load tovalue - The Object to be loaded to this propertyprotected ValidatedValue findDuplicateProperty(ValidatedValue current, List<ValidatedValue> values)
protected <T> ValidatedValue createValue(StaticPropertyConfigurationInternal appConfigDef, Property<T> prop, String untrimmedString) throws ParsingException
ParsingExceptionpublic void releaseResources()
LoaderreleaseResources in interface LoaderCopyright © 2017. All rights reserved.