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()
Pepper
Pepper
.getConfiguration
in interface Pepper
public void setConfiguration(PepperConfiguration configuration)
Pepper
Pepper
.setConfiguration
in interface Pepper
public Set<String> findAppropriateImporters(org.eclipse.emf.common.util.URI corpusPath) throws FileNotFoundException
Pepper
corpusPath
. If no importer was found for importing
the returned list is empty, not null.findAppropriateImporters
in interface Pepper
corpusPath
- the path which should be checked by each importercorpusPath
FileNotFoundException
public String createJob()
Pepper
PepperJob
object for a new conversion process.public Set<String> getJobIds()
PepperJobImpl
objects.public PepperJob getJob(String id) throws JobNotFoundException
Pepper
PepperJob
corresponding to the passed id.getJob
in interface Pepper
id
- identifier of a PepperJob
PepperJob
corresponding to the passed idJobNotFoundException
public PepperJobImpl getPepperJobImpl(String id) throws JobNotFoundException
JobNotFoundException
public boolean removeJob(String id) throws JobNotFoundException
Pepper
PepperJob
corresponding to the passed identifier, if
a job exists.removeJob
in interface Pepper
id
- identifier of a PepperJob
JobNotFoundException
public File getLocation(String id) throws JobNotFoundException
id
- JobNotFoundException
public void cleanUp()
public Collection<PepperModuleDesc> getRegisteredImporters()
Pepper
PepperModuleDesc
corresponding to a registered
importer. When no importer is registered returns an empty collection, not
null.getRegisteredImporters
in interface Pepper
public Collection<PepperModuleDesc> getRegisteredModules()
Pepper
PepperModuleDesc
corresponding to
Pepper modules, which are registered in this Pepper
instance.
getRegisteredModules
in interface Pepper
PepperModuleDesc
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()
Pepper
PepperImporterImpl.isImportable(URI)
method. checkFitness
in interface Pepper
public Collection<String> selfTest()
Pepper
public String getRegisteredModulesAsString()
Pepper
Pepper.getRegisteredModules()
.getRegisteredModulesAsString
in interface Pepper
Copyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.