public void addFieldValue( final ActionFieldValue val ) { if ( val instanceof ActionFieldFunction ) { super.addFieldValue( val ); } else { throw new IllegalArgumentException( "Cannot assign field values of types other than ActionFieldFunction." ); } } }
public void onChange( ChangeEvent event ) { String fieldName = box.getItemText( box.getSelectedIndex() ); String fieldType = completions.getFieldType( variableClass, fieldName ); model.addFieldValue( new ActionFieldValue( fieldName, "", fieldType ) ); setModified( true ); getModeller().refreshWidget(); popup.hide(); } } );
private ActionSetField visitActionFieldList( ActionSetField afl ) { ActionSetField clone = new ActionSetField(); clone.setVariable( afl.getVariable() ); for ( ActionFieldValue afv : afl.getFieldValues() ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }
au.addFieldValue( new ActionFieldValue( "dob", "31-Jan-2000", DataType.TYPE_DATE ) );
"BooleanResult", Boolean.class.getName() ); asf.addFieldValue( fv1 ); ActionWorkItemFieldValue fv2 = new ActionWorkItemFieldValue( "ResultsFloatResult", DataType.TYPE_NUMERIC_FLOAT, "FloatResult", Float.class.getName() ); asf.addFieldValue( fv2 ); ActionWorkItemFieldValue fv3 = new ActionWorkItemFieldValue( "ResultsIntegerResult", DataType.TYPE_NUMERIC_INTEGER, "IntegerResult", Integer.class.getName() ); asf.addFieldValue( fv3 ); ActionWorkItemFieldValue fv4 = new ActionWorkItemFieldValue( "ResultsStringResult", DataType.TYPE_STRING, "StringResult", String.class.getName() ); asf.addFieldValue( fv4 );