public class

PackageSuppressor

extends PropertySuppressionStrategy
java.lang.Object
   ↳ org.apache.commons.betwixt.strategy.PropertySuppressionStrategy
     ↳ org.apache.commons.betwixt.strategy.impl.propertysuppression.PackageSuppressor

Class Overview

Suppresses properties based on the package of their type. Limited regex is supported. If the package name ends in .* them all child packages will be suppressed.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.betwixt.strategy.PropertySuppressionStrategy
Public Constructors
PackageSuppressor(String suppressedPackage)
Constructs a suppressor for packages.
Public Methods
boolean suppressProperty(Class classContainingTheProperty, Class propertyType, String propertyName)
Should the given property be suppressed?
String toString()
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.strategy.PropertySuppressionStrategy
From class java.lang.Object

Public Constructors

public PackageSuppressor (String suppressedPackage)

Constructs a suppressor for packages.

Parameters
suppressedPackage package name (for exact match) or base package and .*to suppress children

Public Methods

public 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

public String toString ()