Package com.fasterxml.jackson.annotation
Class JsonAutoDetect.Value
- java.lang.Object
-
- com.fasterxml.jackson.annotation.JsonAutoDetect.Value
-
- All Implemented Interfaces:
JacksonAnnotationValue<JsonAutoDetect>
,java.io.Serializable
- Enclosing class:
- JsonAutoDetect
public static class JsonAutoDetect.Value extends java.lang.Object implements JacksonAnnotationValue<JsonAutoDetect>, java.io.Serializable
Helper class used to contain information from a singleJsonIgnoreProperties
annotation, as well as to provide possible overrides from non-annotation sources.- Since:
- 2.9
- See Also:
- Serialized Form
-
-
Method Summary
-
-
-
Method Detail
-
defaultVisibility
public static JsonAutoDetect.Value defaultVisibility()
-
noOverrides
public static JsonAutoDetect.Value noOverrides()
-
from
public static JsonAutoDetect.Value from(JsonAutoDetect src)
-
construct
public static JsonAutoDetect.Value construct(PropertyAccessor acc, JsonAutoDetect.Visibility visibility)
Factory method for cnstructing instance with visibility of specified accessor (or, in case ofALL
, all of them) set as specified; and the rest (if any) set asJsonAutoDetect.Visibility.DEFAULT
).
-
construct
public static JsonAutoDetect.Value construct(JsonAutoDetect.Visibility fields, JsonAutoDetect.Visibility getters, JsonAutoDetect.Visibility isGetters, JsonAutoDetect.Visibility setters, JsonAutoDetect.Visibility creators)
-
withFieldVisibility
public JsonAutoDetect.Value withFieldVisibility(JsonAutoDetect.Visibility v)
-
withGetterVisibility
public JsonAutoDetect.Value withGetterVisibility(JsonAutoDetect.Visibility v)
-
withIsGetterVisibility
public JsonAutoDetect.Value withIsGetterVisibility(JsonAutoDetect.Visibility v)
-
withSetterVisibility
public JsonAutoDetect.Value withSetterVisibility(JsonAutoDetect.Visibility v)
-
withCreatorVisibility
public JsonAutoDetect.Value withCreatorVisibility(JsonAutoDetect.Visibility v)
-
merge
public static JsonAutoDetect.Value merge(JsonAutoDetect.Value base, JsonAutoDetect.Value overrides)
-
withOverrides
public JsonAutoDetect.Value withOverrides(JsonAutoDetect.Value overrides)
-
valueFor
public java.lang.Class<JsonAutoDetect> valueFor()
Description copied from interface:JacksonAnnotationValue
Introspection method that may be used to find actual annotation that may be used as the source for value instance.- Specified by:
valueFor
in interfaceJacksonAnnotationValue<JsonAutoDetect>
- Returns:
- Annotation class for which instances of this value class are created
-
getFieldVisibility
public JsonAutoDetect.Visibility getFieldVisibility()
-
getGetterVisibility
public JsonAutoDetect.Visibility getGetterVisibility()
-
getIsGetterVisibility
public JsonAutoDetect.Visibility getIsGetterVisibility()
-
getSetterVisibility
public JsonAutoDetect.Visibility getSetterVisibility()
-
getCreatorVisibility
public JsonAutoDetect.Visibility getCreatorVisibility()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-