Package com.fasterxml.jackson.annotation
Enum Class JsonAutoDetect.Visibility
java.lang.Object
java.lang.Enum<JsonAutoDetect.Visibility>
com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility
- All Implemented Interfaces:
Serializable
,Comparable<JsonAutoDetect.Visibility>
,Constable
- Enclosing class:
- JsonAutoDetect
Enumeration for possible visibility thresholds (minimum visibility)
that can be used to limit which methods (and fields) are
auto-detected.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue that means that all kinds of access modifiers are acceptable, from private to public.Value that indicates that default visibility level (whatever it is, depends on context) is to be used.Value that means that any other access modifier other than 'private' is considered auto-detectable.Value that indicates that no access modifiers are auto-detectable: this can be used to explicitly disable auto-detection for specified types.Value that means access modifiers 'protected' and 'public' are auto-detectable (and 'private' and "package access" == no modifiers are not)Value to indicate that only 'public' access modifier is considered auto-detectable. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static JsonAutoDetect.Visibility
Returns the enum constant of this class with the specified name.static JsonAutoDetect.Visibility[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
Value that means that all kinds of access modifiers are acceptable, from private to public. -
NON_PRIVATE
Value that means that any other access modifier other than 'private' is considered auto-detectable. -
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. -
NONE
Value that indicates that no access modifiers are auto-detectable: this can be used to explicitly disable auto-detection for specified types. -
DEFAULT
Value that indicates that default visibility level (whatever it is, depends on context) is to be used. This usually means that inherited value (from parent visibility settings) is to be used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isVisible
-