public class DoNothingExporter extends PepperExporterImpl implements PepperExporter
PepperExporter.EXPORT_MODE| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT_NAME |
static String |
FORMAT_VERSION |
static String |
MODULE_NAME |
corpusDefinitionisMultithreaded, logger, moduleController, resources, saltProject, sCorpusGraph, symbolicName, temprorariesENDING_ALL_FILES, ENDING_FOLDER, ENDING_LEAF_FOLDER, ENDING_TAB, ENDING_TXT, ENDING_XML| Constructor and Description |
|---|
DoNothingExporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext componentContext)
This method is called by OSGi framework and sets the component context,
this class is running in.
|
PepperMapper |
createPepperMapper(org.corpus_tools.salt.graph.Identifier id)
Creates a mapper which does nothing.
|
SelfTestDesc |
getSelfTestDesc()
This method is called by the Pepper framework to run an integration test
for module.
|
void |
start()
Adds the call of method
#exportCorpusStructure(SCorpusGraph),
than calls PepperModule.start(). |
addSupportedFormat, createFolderStructure, exportCorpusStructure, getCorpusDesc, getDocumentEnding, getExportMode, getIdentifier2ResourceTable, getSupportedFormats, setCorpusDesc, setDocumentEnding, setExportModedone, done, end, getComponentContext, getCorpusGraph, getDesc, getDocumentId2DC, getFingerprint, getMapperControllers, getMapperThreadGroup, getModuleController, getModuleType, getName, getProgress, getProgress, getProperties, getResources, getSaltProject, getStartProblems, getSupplierContact, getSupplierHomepage, getSymbolicName, getTemproraries, getVersion, isMultithreaded, isReadyToStart, proposeImportOrder, setCorpusGraph, setDesc, setIsMultithreaded, setMapperThreadGroup, setName, setPepperModuleController_basic, setPepperModuleController, setProperties, setResources, setSaltProject, setSupplierContact, setSupplierHomepage, setSymbolicName, setTemproraries, setVersion, start, toString, uncaughtExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSupportedFormat, createFolderStructure, exportCorpusStructure, getCorpusDesc, getDocumentEnding, getExportMode, getIdentifier2ResourceTable, getSupportedFormats, setCorpusDesc, setDocumentEnding, setExportModedone, done, end, getComponentContext, getCorpusGraph, getDesc, getFingerprint, getModuleController, getModuleType, getName, getProgress, getProgress, getProperties, getResources, getSaltProject, getStartProblems, getSupplierContact, getSupplierHomepage, getSymbolicName, getTemproraries, getVersion, isMultithreaded, isReadyToStart, proposeImportOrder, setCorpusGraph, setDesc, setIsMultithreaded, setPepperModuleController_basic, setPepperModuleController, setProperties, setResources, setSaltProject, setSupplierContact, setSupplierHomepage, setSymbolicName, setTemproraries, setVersion, startpublic static final String MODULE_NAME
public static final String FORMAT_NAME
public static final String FORMAT_VERSION
public void activate(org.osgi.service.component.ComponentContext componentContext)
PepperModuleImplComponentContext object for symbolic name and version and
initializes its values PepperModuleImpl.symbolicName and #version with
it. When running this class in OSGi context, you do not have to set both
values by hand. With the given architecture, the symbolic name and the
bundle version will be given by pom.xml, via MANIFEST.MF and finally read
by this method. Also sets the internal field storing the
ComponentContext which can be retrieved via
PepperModuleImpl.getComponentContext().activate in class PepperModuleImplpublic SelfTestDesc getSelfTestDesc()
PepperModuleSelfTestDesc object needs to
provide an input corpus path and an output corpus path.
When this module is:
SelfTestDesc.getInputCorpusPath() should contain
the format to be imported. SelfTestDesc.getExpectedCorpusPath()
should contain the expected salt project (for control).SelfTestDesc.getInputCorpusPath() should
contain a salt project which is the module's input.
SelfTestDesc.getExpectedCorpusPath() should contain the expected
salt project (for control).SelfTestDesc.getInputCorpusPath() should contain
a salt project which is the module's input.
SelfTestDesc.getExpectedCorpusPath() should contain the expected
corpus in output format.return new IntegrationTestDesc(inputPath, outputPath);When this module is an importer or a manipulator the method
SelfTestDesc.compare(SaltProject, SaltProject) is called to
compare output salt project with expected salt project. When the module
is an exporter the method SelfTestDesc.compare(URI, URI) is
called to compare the created output folder with an expected one. By
default this method checks whether the file structure and each file is
equal.getSelfTestDesc in interface PepperModulegetSelfTestDesc in class PepperModuleImplpublic void start()
throws PepperModuleException
PepperExporterImpl#exportCorpusStructure(SCorpusGraph),
than calls PepperModule.start().start in interface PepperModulestart in class PepperExporterImplPepperModuleExceptionpublic PepperMapper createPepperMapper(org.corpus_tools.salt.graph.Identifier id)
createPepperMapper in interface PepperModulecreatePepperMapper in class PepperModuleImplid - Identifier of the SCorpus or SDocument
to be processed.PepperMapper object to do the mapping task for object
connected to given IdentifierCopyright © 2009–2018 Humboldt-Universität zu Berlin, INRIA. All rights reserved.