Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.io.impl
Class AbstractAlignmentWriter

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider
      extended by eu.esdihumboldt.hale.common.core.io.impl.AbstractExportProvider
          extended by eu.esdihumboldt.hale.common.align.io.impl.AbstractAlignmentWriter
All Implemented Interfaces:
AlignmentWriter, ExportProvider, IOProvider
Direct Known Subclasses:
DefaultAlignmentWriter, HtmlMappingExporter

public abstract class AbstractAlignmentWriter
extends AbstractExportProvider
implements AlignmentWriter

Abstract alignment writer implementation

Author:
Simon Templer

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.common.core.io.ExportProvider
PARAM_TARGET
 
Fields inherited from interface eu.esdihumboldt.hale.common.core.io.IOProvider
PARAM_CONTENT_TYPE
 
Constructor Summary
AbstractAlignmentWriter()
           
 
Method Summary
protected  Alignment getAlignment()
          Get the alignment
protected  SchemaSpace getSourceSchema()
          Get the source schema.
protected  SchemaSpace getTargetSchema()
          Get the source schema.
 void setAlignment(Alignment alignment)
          Set the alignment to write.
 void setSourceSchema(SchemaSpace sourceSchema)
          Set the source schema associated to the alignment.
 void setTargetSchema(SchemaSpace targetSchema)
          Set the target schema associated to the alignment.
 void validate()
          Checks for the alignment being available.
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractExportProvider
createReporter, getTarget, setParameter, setTarget, storeConfiguration
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider
addSupportedParameter, execute, execute, fail, getContentType, getDefaultTypeName, 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.ExportProvider
getTarget, setTarget
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.IOProvider
createReporter, execute, getContentType, getParameter, getSupportedParameters, isCancelable, loadConfiguration, setContentType, setParameter, storeConfiguration
 

Constructor Detail

AbstractAlignmentWriter

public AbstractAlignmentWriter()
Method Detail

setAlignment

public void setAlignment(Alignment alignment)
Description copied from interface: AlignmentWriter
Set the alignment to write.

Specified by:
setAlignment in interface AlignmentWriter
Parameters:
alignment - the alignment
See Also:
AlignmentWriter.setAlignment(Alignment)

setSourceSchema

public void setSourceSchema(SchemaSpace sourceSchema)
Description copied from interface: AlignmentWriter
Set the source schema associated to the alignment.

Specified by:
setSourceSchema in interface AlignmentWriter
Parameters:
sourceSchema - the source schema
See Also:
AlignmentWriter.setSourceSchema(SchemaSpace)

setTargetSchema

public void setTargetSchema(SchemaSpace targetSchema)
Description copied from interface: AlignmentWriter
Set the target schema associated to the alignment.

Specified by:
setTargetSchema in interface AlignmentWriter
Parameters:
targetSchema - the target schema
See Also:
AlignmentWriter.setTargetSchema(SchemaSpace)

getAlignment

protected Alignment getAlignment()
Get the alignment

Returns:
the alignment to write

getSourceSchema

protected SchemaSpace getSourceSchema()
Get the source schema.

Returns:
the source schema

getTargetSchema

protected SchemaSpace getTargetSchema()
Get the source schema.

Returns:
the target schema

validate

public void validate()
              throws IOProviderConfigurationException
Checks for the alignment being available.

Specified by:
validate in interface IOProvider
Overrides:
validate in class AbstractExportProvider
Throws:
IOProviderConfigurationException - if the I/O provider was not configured properly
See Also:
AbstractExportProvider.validate()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d