| Constructor and Description |
|---|
PepperImpl() |
| Modifier and Type | Method and Description |
|---|---|
Collection<ModuleFitness> |
checkFitness()
Checks the fitness of each registered Pepper module.
|
void |
cleanUp()
Cleans up current workspace.
|
String |
createJob()
Creates a new
PepperJob object for a new conversion process. |
Set<String> |
findAppropriateImporters(org.eclipse.emf.common.util.URI corpusPath)
Returns the names of importers which can import the data located at the
specified
corpusPath. |
PepperConfiguration |
getConfiguration()
Returns set configuration for
Pepper. |
PepperJob |
getJob(String id)
Returns a
PepperJob corresponding to the passed id. |
Set<String> |
getJobIds()
Return identifiers of all registered
PepperJobImpl objects. |
File |
getLocation(String id)
Returns the location of a job.
|
ModuleResolver |
getModuleResolver()
Returns the set
ModuleResolverImpl object, to resolve
PepperModule objects. |
PepperJobImpl |
getPepperJobImpl(String id) |
Collection<PepperModuleDesc> |
getRegisteredImporters()
Returns all
PepperModuleDesc corresponding to a registered
importer. |
Collection<PepperModuleDesc> |
getRegisteredModules()
Returns a collection of all
PepperModuleDesc corresponding to
Pepper modules, which are registered in this Pepper instance. |
String |
getRegisteredModulesAsString()
Returns a string representation of the method
Pepper.getRegisteredModules(). |
boolean |
removeJob(String id)
Removes the
PepperJob corresponding to the passed identifier, if
a job exists. |
Collection<String> |
selfTest()
Checks if the Pepper framework is ready to run.
|
void |
setConfiguration(PepperConfiguration configuration)
Sets the configuration for
Pepper. |
void |
setModuleResolver(ModuleResolver moduleResolver)
Sets a
ModuleResolverImpl object to resolve PepperModule
objects for Pepper jobs. |
String |
toString()
Returns a string representation of this object.
|
void |
unsetModuleResolver(ModuleResolver moduleResolver)
Unsets the
ModuleResolverImpl reference. |
public PepperConfiguration getConfiguration()
PepperPepper.getConfiguration in interface Pepperpublic void setConfiguration(PepperConfiguration configuration)
PepperPepper.setConfiguration in interface Pepperpublic Set<String> findAppropriateImporters(org.eclipse.emf.common.util.URI corpusPath) throws FileNotFoundException
PeppercorpusPath. If no importer was found for importing
the returned list is empty, not null.findAppropriateImporters in interface PeppercorpusPath - the path which should be checked by each importercorpusPathFileNotFoundExceptionpublic String createJob()
PepperPepperJob object for a new conversion process.public Set<String> getJobIds()
PepperJobImpl objects.public PepperJob getJob(String id) throws JobNotFoundException
PepperPepperJob corresponding to the passed id.getJob in interface Pepperid - identifier of a PepperJobPepperJob corresponding to the passed idJobNotFoundExceptionpublic PepperJobImpl getPepperJobImpl(String id) throws JobNotFoundException
JobNotFoundExceptionpublic boolean removeJob(String id) throws JobNotFoundException
PepperPepperJob corresponding to the passed identifier, if
a job exists.removeJob in interface Pepperid - identifier of a PepperJobJobNotFoundExceptionpublic File getLocation(String id) throws JobNotFoundException
id - JobNotFoundExceptionpublic void cleanUp()
public Collection<PepperModuleDesc> getRegisteredImporters()
PepperPepperModuleDesc corresponding to a registered
importer. When no importer is registered returns an empty collection, not
null.getRegisteredImporters in interface Pepperpublic Collection<PepperModuleDesc> getRegisteredModules()
PepperPepperModuleDesc corresponding to
Pepper modules, which are registered in this Pepper instance.
getRegisteredModules in interface PepperPepperModuleDesc objects
corresponding to Pepper modulespublic ModuleResolver getModuleResolver()
ModuleResolverImpl object, to resolve
PepperModule objects.ModuleResolverImpl objectpublic void setModuleResolver(ModuleResolver moduleResolver)
ModuleResolverImpl object to resolve PepperModule
objects for Pepper jobs.moduleResolver - ModuleResolverImpl object to be used for jobspublic void unsetModuleResolver(ModuleResolver moduleResolver)
ModuleResolverImpl reference. This is necessary for
OSGi declarative service.public Collection<ModuleFitness> checkFitness()
PepperPepperImporterImpl.isImportable(URI) method. checkFitness in interface Pepperpublic Collection<String> selfTest()
Pepperpublic String getRegisteredModulesAsString()
PepperPepper.getRegisteredModules().getRegisteredModulesAsString in interface PepperCopyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.