T
- element-type of the bean whose property or properties will be changed during
permutation.public abstract class PermuteProperty<T> extends AnchorBean<PermuteProperty<T>>
AnchorBean
to one of a range of possible values.
A property can be a direct property of the bean, or one or more indirect properties found in nested child-beans.
Constructor and Description |
---|
PermuteProperty() |
Modifier and Type | Method and Description |
---|---|
PermutationAssigner |
createSetter(AnchorBean<?> bean)
Creates a
PermutationAssigner which allows the particular property to be changed. |
abstract String |
describePropertyValue(T value)
Describes a particular property-value in a unique but human-readable way.
|
StringSet |
getAdditionalPropertyPaths()
Additional property paths that are also changed, together with
propertyPath . |
String |
getPropertyPath()
Either a direct property of a bean or a nested-property with the children separated by
full-stops.
|
abstract Iterator<T> |
propertyValues()
An iterator with possible alternative values for the property.
|
void |
setAdditionalPropertyPaths(StringSet additionalPropertyPaths)
Additional property paths that are also changed, together with
propertyPath . |
void |
setPropertyPath(String propertyPath)
Either a direct property of a bean or a nested-property with the children separated by
full-stops.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public abstract String describePropertyValue(T value)
value
- the value to describe, which should one of the values returned by propertyValues()
.value
.public PermutationAssigner createSetter(AnchorBean<?> bean) throws AssignPermutationException
PermutationAssigner
which allows the particular property to be changed.bean
- the bean whose property will be changed.AssignPermutationException
- if no property can be found at propertyPath
to
change.public abstract Iterator<T> propertyValues()
public String getPropertyPath()
e.g. a direct property someproperty
or a nested-property e.g. somechild1.somechild2.someproperty
A child bean used in this way must be of single multiplicity, and always be a subclass of
AnchorBean
.
public void setPropertyPath(String propertyPath)
e.g. a direct property someproperty
or a nested-property e.g. somechild1.somechild2.someproperty
A child bean used in this way must be of single multiplicity, and always be a subclass of
AnchorBean
.
public StringSet getAdditionalPropertyPaths()
propertyPath
.public void setAdditionalPropertyPaths(StringSet additionalPropertyPaths)
propertyPath
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.