A strategy (or policy) definition that is used to decide whether or not a field or class should be serialized or deserialized as part of the JSON output/input. <p>The following are a few examples that shows how you can use this exclusion mechanism. <p><strong>Exclude fields and objects based on a
| 92 | * @since 1.4 |
| 93 | */ |
| 94 | public interface ExclusionStrategy { |
| 95 | |
| 96 | /** |
| 97 | * Decides if a field should be skipped during serialization or deserialization. |
| 98 | * |
| 99 | * @param f the field object that is under test |
| 100 | * @return true if the field should be ignored; otherwise false |
| 101 | */ |
| 102 | boolean shouldSkipField(FieldAttributes f); |
| 103 | |
| 104 | /** |
| 105 | * Decides if a class should be serialized or deserialized |
| 106 | * |
| 107 | * @param clazz the class object that is under test |
| 108 | * @return true if the class should be ignored; otherwise false |
| 109 | */ |
| 110 | boolean shouldSkipClass(Class<?> clazz); |
| 111 | } |
no outgoing calls
no test coverage detected