|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<JsonAutoDetect.Visibility>
com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility
public static enum JsonAutoDetect.Visibility
Enumeration for possible visibility thresholds (minimum visibility) that can be used to limit which methods (and fields) are auto-detected.
| Enum Constant Summary | |
|---|---|
ANY
Value that means that all kinds of access modifiers are acceptable, from private to public. |
|
DEFAULT
Value that indicates that default visibility level (whatever it is, depends on context) is to be used. |
|
NON_PRIVATE
Value that means that any other access modifier other than 'private' is considered auto-detectable. |
|
NONE
Value that indicates that no access modifiers are auto-detectable: this can be used to explicitly disable auto-detection for specified types. |
|
PROTECTED_AND_PUBLIC
Value that means access modifiers 'protected' and 'public' are auto-detectable (and 'private' and "package access" == no modifiers are not) |
|
PUBLIC_ONLY
Value to indicate that only 'public' access modifier is considered auto-detectable. |
|
| Method Summary | |
|---|---|
boolean |
isVisible(Member m)
|
static JsonAutoDetect.Visibility |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JsonAutoDetect.Visibility[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final JsonAutoDetect.Visibility ANY
public static final JsonAutoDetect.Visibility NON_PRIVATE
public static final JsonAutoDetect.Visibility PROTECTED_AND_PUBLIC
public static final JsonAutoDetect.Visibility PUBLIC_ONLY
public static final JsonAutoDetect.Visibility NONE
public static final JsonAutoDetect.Visibility DEFAULT
| Method Detail |
|---|
public static JsonAutoDetect.Visibility[] values()
for (JsonAutoDetect.Visibility c : JsonAutoDetect.Visibility.values()) System.out.println(c);
public static JsonAutoDetect.Visibility valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isVisible(Member m)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||