Class StepDesc

  • Direct Known Subclasses:
    Step

    public class StepDesc
    extends Object
    This class represents a description of a single step in Pepper. A step is a conceptual unit, to which exactly one PepperModule instance belongs to. Such a step can belong to either the import phase, the manipulation phase or the export phase.
    This class is used as a communication bridge between the Pepper framework and the outside. When using Pepper as a library or a service, one can create 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.
    The main fields of this class are:
    Author:
    Florian Zipser
    • Constructor Detail

      • StepDesc

        public StepDesc()
    • Method Detail

      • getModuleType

        public MODULE_TYPE getModuleType()
        Returns the type of the PepperModule to be used.
        Returns:
        module type
      • getCorpusDesc

        public CorpusDesc getCorpusDesc()
        Returns an object to describe all infos about the corpus to im- or export. This includes the following:
        • location of the corpus
        • name of the format, the corpus is in or has to be exported in
        • version of the format, the corpus is in or has to be exported in
        If no CorpusDesc object is set, one will be created.
        Returns:
      • setCorpusDesc

        public StepDesc setCorpusDesc​(CorpusDesc corpusDesc)
        Sets an object to describe all infos about the corpus to im- or export. This includes the following:
        • location of the corpus
        • name of the format, the corpus is in or has to be exported in
        • version of the format, the corpus is in or has to be exported in
        Parameters:
        corpusDesc -
      • getProps

        public Properties getProps()
        Returns the object for temporary storage of customization properties. This object is used to create PepperModuleProperties .
        Returns:
      • setProps

        public 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 .
        Parameters:
        props - properties to customize processing
      • toString

        public String toString()
        Returns a string representation of this object. Note: This representation cannot be used for serialization/deserialization purposes.
        Overrides:
        toString in class Object