T
- the data model typepublic abstract class DriverInputBase<T> extends DriverElementBase
Modifier | Constructor and Description |
---|---|
protected |
DriverInputBase(Class<?> callerClass,
TestDataToolProvider testTools,
String name,
Class<T> modelType)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getCallerClass()
Returns the caller class.
|
DataModelDefinition<T> |
getDataModelDefinition()
Returns the data model definition for this port.
|
Class<T> |
getModelType()
Returns the data type of this port.
|
String |
getName()
Returns the name of this port.
|
DataModelSourceFactory |
getSource()
Returns the data source for this input.
|
protected TestDataToolProvider |
getTestTools()
Returns the test tools.
|
protected void |
setSource(DataModelSourceFactory source)
Sets the data source for this input.
|
protected DataModelSourceFactory |
toDataModelSourceFactory(Iterable<? extends T> sourceObjects)
Converts an data model object collection into
DataModelSourceFactory which provides data models. |
protected DataModelSourceFilter |
toDataModelSourceFilter(Consumer<? super T> transformer)
Converts an model transformer into
DataModelSourceFilter . |
toDataModelSinkFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFilter, toOutputUri, toUri, toVerifierFactory
protected DriverInputBase(Class<?> callerClass, TestDataToolProvider testTools, String name, Class<T> modelType)
callerClass
- the current context classtestTools
- the test data toolsname
- the original input namemodelType
- the data model typeprotected final Class<?> getCallerClass()
DriverElementBase
getCallerClass
in class DriverElementBase
protected final TestDataToolProvider getTestTools()
DriverElementBase
getTestTools
in class DriverElementBase
public final String getName()
public final Class<T> getModelType()
public DataModelSourceFactory getSource()
null
if not definedprotected final void setSource(DataModelSourceFactory source)
source
- the source, or null
to reset itprotected final DataModelSourceFactory toDataModelSourceFactory(Iterable<? extends T> sourceObjects)
DataModelSourceFactory
which provides data models.
This implementation immediately converts data model objects into equivalent DataModelReflection
s.sourceObjects
- the original data model objectsDataModelSourceFactory
public final DataModelDefinition<T> getDataModelDefinition()
protected final DataModelSourceFilter toDataModelSourceFilter(Consumer<? super T> transformer)
DataModelSourceFilter
.transformer
- the data model transformerCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.