Package com.fasterxml.jackson.annotation
Class JsonTypeInfo.Value
- java.lang.Object
-
- com.fasterxml.jackson.annotation.JsonTypeInfo.Value
-
- All Implemented Interfaces:
JacksonAnnotationValue<JsonTypeInfo>,java.io.Serializable
- Enclosing class:
- JsonTypeInfo
public static class JsonTypeInfo.Value extends java.lang.Object implements JacksonAnnotationValue<JsonTypeInfo>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonTypeInfo.Valueconstruct(JsonTypeInfo.Id idType, JsonTypeInfo.As inclusionType, java.lang.String propertyName, java.lang.Class<?> defaultImpl, boolean idVisible, java.lang.Boolean requireTypeIdForSubtypes)booleanequals(java.lang.Object o)static JsonTypeInfo.Valuefrom(JsonTypeInfo src)java.lang.Class<?>getDefaultImpl()JsonTypeInfo.IdgetIdType()booleangetIdVisible()JsonTypeInfo.AsgetInclusionType()java.lang.StringgetPropertyName()java.lang.BooleangetRequireTypeIdForSubtypes()inthashCode()static booleanisEnabled(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.StringtoString()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.ValuewithDefaultImpl(java.lang.Class<?> impl)JsonTypeInfo.ValuewithIdType(JsonTypeInfo.Id idType)JsonTypeInfo.ValuewithIdVisible(boolean visible)JsonTypeInfo.ValuewithInclusionType(JsonTypeInfo.As inclusionType)JsonTypeInfo.ValuewithPropertyName(java.lang.String propName)JsonTypeInfo.ValuewithRequireTypeIdForSubtypes(java.lang.Boolean requireTypeIdForSubtypes)
-
-
-
Method Detail
-
construct
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)
-
from
public static JsonTypeInfo.Value from(JsonTypeInfo src)
-
withDefaultImpl
public JsonTypeInfo.Value withDefaultImpl(java.lang.Class<?> impl)
-
withIdType
public JsonTypeInfo.Value withIdType(JsonTypeInfo.Id idType)
-
withInclusionType
public JsonTypeInfo.Value withInclusionType(JsonTypeInfo.As inclusionType)
-
withPropertyName
public JsonTypeInfo.Value withPropertyName(java.lang.String propName)
-
withIdVisible
public JsonTypeInfo.Value withIdVisible(boolean visible)
-
withRequireTypeIdForSubtypes
public JsonTypeInfo.Value withRequireTypeIdForSubtypes(java.lang.Boolean requireTypeIdForSubtypes)
-
valueFor
public java.lang.Class<JsonTypeInfo> 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
public java.lang.Class<?> getDefaultImpl()
-
getIdType
public JsonTypeInfo.Id getIdType()
-
getInclusionType
public JsonTypeInfo.As getInclusionType()
-
getPropertyName
public java.lang.String getPropertyName()
-
getIdVisible
public boolean getIdVisible()
-
getRequireTypeIdForSubtypes
public java.lang.Boolean getRequireTypeIdForSubtypes()
-
isEnabled
public 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-