public class JaxbBaseAlignmentReader extends AbstractImportProvider implements BaseAlignmentReader
PARAM_RESOURCE_ID, PARAM_SOURCE
PARAM_CHARSET, PARAM_CONTENT_TYPE
Constructor and Description |
---|
JaxbBaseAlignmentReader() |
Modifier and Type | Method and Description |
---|---|
protected IOReport |
execute(ProgressIndicator progress,
IOReporter reporter)
Execute the I/O provider.
|
MutableAlignment |
getAlignment()
Get the alignment
|
protected String |
getDefaultTypeName()
Get the default type name if no content type is provided
|
TypeIndex |
getSourceSchema()
Get the source schema
|
TypeIndex |
getTargetSchema()
Get the target schema
|
boolean |
isCancelable()
States if the execution of the provider is cancelable
|
void |
setAlignment(MutableAlignment alignment)
Set the alignment to be expanded
|
void |
setProjectLocation(URI projectLocation)
Set the project location (if available).
|
void |
setSourceSchema(TypeIndex sourceSchema)
Set the source schema
|
void |
setTargetSchema(TypeIndex targetSchema)
Set the target schema
|
void |
validate()
Validate the I/O provider configuration
|
createReporter, execute, generateResourceId, getResourceIdentifier, getSource, setParameter, setSource, storeConfiguration
addSupportedParameter, fail, getCharset, getContentType, getDefaultCharset, getParameter, getSupportedParameters, getTypeName, loadConfiguration, setCharset, setContentType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceIdentifier, getSource, setSource
createReporter, execute, getCharset, getContentType, getParameter, getSupportedParameters, loadConfiguration, setCharset, setContentType, setParameter, storeConfiguration
public boolean isCancelable()
IOProvider
isCancelable
in interface IOProvider
IOProvider.isCancelable()
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 reportIOProviderConfigurationException
- if the I/O provider was not
configured properlyIOException
- if an I/O operation failsAbstractIOProvider.execute(eu.esdihumboldt.hale.common.core.io.ProgressIndicator,
eu.esdihumboldt.hale.common.core.io.report.IOReporter)
protected String getDefaultTypeName()
AbstractIOProvider
getDefaultTypeName
in class AbstractIOProvider
AbstractIOProvider.getDefaultTypeName()
public void setSourceSchema(TypeIndex sourceSchema)
BaseAlignmentReader
setSourceSchema
in interface BaseAlignmentReader
sourceSchema
- the source schemaBaseAlignmentReader.setSourceSchema(TypeIndex)
public TypeIndex getSourceSchema()
public void setTargetSchema(TypeIndex targetSchema)
BaseAlignmentReader
setTargetSchema
in interface BaseAlignmentReader
targetSchema
- the source schemaBaseAlignmentReader.setTargetSchema(TypeIndex)
public TypeIndex getTargetSchema()
public MutableAlignment getAlignment()
public void setAlignment(MutableAlignment alignment)
BaseAlignmentReader
setAlignment
in interface BaseAlignmentReader
alignment
- the alignment to setpublic void validate() throws IOProviderConfigurationException
IOProvider
validate
in interface IOProvider
validate
in class AbstractImportProvider
IOProviderConfigurationException
- if the I/O provider was not
configured properlyAbstractImportProvider.validate()
public void setProjectLocation(URI projectLocation)
BaseAlignmentReader
setProjectLocation
in interface BaseAlignmentReader
projectLocation
- the project locationBaseAlignmentReader.setProjectLocation(URI)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a