Class PermutationAssignerFactory
Object
PermutationAssignerFactory
Creates instances of
PermutationAssigner.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic PermutationAssignercombine(List<PermutationAssigner> assigners) Combines multiple existing assigners into a singlePermutationAssigners.static PermutationAssignercreateForSingle(AnchorBean<?> bean, String propertyPath) Creates an assigner for one or more properties, as identified bypropertyPath.
-
Method Details
-
createForSingle
public static PermutationAssigner createForSingle(AnchorBean<?> bean, String propertyPath) throws AssignPermutationException Creates an assigner for one or more properties, as identified bypropertyPath.- Parameters:
bean- the bean to whom a permuted value will be assignedpropertyPath- describes which property to change, either a simple property namename1or a nested chainchild1.child2.name1.- Returns:
- an assigner for the permutation.
- Throws:
AssignPermutationException- if a matching field cannot be found.
-
combine
Combines multiple existing assigners into a singlePermutationAssigners.- Parameters:
assigners- the assigners to combine- Returns:
- a new assigners that will assign to each entry in
assignersthrough a unitary interface.
-