T
- the data model typepublic class SourceDataModelSource<T> extends Object implements DataModelSource
DataModelSource
implementation via the Source
interface.Constructor and Description |
---|
SourceDataModelSource(DataModelDefinition<T> definition,
Source<? extends T> source)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
DataModelReflection |
next()
Returns the next model object (in a generic reflection form).
|
public SourceDataModelSource(DataModelDefinition<T> definition, Source<? extends T> source)
definition
- the data model definitionsource
- the sourcepublic DataModelReflection next() throws IOException
DataModelSource
next
in interface DataModelSource
null
if no such objects existIOException
- if failed to obtain model objectspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.