public abstract class BaseLoader extends Object implements Loader
| Constructor and Description |
|---|
BaseLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attemptToAdd(ConstructionDefinition appConfigDef,
List<PropertyValue> 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(ConstructionDefinition appConfigDef,
List<PropertyValue> values,
ProblemList<Problem> loaderProblems,
String key,
String strValue)
Util method to load a String to a property by name.
|
protected <T> PropertyValue |
createValue(ConstructionDefinition appConfigDef,
Property<T> prop,
String untrimmedString) |
protected PropertyValue |
findDuplicateProperty(PropertyValue current,
List<PropertyValue> values) |
Class<? extends BasePropertyGroup> |
getClassConfig()
A group of Properties used to globally configure all instance of a type
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoaderDialect, getLoaderType, getSpecificLoadDescription, isTrimmingRequiredForStringValues, isUnrecognizedPropertyNamesConsideredAProblem, loadpublic Class<? extends BasePropertyGroup> getClassConfig()
LoadergetClassConfig in interface Loaderpublic List<Property> getInstanceConfig()
LoadergetInstanceConfig in interface Loaderpublic SamplePrinter getConfigSamplePrinter()
LoadergetConfigSamplePrinter in interface Loaderprotected void attemptToAdd(ConstructionDefinition appConfigDef, List<PropertyValue> 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(ConstructionDefinition appConfigDef, List<PropertyValue> 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 PropertyValue findDuplicateProperty(PropertyValue current, List<PropertyValue> values)
protected <T> PropertyValue createValue(ConstructionDefinition appConfigDef, Property<T> prop, String untrimmedString) throws ParsingException
ParsingExceptionCopyright © 2017. All rights reserved.