public abstract class

PropertySuppressionStrategy

extends Object
java.lang.Object
   ↳ org.apache.commons.betwixt.strategy.PropertySuppressionStrategy
Known Direct Subclasses

Class Overview

Pluggable strategy specifying whether property's should be suppressed. Implementations can be used to give rules about which properties should be ignored by Betwixt when introspecting.

Summary

Nested Classes
class PropertySuppressionStrategy.Chain Implementation delegates to a list of strategies  
class PropertySuppressionStrategy.Default Default implementation. 
Fields
public static final PropertySuppressionStrategy DEFAULT Default implementation suppresses the class property found on every object.
Public Constructors
PropertySuppressionStrategy()
Public Methods
abstract boolean suppressProperty(Class classContainingTheProperty, Class propertyType, String propertyName)
Should the given property be suppressed?
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final PropertySuppressionStrategy DEFAULT

Default implementation suppresses the class property found on every object. Also, the isEmpty property is supressed for implementations of Collection.

Public Constructors

public PropertySuppressionStrategy ()

Public Methods

public abstract boolean suppressProperty (Class classContainingTheProperty, Class propertyType, String propertyName)

Should the given property be suppressed?

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