public class IgnoreField extends Object implements FieldFilter
| Constructor and Description |
|---|
IgnoreField(Class<?> clazz,
String fieldName)
Initialize an instance that ignores the a field with given
fieldName, which is declared on the
given
clazz. |
IgnoreField(Field field)
Initialize an instance that ignores the given
field |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Field field)
Indicates whether the given
field should be accepted for processing, or skipped/ignored. |
public IgnoreField(Field field)
fieldfield - The field to ignorepublic IgnoreField(Class<?> clazz, String fieldName)
fieldName, which is declared on the
given
clazz.clazz - The type that declares the fieldfieldName - The name of the fieldFixtureExecutionException - when the given fieldName is not declared on given clazz.public boolean accept(Field field)
FieldFilterfield should be accepted for processing, or skipped/ignored.accept in interface FieldFilterfield - The field to evaluatetrue when the field should be processed, otherwise falseCopyright © 2010–2018. All rights reserved.