public void addOutput( String fieldName, String type, String description, String defaultValue, String uiHint ) {
        if (fieldName == null) {
            throw new IllegalArgumentException("field name is mandatory");
        }
        if (type == null) {
            throw new IllegalArgumentException("field type is mandatory");
        }
        if (description == null) {
            description = "No description available";
        }

        FieldData fieldData = new FieldData();
        fieldData.isIn = false;
        fieldData.fieldName = fieldName;
        fieldData.fieldType = type;
        fieldData.fieldDescription = description;
        fieldData.fieldValue = defaultValue;
        fieldData.guiHints = uiHint;

        if (!outputsList.contains(fieldData)) {
            outputsList.add(fieldData);
        } else {
            throw new IllegalArgumentException("Duplicated field: " + fieldName);
        }
    }
public void addOutput ( String fieldName , String type , String description , String defaultValue , String uiHint ) { if ( fieldName == null ) { throw new IllegalArgumentException ( "field name is mandatory" ) ; } if ( type == null ) { throw new IllegalArgumentException ( "field type is mandatory" ) ; } if ( description == null ) { description = "No description available" ; } FieldData fieldData = new FieldData ( ) ; fieldData . isIn = false ; fieldData . fieldName = fieldName ; fieldData . fieldType = type ; fieldData . fieldDescription = description ; fieldData . fieldValue = defaultValue ; fieldData . guiHints = uiHint ; if ( ! outputsList . contains ( fieldData ) ) { outputsList . add ( fieldData ) ; } else { throw new IllegalArgumentException ( "Duplicated field: " + fieldName ) ; } }
Adds an output field to the module.

@param fieldName the name of the field (accessed through reflection).
@param type the chanonical name of the class of the field.
@param description a description of the field.
@param defaultValue a default value or <code>null</code>.
@param uiHint