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. |
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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
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