|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jmatchparser.util.csv.fieldreader.FieldSourceFactory
public class FieldSourceFactory
Class to create field sources from another CSV file.
| Nested Class Summary | |
|---|---|
static class |
FieldSourceFactory.FieldSourceFactoryFields
Fields used in the CSV file for defining field sources |
| Constructor Summary | |
|---|---|
FieldSourceFactory(AbstractCSVReader reader)
Create a new field source factory that reads its field sources from the given CSV reader. |
|
| Method Summary | ||
|---|---|---|
|
createFieldSources(Collection<K> possibleFields)
Create field sources from the CSV file. |
|
|
createFieldSources(K[] possibleFields)
Create field sources from the CSV file. |
|
FieldReader<FieldSourceFactory.FieldSourceFactoryFields,Object> |
getReader()
Get the FieldReader used to parse the CSV file, for customizing
its field sources or other parameters. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldSourceFactory(AbstractCSVReader reader)
| Method Detail |
|---|
public FieldReader<FieldSourceFactory.FieldSourceFactoryFields,Object> getReader()
FieldReader used to parse the CSV file, for customizing
its field sources or other parameters.
public <K> Map<K,FieldSource> createFieldSources(K[] possibleFields)
throws FieldReaderException,
IOException
K - Type of the fields usedpossibleFields - Array of all possible fields, used to convert to string via
Object.toString() and compare
FieldReaderException
IOException
public <K> Map<K,FieldSource> createFieldSources(Collection<K> possibleFields)
throws FieldReaderException,
IOException
K - Type of the fields usedpossibleFields - All possible fields, used to convert to string via
Object.toString() and compare
FieldReaderException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||