Class PermutationAssignerFactory

Object
PermutationAssignerFactory

public class PermutationAssignerFactory extends Object
Creates instances of PermutationAssigner.
Author:
Owen Feehan
  • Method Details

    • createForSingle

      public static PermutationAssigner createForSingle(AnchorBean<?> bean, String propertyPath) throws AssignPermutationException
      Creates an assigner for one or more properties, as identified by propertyPath.
      Parameters:
      bean - the bean to whom a permuted value will be assigned
      propertyPath - describes which property to change, either a simple property name name1 or a nested chain child1.child2.name1.
      Returns:
      an assigner for the permutation.
      Throws:
      AssignPermutationException - if a matching field cannot be found.
    • combine

      public static PermutationAssigner combine(List<PermutationAssigner> assigners)
      Combines multiple existing assigners into a single PermutationAssigners.
      Parameters:
      assigners - the assigners to combine
      Returns:
      a new assigners that will assign to each entry in assigners through a unitary interface.