|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.data.converter.AbstractConverter
public abstract class AbstractConverter
Abstract implementation of IConverter
interface.
IConverter
Constructor Summary | |
---|---|
protected |
AbstractConverter(ConverterSpecification specification)
Constructor. |
Method Summary | ||
---|---|---|
|
convert(List<? extends IDataSet<? extends IElement>> dataSets)
Converts given input data sets into a new output data set. |
|
|
convert(MultiMap<ConverterInputEntry,? extends IDataSet<? extends IElement>> dataSets)
Converts given input data sets into a new output data set. |
|
protected abstract
|
doConvert(MultiMap<ConverterInputEntry,? extends IDataSet<? extends IElement>> dataSets)
|
|
ConverterSpecification |
getSpecification()
Returns the converter specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractConverter(ConverterSpecification specification)
specification
- converter specification
IllegalArgumentException
- if specification is null
Method Detail |
---|
public <T extends IDataSet<? extends IElement>> T convert(List<? extends IDataSet<? extends IElement>> dataSets) throws ConverterException
convert
in interface IConverter
T
- the type of conversion output data setdataSets
- a list of data sets
#getOutputType()
method
ConverterException
- if the input data sets do not conform to the input entry specification or a data set conversion
failedIConverter.convert(java.util.List)
public final <T extends IDataSet<? extends IElement>> T convert(MultiMap<ConverterInputEntry,? extends IDataSet<? extends IElement>> dataSets) throws ConverterException
convert
in interface IConverter
T
- the type of conversion output data setdataSets
- a map of data sets indexed by the input entries returned by the #getInputEntries()
method
#getOutputType()
method
ConverterException
- if the input data sets do not conform to the input entry specification or a data set conversion
failedpl.edu.agh.cast.data.converter.IConverter#convert(pl.edu.agh.cast.common.collections.collections.MultiMap)
protected abstract <T extends IDataSet<? extends IElement>> T doConvert(MultiMap<ConverterInputEntry,? extends IDataSet<? extends IElement>> dataSets) throws ConverterException
ConverterException
public final ConverterSpecification getSpecification()
getSpecification
in interface IConverter
IConverter.getSpecification()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |