org.apache.commons.betwixt.strategy
Class PropertySuppressionStrategy.Chain

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.PropertySuppressionStrategy
      extended by org.apache.commons.betwixt.strategy.PropertySuppressionStrategy.Chain
Enclosing class:
PropertySuppressionStrategy

public static class PropertySuppressionStrategy.Chain
extends PropertySuppressionStrategy

Implementation delegates to a list of strategies


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.betwixt.strategy.PropertySuppressionStrategy
PropertySuppressionStrategy.Chain, PropertySuppressionStrategy.Default
 
Field Summary
 
Fields inherited from class org.apache.commons.betwixt.strategy.PropertySuppressionStrategy
DEFAULT
 
Constructor Summary
PropertySuppressionStrategy.Chain()
           
 
Method Summary
 void addStrategy(PropertySuppressionStrategy strategy)
          Adds a strategy to the list
 boolean suppressProperty(java.lang.Class classContainingTheProperty, java.lang.Class propertyType, java.lang.String propertyName)
          Should the given property be suppressed?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySuppressionStrategy.Chain

public PropertySuppressionStrategy.Chain()
Method Detail

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 null
propertyName - 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


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.