|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider
eu.esdihumboldt.hale.common.core.io.impl.AbstractImportProvider
eu.esdihumboldt.hale.common.schema.io.impl.AbstractSchemaReader
eu.esdihumboldt.hale.io.csv.reader.internal.CSVSchemaReader
public class CSVSchemaReader
Reads a schema from a CSV file.
Field Summary | |
---|---|
static String[] |
firstLine
The first line of the CSV file |
static String |
PARAM_PROPERTY
Name of the parameter specifying the property name |
static String |
PARAM_PROPERTYTYPE
Name of the parameter specifying the property type |
Fields inherited from interface eu.esdihumboldt.hale.io.csv.reader.internal.CSVConstants |
---|
DEFAULT_ESCAPE, DEFAULT_QUOTE, DEFAULT_SEPARATOR, PARAM_ESCAPE, PARAM_GEOMETRY, PARAM_QUOTE, PARAM_SEPARATOR, PARAM_TYPENAME |
Fields inherited from interface eu.esdihumboldt.hale.common.core.io.ImportProvider |
---|
PARAM_RESOURCE_ID, PARAM_SOURCE |
Fields inherited from interface eu.esdihumboldt.hale.common.core.io.IOProvider |
---|
PARAM_CONTENT_TYPE |
Constructor Summary | |
---|---|
CSVSchemaReader()
|
Method Summary | |
---|---|
protected IOReport |
execute(ProgressIndicator progress,
IOReporter reporter)
Execute the I/O provider. |
protected String |
getDefaultTypeName()
Get the default type name if no content type is provided |
Schema |
getSchema()
Get the loaded schema |
boolean |
isCancelable()
States if the execution of the provider is cancelable |
void |
validate()
Validate the I/O provider configuration |
Methods inherited from class eu.esdihumboldt.hale.common.schema.io.impl.AbstractSchemaReader |
---|
getSharedTypes, setSharedTypes |
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractImportProvider |
---|
createReporter, execute, generateResourceId, getResourceIdentifier, getSource, setParameter, setSource, storeConfiguration |
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider |
---|
addSupportedParameter, fail, getContentType, getParameter, getSupportedParameters, getTypeName, loadConfiguration, setContentType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.ImportProvider |
---|
getResourceIdentifier, getSource, setSource |
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.IOProvider |
---|
createReporter, execute, getContentType, getParameter, getSupportedParameters, loadConfiguration, setContentType, setParameter, storeConfiguration |
Field Detail |
---|
public static String[] firstLine
public static final String PARAM_PROPERTY
public static final String PARAM_PROPERTYTYPE
Constructor Detail |
---|
public CSVSchemaReader()
Method Detail |
---|
public boolean isCancelable()
IOProvider
isCancelable
in interface IOProvider
IOProvider.isCancelable()
public Schema getSchema()
SchemaReader
getSchema
in interface SchemaReader
SchemaReader.getSchema()
public void validate() throws IOProviderConfigurationException
IOProvider
validate
in interface IOProvider
validate
in class AbstractImportProvider
IOProviderConfigurationException
- if the I/O provider was not
configured properlyAbstractImportProvider.validate()
protected IOReport execute(ProgressIndicator progress, IOReporter reporter) throws IOProviderConfigurationException, IOException
AbstractIOProvider
execute
in class AbstractIOProvider
progress
- the progress indicatorreporter
- the reporter to use for the execution report
IOProviderConfigurationException
- if the I/O provider was not
configured properly
IOException
- if an I/O operation failsAbstractIOProvider.execute(ProgressIndicator, IOReporter)
protected String getDefaultTypeName()
AbstractIOProvider
getDefaultTypeName
in class AbstractIOProvider
AbstractIOProvider.getDefaultTypeName()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |