public static class JsonTypeInfo.Value extends Object implements JacksonAnnotationValue<JsonTypeInfo>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
_defaultImpl |
protected JsonTypeInfo.Id |
_idType |
protected boolean |
_idVisible |
protected JsonTypeInfo.As |
_inclusionType |
protected String |
_propertyName |
protected Boolean |
_requireTypeIdForSubtypes |
protected Boolean |
_writeTypeIdForDefaultImpl |
protected static JsonTypeInfo.Value |
EMPTY |
| Modifier | Constructor and Description |
|---|---|
protected |
Value(JsonTypeInfo.Id idType,
JsonTypeInfo.As inclusionType,
String propertyName,
Class<?> defaultImpl,
boolean idVisible,
Boolean requireTypeIdForSubtypes)
Deprecated.
Since 2.22 use the 7-argument overload
|
protected |
Value(JsonTypeInfo.Id idType,
JsonTypeInfo.As inclusionType,
String propertyName,
Class<?> defaultImpl,
boolean idVisible,
Boolean requireTypeIdForSubtypes,
Boolean writeTypeIdForDefaultImpl) |
| Modifier and Type | Method and Description |
|---|---|
static JsonTypeInfo.Value |
construct(JsonTypeInfo.Id idType,
JsonTypeInfo.As inclusionType,
String propertyName,
Class<?> defaultImpl,
boolean idVisible,
Boolean requireTypeIdForSubtypes)
Deprecated.
Since 2.22 use the 7-argument overload
|
static JsonTypeInfo.Value |
construct(JsonTypeInfo.Id idType,
JsonTypeInfo.As inclusionType,
String propertyName,
Class<?> defaultImpl,
boolean idVisible,
Boolean requireTypeIdForSubtypes,
Boolean writeTypeIdForDefaultImpl) |
boolean |
equals(Object o) |
static JsonTypeInfo.Value |
from(JsonTypeInfo src) |
Class<?> |
getDefaultImpl() |
JsonTypeInfo.Id |
getIdType() |
boolean |
getIdVisible() |
JsonTypeInfo.As |
getInclusionType() |
String |
getPropertyName() |
Boolean |
getRequireTypeIdForSubtypes() |
Boolean |
getWriteTypeIdForDefaultImpl() |
int |
hashCode() |
static boolean |
isEnabled(JsonTypeInfo.Value v)
Static helper method for simple(r) checking of whether there's a Value instance
that indicates that polymorphic handling is (to be) enabled.
|
boolean |
shouldWriteTypeIdForDefaultImpl() |
String |
toString() |
Class<JsonTypeInfo> |
valueFor()
Introspection method that may be used to find actual annotation that may be used
as the source for value instance.
|
JsonTypeInfo.Value |
withDefaultImpl(Class<?> impl) |
JsonTypeInfo.Value |
withIdType(JsonTypeInfo.Id idType) |
JsonTypeInfo.Value |
withIdVisible(boolean visible) |
JsonTypeInfo.Value |
withInclusionType(JsonTypeInfo.As inclusionType) |
JsonTypeInfo.Value |
withPropertyName(String propName) |
JsonTypeInfo.Value |
withRequireTypeIdForSubtypes(Boolean requireTypeIdForSubtypes) |
JsonTypeInfo.Value |
withWriteTypeIdForDefaultImpl(Boolean writeTypeIdForDefaultImpl) |
protected static final JsonTypeInfo.Value EMPTY
protected final JsonTypeInfo.Id _idType
protected final JsonTypeInfo.As _inclusionType
protected final String _propertyName
protected final Class<?> _defaultImpl
protected final boolean _idVisible
protected final Boolean _requireTypeIdForSubtypes
protected final Boolean _writeTypeIdForDefaultImpl
protected Value(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes, Boolean writeTypeIdForDefaultImpl)
@Deprecated protected Value(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes)
public static JsonTypeInfo.Value construct(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes, Boolean writeTypeIdForDefaultImpl)
@Deprecated public static JsonTypeInfo.Value construct(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, String propertyName, Class<?> defaultImpl, boolean idVisible, Boolean requireTypeIdForSubtypes)
public static JsonTypeInfo.Value from(JsonTypeInfo src)
public JsonTypeInfo.Value withDefaultImpl(Class<?> impl)
public JsonTypeInfo.Value withIdType(JsonTypeInfo.Id idType)
public JsonTypeInfo.Value withInclusionType(JsonTypeInfo.As inclusionType)
public JsonTypeInfo.Value withPropertyName(String propName)
public JsonTypeInfo.Value withIdVisible(boolean visible)
public JsonTypeInfo.Value withRequireTypeIdForSubtypes(Boolean requireTypeIdForSubtypes)
public JsonTypeInfo.Value withWriteTypeIdForDefaultImpl(Boolean writeTypeIdForDefaultImpl)
public Class<JsonTypeInfo> valueFor()
JacksonAnnotationValuevalueFor in interface JacksonAnnotationValue<JsonTypeInfo>public Class<?> getDefaultImpl()
public JsonTypeInfo.Id getIdType()
public JsonTypeInfo.As getInclusionType()
public String getPropertyName()
public boolean getIdVisible()
public Boolean getRequireTypeIdForSubtypes()
public Boolean getWriteTypeIdForDefaultImpl()
public boolean shouldWriteTypeIdForDefaultImpl()
public static boolean isEnabled(JsonTypeInfo.Value v)
Copyright © 2008–2026 FasterXML. All rights reserved.