public abstract class AbstractExportOptionProcessor
extends com.github.dandelion.core.option.AbstractOptionProcessor
Abstract option processor for all export-related options.
Mainly contains utilities when processing export options.
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
PATTERN_EXPORT_FORMAT |
static String |
REGEX_EXPORT_FORMAT |
Constructor and Description |
---|
AbstractExportOptionProcessor() |
Modifier and Type | Method and Description |
---|---|
protected ExportConf |
getExportConf(String exportFormat,
com.github.dandelion.core.option.OptionProcessingContext context)
Returns an instance of
ExportConf to be configured by the export
option. |
protected String |
getExportFormat(com.github.dandelion.core.option.OptionProcessingContext context)
Extracts the export format from the option name.
|
public static final String REGEX_EXPORT_FORMAT
protected static final Pattern PATTERN_EXPORT_FORMAT
protected String getExportFormat(com.github.dandelion.core.option.OptionProcessingContext context)
Extracts the export format from the option name.
context
- The context to be used during the option processing.protected ExportConf getExportConf(String exportFormat, com.github.dandelion.core.option.OptionProcessingContext context)
Returns an instance of ExportConf
to be configured by the export
option.
The instance is retrieved either from the corresponding
TableConfiguration
if it exists or is created and then stored in
TableConfiguration
.
exportFormat
- The current export format.context
- The context to be used during the option processing.Copyright © 2013–2015 Dandelion Project. All rights reserved.