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