Default setting for all accessors is Visibility#DEFAULT, which
in turn means that the global defaults are used. Defaults
are different for different accessor types (getters need to be public;
setters can have any access modifier, for example).
If you assign different Visibility type then it will override
global defaults: for example, to require that all setters must be public,
you would use:
@JsonAutoDetect(setterVisibility=Visibility.PUBLIC_ONLY)
| Modifier and Type | Class and Description |
|---|---|
| public static class | JsonAutoDetect.
Helper class used to contain information from a single |
| public static enum | JsonAutoDetect.
Enumeration for possible visibility thresholds (minimum visibility) that can be used to limit which methods (and fields) are auto-detected. |
| Modifier and Type | Method and Description |
|---|---|
| public JsonAutoDetect. | creatorVisibility()
Minimum visibility required for auto-detecting Creator methods, except for no-argument constructors (which are always detected no matter what). |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. |
| creatorVisibility | back to summary |
|---|---|
| public JsonAutoDetect. Minimum visibility required for auto-detecting Creator methods, except for no-argument constructors (which are always detected no matter what). | |
| fieldVisibility | back to summary |
|---|---|
| public JsonAutoDetect. Minimum visibility required for auto-detecting member fields. | |
| getterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. Minimum visibility required for auto-detecting regular getter methods. | |
| isGetterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. Minimum visibility required for auto-detecting is-getter methods. | |
| setterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. Minimum visibility required for auto-detecting setter methods. | |
JsonIgnoreProperties
annotation, as well as to provide possible overrides from non-annotation sources.
| Modifier and Type | Field and Description |
|---|---|
| protected final JsonAutoDetect. | |
| protected final JsonAutoDetect. | |
| protected final JsonAutoDetect. | |
| protected final JsonAutoDetect. | |
| protected final JsonAutoDetect. | |
| protected static final JsonAutoDetect. | DEFAULT
Default instance with baseline visibility checking:
|
| private static final JsonAutoDetect. | |
| protected static final JsonAutoDetect. | NO_OVERRIDES
Empty instance that specifies no overrides, that is, all visibility
levels set as |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | Value(JsonAutoDetect.
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static JsonAutoDetect. | _predefined(JsonAutoDetect.
|
| public static JsonAutoDetect. | construct(PropertyAccessor acc, JsonAutoDetect.
Factory method for constructing instance with visibility of specified accessor
(or, in case of |
| public static JsonAutoDetect. | construct(JsonAutoDetect.
|
| public static JsonAutoDetect. | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public int | |
| public static JsonAutoDetect. | |
| public static JsonAutoDetect. | |
| protected Object | |
| public String | |
| public Class | valueFor()
Implements com. Introspection method that may be used to find actual annotation that may be used as the source for value instance. |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. | |
| public JsonAutoDetect. |
| _creatorVisibility | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| _fieldVisibility | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| _getterVisibility | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| _isGetterVisibility | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| _setterVisibility | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| DEFAULT | back to summary |
|---|---|
| protected static final JsonAutoDetect. Default instance with baseline visibility checking:
| |
| DEFAULT_FIELD_VISIBILITY | back to summary |
|---|---|
| private static final JsonAutoDetect. | |
| NO_OVERRIDES | back to summary |
|---|---|
| protected static final JsonAutoDetect. Empty instance that specifies no overrides, that is, all visibility
levels set as | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Value | back to summary |
|---|---|
| private Value(JsonAutoDetect. | |
| _equals | back to summary |
|---|---|
| private static boolean _equals(JsonAutoDetect. | |
| _predefined | back to summary |
|---|---|
| private static JsonAutoDetect. | |
| construct | back to summary |
|---|---|
| public static JsonAutoDetect. Factory method for constructing instance with visibility of specified accessor
(or, in case of | |
| construct | back to summary |
|---|---|
| public static JsonAutoDetect. | |
| defaultVisibility | back to summary |
|---|---|
| public static JsonAutoDetect. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| from | back to summary |
|---|---|
| public static JsonAutoDetect. | |
| getCreatorVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| getFieldVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| getGetterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| getIsGetterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| getSetterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| merge | back to summary |
|---|---|
| public static JsonAutoDetect. | |
| noOverrides | back to summary |
|---|---|
| public static JsonAutoDetect. | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| valueFor | back to summary |
|---|---|
| public Class Implements com. Doc from com. Introspection method that may be used to find actual annotation that may be used as the source for value instance.
| |
| withCreatorVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| withFieldVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| withGetterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| withIsGetterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| withOverrides | back to summary |
|---|---|
| public JsonAutoDetect. | |
| withSetterVisibility | back to summary |
|---|---|
| public JsonAutoDetect. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final JsonAutoDetect. | ANY
Value that means that all kinds of access modifiers are acceptable, from private to public. |
| public static final JsonAutoDetect. | DEFAULT
Value that indicates that default visibility level (whatever it is, depends on context) is to be used. |
| public static final JsonAutoDetect. | NON_PRIVATE
Value that means that any other access modifier other than 'private' is considered auto-detectable. |
| public static final JsonAutoDetect. | NONE
Value that indicates that no access modifiers are auto-detectable: this can be used to explicitly disable auto-detection for specified types. |
| public static final JsonAutoDetect. | PROTECTED_AND_PUBLIC
Value that means access modifiers 'protected' and 'public' are auto-detectable (and 'private' and "package access" == no modifiers are not) |
| public static final JsonAutoDetect. | PUBLIC_ONLY
Value to indicate that only 'public' access modifier is considered auto-detectable. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public static JsonAutoDetect. | |
| public static JsonAutoDetect. |
| ANY | back to summary |
|---|---|
| public static final JsonAutoDetect. Value that means that all kinds of access modifiers are acceptable, from private to public. | |
| DEFAULT | back to summary |
|---|---|
| public static final JsonAutoDetect. 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. | |
| NON_PRIVATE | back to summary |
|---|---|
| public static final JsonAutoDetect. Value that means that any other access modifier other than 'private' is considered auto-detectable. | |
| NONE | back to summary |
|---|---|
| public static final JsonAutoDetect. 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 | back to summary |
|---|---|
| public static final JsonAutoDetect. Value that means access modifiers 'protected' and 'public' are auto-detectable (and 'private' and "package access" == no modifiers are not) | |
| PUBLIC_ONLY | back to summary |
|---|---|
| public static final JsonAutoDetect. Value to indicate that only 'public' access modifier is considered auto-detectable. | |
| Visibility | back to summary |
|---|---|
| private Visibility() | |
| isVisible | back to summary |
|---|---|
| public boolean isVisible(Member m) | |
| valueOf | back to summary |
|---|---|
| public static JsonAutoDetect. | |
| values | back to summary |
|---|---|
| public static JsonAutoDetect. | |