public static class JsonTypeInfo.Value extends java.lang.Object implements JacksonAnnotationValue<JsonTypeInfo>, java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
static JsonTypeInfo.Value |
construct(JsonTypeInfo.Id idType,
JsonTypeInfo.As inclusionType,
java.lang.String propertyName,
java.lang.Class<?> defaultImpl,
boolean idVisible,
java.lang.Boolean requireTypeIdForSubtypes) |
boolean |
equals(java.lang.Object o) |
static JsonTypeInfo.Value |
from(JsonTypeInfo src) |
java.lang.Class<?> |
getDefaultImpl() |
JsonTypeInfo.Id |
getIdType() |
boolean |
getIdVisible() |
JsonTypeInfo.As |
getInclusionType() |
java.lang.String |
getPropertyName() |
java.lang.Boolean |
getRequireTypeIdForSubtypes() |
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.
|
java.lang.String |
toString() |
java.lang.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(java.lang.Class<?> impl) |
JsonTypeInfo.Value |
withIdType(JsonTypeInfo.Id idType) |
JsonTypeInfo.Value |
withIdVisible(boolean visible) |
JsonTypeInfo.Value |
withInclusionType(JsonTypeInfo.As inclusionType) |
JsonTypeInfo.Value |
withPropertyName(java.lang.String propName) |
JsonTypeInfo.Value |
withRequireTypeIdForSubtypes(java.lang.Boolean requireTypeIdForSubtypes) |
public static JsonTypeInfo.Value construct(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, java.lang.String propertyName, java.lang.Class<?> defaultImpl, boolean idVisible, java.lang.Boolean requireTypeIdForSubtypes)
public static JsonTypeInfo.Value from(JsonTypeInfo src)
public JsonTypeInfo.Value withDefaultImpl(java.lang.Class<?> impl)
public JsonTypeInfo.Value withIdType(JsonTypeInfo.Id idType)
public JsonTypeInfo.Value withInclusionType(JsonTypeInfo.As inclusionType)
public JsonTypeInfo.Value withPropertyName(java.lang.String propName)
public JsonTypeInfo.Value withIdVisible(boolean visible)
public JsonTypeInfo.Value withRequireTypeIdForSubtypes(java.lang.Boolean requireTypeIdForSubtypes)
public java.lang.Class<JsonTypeInfo> valueFor()
JacksonAnnotationValuevalueFor in interface JacksonAnnotationValue<JsonTypeInfo>public java.lang.Class<?> getDefaultImpl()
public JsonTypeInfo.Id getIdType()
public JsonTypeInfo.As getInclusionType()
public java.lang.String getPropertyName()
public boolean getIdVisible()
public java.lang.Boolean getRequireTypeIdForSubtypes()
public static boolean isEnabled(JsonTypeInfo.Value v)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2010 - 2024 Adobe. All Rights Reserved