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 .