Package org.corpus_tools.pepper.core
Class Step
- java.lang.Object
-
- org.corpus_tools.pepper.common.StepDesc
-
- org.corpus_tools.pepper.core.Step
-
-
Constructor Summary
Constructors Constructor Description Step(String id)Initializes this object and sets its internal id, which represents its position in list of steps.Step(String id, StepDesc stepDesc)Initializes this object and sets its internal id, which represents its position in list of steps.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Returns the internal id, which represents position of theStepin list of steps.ModuleControllerImplgetModuleController()TheModuleControllerImplobject which belongs to this step and acts as a bridge between Pepper and the Pepper module.MODULE_TYPEgetModuleType()Returns the type of thePepperModuleto be used.StringgetName()If aPepperModuleis set, overrides the set name with the name of thePepperModule.StepsetCorpusDesc(CorpusDesc corpusDesc){@inheritDoc StepDesc#setCorpusDesc(CorpusDesc)} Further passes the givenCorpusDescto theModuleControllerImpl, if already set.voidsetPepperModule(PepperModule pepperModule)Creates aModuleControllerImplobject as container for the passedPepperModuleobject.StepsetProps(Properties props)IfsetPepperModule(PepperModule)was already called, the passedPropertiesobject is used to create aPepperModulePropertiesobject, which is set to givenPepperModule.-
Methods inherited from class org.corpus_tools.pepper.common.StepDesc
getCorpusDesc, getProps, getVersion, setModuleType, setName, setVersion, toString, toXML
-
-
-
-
Constructor Detail
-
Step
public Step(String id)
Initializes this object and sets its internal id, which represents its position in list of steps.- Parameters:
id- unique id for aPepperJobImpl
-
Step
public Step(String id, StepDesc stepDesc)
Initializes this object and sets its internal id, which represents its position in list of steps.- Parameters:
id- unique id for aPepperJobImplstepDesc- sets the abstractStepDescobject to used here
-
-
Method Detail
-
getName
public String getName()
If aPepperModuleis set, overrides the set name with the name of thePepperModule.- Overrides:
getNamein classStepDesc- Returns:
- name of
PepperModule
-
getId
public String getId()
Returns the internal id, which represents position of theStepin list of steps.- Returns:
-
setCorpusDesc
public Step setCorpusDesc(CorpusDesc corpusDesc)
{@inheritDoc StepDesc#setCorpusDesc(CorpusDesc)} Further passes the givenCorpusDescto theModuleControllerImpl, if already set.- Overrides:
setCorpusDescin classStepDesc
-
setPepperModule
public void setPepperModule(PepperModule pepperModule)
Creates aModuleControllerImplobject as container for the passedPepperModuleobject. ThePepperModuleobject is injected to theModuleControllerImplobject. IfsetProps(Properties)was already called,Propertieswill be passed toPepperModuleto create aPepperModulePropertiesobject.- Parameters:
pepperModule-
-
getModuleController
public ModuleControllerImpl getModuleController()
TheModuleControllerImplobject which belongs to this step and acts as a bridge between Pepper and the Pepper module.- Returns:
- controller object for
PepperModule
-
getModuleType
public MODULE_TYPE getModuleType()
Returns the type of thePepperModuleto be used. If noMODULE_TYPEis set, but theModuleControllerImplis, the type is estimated.- Overrides:
getModuleTypein classStepDesc- Returns:
- module type
-
setProps
public Step setProps(Properties props)
IfsetPepperModule(PepperModule)was already called, the passedPropertiesobject is used to create aPepperModulePropertiesobject, which is set to givenPepperModule.
-
-