Class ModuleDescription
- java.lang.Object
-
- org.hortonmachine.gui.spatialtoolbox.core.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)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleDescription.ModuleDescriptionNameComparatorstatic classModuleDescription.Status
-
Constructor Summary
Constructors Constructor Description ModuleDescription(Class<?> moduleClass, String category, String description, oms3.annotations.Status omsStatus)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInput(String fieldName, String type, String description, String defaultValue, String uiHint)Adds an input field to the module.voidaddOutput(String fieldName, String type, String description, String defaultValue, String uiHint)Adds an output field to the module.booleanequals(Object obj)StringgetCategory()StringgetClassName()intgetCreationTime()StringgetDescription()List<FieldData>getInputsList()Class<?>getModuleClass()StringgetName()List<FieldData>getOutputsList()StringgetScriptName()ModuleDescription.StatusgetStatus()inthashCode()ModuleDescriptionmakeCopy()StringtoString()
-
-
-
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 ornull.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 ornull.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()
-
getStatus
public ModuleDescription.Status getStatus()
-
getCreationTime
public int getCreationTime()
-
makeCopy
public ModuleDescription makeCopy()
-
-