Package com.fasterxml.jackson.annotation
Class JsonTypeInfo.Value
java.lang.Object
com.fasterxml.jackson.annotation.JsonTypeInfo.Value
- All Implemented Interfaces:
JacksonAnnotationValue<JsonTypeInfo>
,Serializable
- Enclosing class:
JsonTypeInfo
public static class JsonTypeInfo.Value
extends Object
implements JacksonAnnotationValue<JsonTypeInfo>, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Class
<?> protected final JsonTypeInfo.Id
protected final boolean
protected final JsonTypeInfo.As
protected final String
protected final Boolean
protected static final JsonTypeInfo.Value
private static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Value
(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> boolean
_equal
(T value1, T value2) private static boolean
static JsonTypeInfo.Value
construct
(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes) boolean
static JsonTypeInfo.Value
from
(JsonTypeInfo src) Class
<?> boolean
int
hashCode()
static boolean
Static helper method for simple(r) checking of whether there's a Value instance that indicates that polymorphic handling is (to be) enabled.toString()
valueFor()
Introspection method that may be used to find actual annotation that may be used as the source for value instance.withDefaultImpl
(Class<?> impl) withIdType
(JsonTypeInfo.Id idType) withIdVisible
(boolean visible) withInclusionType
(JsonTypeInfo.As inclusionType) withPropertyName
(String propName) withRequireTypeIdForSubtypes
(Boolean requireTypeIdForSubtypes)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
EMPTY
-
_idType
-
_inclusionType
-
_propertyName
-
_defaultImpl
-
_idVisible
protected final boolean _idVisible -
_requireTypeIdForSubtypes
-
-
Constructor Details
-
Value
protected Value(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes)
-
-
Method Details
-
construct
public static JsonTypeInfo.Value construct(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes) -
from
-
withDefaultImpl
-
withIdType
-
withInclusionType
-
withPropertyName
-
withIdVisible
-
withRequireTypeIdForSubtypes
-
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<JsonTypeInfo>
- Returns:
- Annotation class for which instances of this value class are created
-
getDefaultImpl
-
getIdType
-
getInclusionType
-
getPropertyName
-
getIdVisible
public boolean getIdVisible() -
getRequireTypeIdForSubtypes
-
isEnabled
Static helper method for simple(r) checking of whether there's a Value instance that indicates that polymorphic handling is (to be) enabled. -
toString
-
hashCode
public int hashCode() -
equals
-
_equals
-
_equal
private static <T> boolean _equal(T value1, T value2)
-