Class ModuleDescription

java.lang.Object
org.hortonmachine.gui.spatialtoolbox.core.ModuleDescription

public class ModuleDescription
extends java.lang.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 Details

    • ModuleDescription

      public ModuleDescription​(java.lang.Class<?> moduleClass, java.lang.String category, java.lang.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 Details

    • addInput

      public void addInput​(java.lang.String fieldName, java.lang.String type, java.lang.String description, java.lang.String defaultValue, java.lang.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​(java.lang.String fieldName, java.lang.String type, java.lang.String description, java.lang.String defaultValue, java.lang.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 java.lang.String getName()
    • getClassName

      public java.lang.String getClassName()
    • getScriptName

      public java.lang.String getScriptName()
    • getModuleClass

      public java.lang.Class<?> getModuleClass()
    • getCategory

      public java.lang.String getCategory()
    • getDescription

      public java.lang.String getDescription()
    • getStatus

      public ModuleDescription.Status getStatus()
    • getInputsList

      public java.util.List<FieldData> getInputsList()
    • getOutputsList

      public java.util.List<FieldData> getOutputsList()
    • getCreationTime

      public int getCreationTime()
    • makeCopy

      public ModuleDescription makeCopy()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object