Class PermutationAssignerFactory
Object
PermutationAssignerFactory
Creates instances of
PermutationAssigner
.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic PermutationAssigner
combine
(List<PermutationAssigner> assigners) Combines multiple existing assigners into a singlePermutationAssigner
s.static PermutationAssigner
createForSingle
(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 namename1
or 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 singlePermutationAssigner
s.- Parameters:
assigners
- the assigners to combine- Returns:
- a new assigners that will assign to each entry in
assigners
through a unitary interface.
-