org.apache.commons.betwixt.strategy
Class PropertySuppressionStrategy.Chain
java.lang.Object
org.apache.commons.betwixt.strategy.PropertySuppressionStrategy
org.apache.commons.betwixt.strategy.PropertySuppressionStrategy.Chain
- Enclosing class:
- PropertySuppressionStrategy
public static class PropertySuppressionStrategy.Chain
- extends PropertySuppressionStrategy
Implementation delegates to a list of strategies
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
strategies
private final java.util.List strategies
PropertySuppressionStrategy.Chain
public PropertySuppressionStrategy.Chain()
suppressProperty
public boolean suppressProperty(java.lang.Class classContainingTheProperty,
java.lang.Class propertyType,
java.lang.String propertyName)
- Description copied from class:
PropertySuppressionStrategy
- Should the given property be suppressed?
- Specified by:
suppressProperty
in class PropertySuppressionStrategy
- Parameters:
classContainingTheProperty
- Class
giving the type of the bean containing the property propertyName
propertyType
- Class
giving the type of the property, not nullpropertyName
- the name of the property, not null
- Returns:
- true when the given property should be suppressed
- See Also:
suppressProperty(Class, Class, String)
addStrategy
public void addStrategy(PropertySuppressionStrategy strategy)
- Adds a strategy to the list
- Parameters:
strategy
- PropertySuppressionStrategy
, not null