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.Idprotected final booleanprotected final JsonTypeInfo.Asprotected final Stringprotected final Booleanprotected static final JsonTypeInfo.Value -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValue(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes) -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonTypeInfo.Valueconstruct(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes) booleanstatic JsonTypeInfo.Valuefrom(JsonTypeInfo src) Class<?>booleaninthashCode()static booleanStatic 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
-
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:JacksonAnnotationValueIntrospection method that may be used to find actual annotation that may be used as the source for value instance.- Specified by:
valueForin 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
-