Class ModuleDescription


  • public class ModuleDescription
    extends Object
    Description of a module.

    This is used to describe completely a module, so that a gui can be generated from it.

    Author:
    Andrea Antonello (www.hydrologis.com)
    • Constructor Detail

      • ModuleDescription

        public ModuleDescription​(Class<?> moduleClass,
                                 String category,
                                 String description,
                                 oms3.annotations.Status omsStatus)
        Constructor.
        Parameters:
        moduleClass - the class of the module.
        category - a category for the module. Can be nested through the use of pipes (ex. cat|subcat)
        description - a description of the module.
        omsStatus - the status of the module. Will end to define the maturity of the module.
    • Method Detail

      • addInput

        public void addInput​(String fieldName,
                             String type,
                             String description,
                             String defaultValue,
                             String uiHint)
        Adds an input field to the module.
        Parameters:
        fieldName - the name of the field (accessed through reflection).
        type - the chanonical name of the class of the field.
        description - a description of the field.
        defaultValue - a default value or null.
        uiHint -
      • addOutput

        public void addOutput​(String fieldName,
                              String type,
                              String description,
                              String defaultValue,
                              String uiHint)
        Adds an output field to the module.
        Parameters:
        fieldName - the name of the field (accessed through reflection).
        type - the chanonical name of the class of the field.
        description - a description of the field.
        defaultValue - a default value or null.
        uiHint -
      • getName

        public String getName()
      • getClassName

        public String getClassName()
      • getScriptName

        public String getScriptName()
      • getModuleClass

        public Class<?> getModuleClass()
      • getCategory

        public String getCategory()
      • getDescription

        public String getDescription()
      • getCreationTime

        public int getCreationTime()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object