@Test public void testBooleanAliases() { column.setFactField(FIELD_NAME); column.setFieldType(DataType.TYPE_BOOLEAN); column.setValueList("true=Yes,false=No"); final String[] valueList = utilities.getValueList(column); Assertions.assertThat(valueList).containsExactly("true=Yes", "false=No"); }
public String[] getValueList(final BaseColumn col) { if (col instanceof AttributeCol52) { return getValueList((AttributeCol52) col); } else if (col instanceof ConditionCol52) { return getValueList((ConditionCol52) col); } else if (col instanceof ActionSetFieldCol52) { return getValueList((ActionSetFieldCol52) col); } else if (col instanceof ActionInsertFactCol52) { return getValueList((ActionInsertFactCol52) col); } return new String[0]; }
ColumnUtilities extends ColumnUtilitiesBase { public String[] getValueList(final BaseColumn col) { if (col instanceof AttributeCol52) { return getValueList((AttributeCol52) col); } else if (col instanceof ConditionCol52) { return getValueList((ConditionCol52) col); } else if (col instanceof ActionSetFieldCol52) { return getValueList((ActionSetFieldCol52) col); } else if (col instanceof ActionInsertFactCol52) { return getValueList((ActionInsertFactCol52) col); } return new String[0]; } }
ColumnUtilities extends ColumnUtilitiesBase { public String[] getValueList(final BaseColumn col) { if (col instanceof AttributeCol52) { return getValueList((AttributeCol52) col); } else if (col instanceof ConditionCol52) { return getValueList((ConditionCol52) col); } else if (col instanceof ActionSetFieldCol52) { return getValueList((ActionSetFieldCol52) col); } else if (col instanceof ActionInsertFactCol52) { return getValueList((ActionInsertFactCol52) col); } return new String[0]; } ColumnUtilities(final GuidedDecisionTable52 model,
                           final AsyncPackageDataModelOracle oracle); }
ColumnUtilities extends ColumnUtilitiesBase { public String[] getValueList(final BaseColumn col) { if (col instanceof AttributeCol52) { return getValueList((AttributeCol52) col); } else if (col instanceof ConditionCol52) { return getValueList((ConditionCol52) col); } else if (col instanceof ActionSetFieldCol52) { return getValueList((ActionSetFieldCol52) col); } else if (col instanceof ActionInsertFactCol52) { return getValueList((ActionInsertFactCol52) col); } return new String[0]; } ColumnUtilities(final GuidedDecisionTable52 model,
                           final AsyncPackageDataModelOracle oracle); static void setColumnLabelStyleWhenHidden(final ColumnLabelWidget label,
                                                     final boolean isHidden); static boolean canAcceptOtherwiseValues(final BaseColumn column); String[] getValueList(final BaseColumn col); boolean hasValueList(final AttributeCol52 col); }
ColumnUtilities extends ColumnUtilitiesBase { public String[] getValueList(final BaseColumn col) { if (col instanceof AttributeCol52) { return getValueList((AttributeCol52) col); } else if (col instanceof ConditionCol52) { return getValueList((ConditionCol52) col); } else if (col instanceof ActionSetFieldCol52) { return getValueList((ActionSetFieldCol52) col); } else if (col instanceof ActionInsertFactCol52) { return getValueList((ActionInsertFactCol52) col); } return new String[0]; } ColumnUtilities(final GuidedDecisionTable52 model,
                           final AsyncPackageDataModelOracle oracle); static void setColumnLabelStyleWhenHidden(final ColumnLabelWidget label,
                                                     final boolean isHidden); static boolean canAcceptOtherwiseValues(final BaseColumn column); String[] getValueList(final BaseColumn col); boolean hasValueList(final AttributeCol52 col);  }