@Test void testIsSuitable() { assertTrue( categoryAlgorithmGenerator.isSuitable( targetAttribute, Arrays.asList(sourceAttribute, sourceAttribute1))); }
@Override public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isXrefOrCategorialDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isXrefOrCategorialDataType)) && sourceAttributes.size() > 1; }
OneToManyCategoryAlgorithmGenerator extends AbstractCategoryAlgorithmGenerator { @Override public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isXrefOrCategorialDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isXrefOrCategorialDataType)) && sourceAttributes.size() > 1; } }
OneToManyCategoryAlgorithmGenerator extends AbstractCategoryAlgorithmGenerator { @Override public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isXrefOrCategorialDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isXrefOrCategorialDataType)) && sourceAttributes.size() > 1; } OneToManyCategoryAlgorithmGenerator(DataService dataService); }
OneToManyCategoryAlgorithmGenerator extends AbstractCategoryAlgorithmGenerator { @Override public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isXrefOrCategorialDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isXrefOrCategorialDataType)) && sourceAttributes.size() > 1; } OneToManyCategoryAlgorithmGenerator(DataService dataService); @Override boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes); @Override String generate(
      Attribute targetAttribute,
      List<Attribute> sourceAttributes,
      EntityType targetEntityType,
      EntityType sourceEntityType); String generateWeightedMap(Attribute attribute); String groupCategoryValues(Attribute attribute); }
OneToManyCategoryAlgorithmGenerator extends AbstractCategoryAlgorithmGenerator { @Override public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isXrefOrCategorialDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isXrefOrCategorialDataType)) && sourceAttributes.size() > 1; } OneToManyCategoryAlgorithmGenerator(DataService dataService); @Override boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes); @Override String generate(
      Attribute targetAttribute,
      List<Attribute> sourceAttributes,
      EntityType targetEntityType,
      EntityType sourceEntityType); String generateWeightedMap(Attribute attribute); String groupCategoryValues(Attribute attribute);  }