public class StepDesc extends Object
PepperModule instance belongs to.
Such a step can belong to either the import phase, the manipulation phase or
the export phase. StepDesc object which an abstract description of which module is to
use (by setting the name of module and its version) and in case of the module
is an importer or an exporter, the description of the path, where the corpus
is located. name - the name of the
PepperModule to be used to identify
PepperModuleversion - the version of the
PepperModule to be used to identify
the PepperModulecorpusDesc - an object describing the corpus to be imported or
exported (just in case of the
PepperModule is a
PepperImporter or a
PepperExporter ). This object
contains a description of the format (name and version) and a path, where to
find the corpus.props - a general property object (see: Properties) to
customize the mapping process| Constructor and Description |
|---|
StepDesc() |
| Modifier and Type | Method and Description |
|---|---|
CorpusDesc |
getCorpusDesc()
Returns an object to describe all infos about the corpus to im- or
export.
|
MODULE_TYPE |
getModuleType()
Returns the type of the
PepperModule to be used. |
String |
getName()
Returns the name of the
PepperModule to be used for this
step. |
Properties |
getProps()
Returns the object for temporary storage of customization properties.
|
String |
getVersion()
Returns the version of the
PepperModule to be used for this
step. |
StepDesc |
setCorpusDesc(CorpusDesc corpusDesc)
Sets an object to describe all infos about the corpus to im- or export.
|
StepDesc |
setModuleType(MODULE_TYPE moduleType)
Sets the type of the
PepperModule
to be used. |
StepDesc |
setName(String name)
Sets the name of the
PepperModule
to be used for this step. |
StepDesc |
setProps(Properties props)
If
#setPepperModule(org.corpus_tools.pepper.modules.PepperModule)
was already called, the passed Properties object is used to
create a PepperModuleProperties
object, which is set to given
PepperModule . |
StepDesc |
setVersion(String version)
Sets the version of the
PepperModule to be used for this
step. |
String |
toString()
Returns a string representation of this object.
|
void |
toXML(XMLStreamWriter writer) |
public MODULE_TYPE getModuleType()
PepperModule to be used.public StepDesc setModuleType(MODULE_TYPE moduleType)
PepperModule
to be used.moduleType - public String getName()
PepperModule to be used for this
step.PepperModulepublic StepDesc setName(String name)
PepperModule
to be used for this step.name - of PepperModulepublic String getVersion()
PepperModule to be used for this
step.PepperModulepublic StepDesc setVersion(String version)
PepperModule to be used for this
step.version - of PepperModulepublic CorpusDesc getCorpusDesc()
CorpusDesc object is set, one will be created.public StepDesc setCorpusDesc(CorpusDesc corpusDesc)
corpusDesc - public Properties getProps()
PepperModuleProperties .public StepDesc setProps(Properties props)
#setPepperModule(org.corpus_tools.pepper.modules.PepperModule)
was already called, the passed Properties object is used to
create a PepperModuleProperties
object, which is set to given
PepperModule .props - properties to customize processingpublic void toXML(XMLStreamWriter writer)
Copyright © 2009–2020 Humboldt-Universität zu Berlin, INRIA. All rights reserved.