public class MultiStrategyFieldMapping<T> extends Object
| Constructor and Description |
|---|
MultiStrategyFieldMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStrategy(PropertyDescriptor propertyDescriptor,
T validation)
Adds a strategy for the property
|
List<T> |
getStrategies(PropertyDescriptor propertyDescriptor)
Gets the strategies defined for the provided propertyDescriptor in the current model
|
boolean |
hasStrategy(PropertyDescriptor propertyDescriptor)
Checks if there are any strategies registered for provided propertyDescriptor in the current model
|
public void addStrategy(PropertyDescriptor propertyDescriptor, T validation)
propertyDescriptor - property to add to the mappingvalidation - strategy used for this propertypublic List<T> getStrategies(PropertyDescriptor propertyDescriptor)
propertyDescriptor - propertypublic boolean hasStrategy(PropertyDescriptor propertyDescriptor)
propertyDescriptor - propertyCopyright © 2021. All rights reserved.