Skip to content

Commit

Permalink
Add convenience accessors.
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 1, 2016
1 parent 4fb211f commit bc59a9a
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,34 @@ public Set<String> getIgnored() {
return _ignored;
}

/**
* Method called to find names of properties to ignore when used for
* serialization: functionally
* same as {@link #getIgnored} if {@link #getAllowGetters()} is false
* (that is, there is "allowGetters=false" or equivalent),
* otherwise returns empty {@link java.util.Set}.
*/
public Set<String> findIgnoredForSerialization() {
if (_allowGetters) {
return Collections.emptySet();
}
return _ignored;
}

/**
* Method called to find names of properties to ignore when used for
* serialization: functionally
* same as {@link #getIgnored} if {@link #getAllowSetters()} is false
* (that is, there is "allowSetters=false" or equivalent),
* otherwise returns empty {@link java.util.Set}.
*/
public Set<String> findIgnoredForDeserialization() {
if (_allowSetters) {
return Collections.emptySet();
}
return _ignored;
}

public boolean getIgnoreUnknown() {
return _ignoreUnknown;
}
Expand Down

0 comments on commit bc59a9a

Please sign in to comment.