@Test public void testDataType() { String dataType = "java.lang.Float"; Variable variable = new Variable("input", Variable.VariableType.INPUT, dataType, null); assertEquals(dataType, getDataType(variable)); }
static String getDataType(Variable variable) { if (!isNullOrEmpty(variable.getCustomDataType())) { return variable.getCustomDataType(); } return isNullOrEmpty(variable.getDataType()) ? "Object" : variable.getDataType(); }
MultipleInstanceVariableEditorPresenter extends FieldEditorPresenter<String> { static String getDataType(Variable variable) { if (!isNullOrEmpty(variable.getCustomDataType())) { return variable.getCustomDataType(); } return isNullOrEmpty(variable.getDataType()) ? "Object" : variable.getDataType(); } }
MultipleInstanceVariableEditorPresenter extends FieldEditorPresenter<String> { static String getDataType(Variable variable) { if (!isNullOrEmpty(variable.getCustomDataType())) { return variable.getCustomDataType(); } return isNullOrEmpty(variable.getDataType()) ? "Object" : variable.getDataType(); } @Inject  MultipleInstanceVariableEditorPresenter(final View view,
                                                   final SessionManager sessionManager); }
MultipleInstanceVariableEditorPresenter extends FieldEditorPresenter<String> { static String getDataType(Variable variable) { if (!isNullOrEmpty(variable.getCustomDataType())) { return variable.getCustomDataType(); } return isNullOrEmpty(variable.getDataType()) ? "Object" : variable.getDataType(); } @Inject  MultipleInstanceVariableEditorPresenter(final View view,
                                                   final SessionManager sessionManager); @PostConstruct void init(); @Override void setValue(String value); List<String> getSimpleDataTypes(); @Override void setReadOnly(boolean readOnly); void onVariableChange(); Path getDiagramPath(); static Map<String, String> getMapDataTypeNamesToDisplayNames(); }
MultipleInstanceVariableEditorPresenter extends FieldEditorPresenter<String> { static String getDataType(Variable variable) { if (!isNullOrEmpty(variable.getCustomDataType())) { return variable.getCustomDataType(); } return isNullOrEmpty(variable.getDataType()) ? "Object" : variable.getDataType(); } @Inject  MultipleInstanceVariableEditorPresenter(final View view,
                                                   final SessionManager sessionManager); @PostConstruct void init(); @Override void setValue(String value); List<String> getSimpleDataTypes(); @Override void setReadOnly(boolean readOnly); void onVariableChange(); Path getDiagramPath(); static Map<String, String> getMapDataTypeNamesToDisplayNames();  }