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)
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleDescription.ModuleDescriptionNameComparatorstatic classModuleDescription.Status -
Constructor Summary
Constructors Constructor Description ModuleDescription(java.lang.Class<?> moduleClass, java.lang.String category, java.lang.String description, oms3.annotations.Status omsStatus)Constructor. -
Method Summary
Modifier and Type Method Description voidaddInput(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.voidaddOutput(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.booleanequals(java.lang.Object obj)java.lang.StringgetCategory()java.lang.StringgetClassName()intgetCreationTime()java.lang.StringgetDescription()java.util.List<FieldData>getInputsList()java.lang.Class<?>getModuleClass()java.lang.StringgetName()java.util.List<FieldData>getOutputsList()java.lang.StringgetScriptName()ModuleDescription.StatusgetStatus()inthashCode()ModuleDescriptionmakeCopy()java.lang.StringtoString()
-
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 ornull.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 ornull.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
-
getInputsList
-
getOutputsList
-
getCreationTime
public int getCreationTime() -
makeCopy
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-