public StdTypeResolverBuilder init(JsonTypeInfo.Id paramId, TypeIdResolver paramTypeIdResolver) { if (paramId == null) throw new IllegalArgumentException("idType can not be null"); this._idType = paramId; this._customIdResolver = paramTypeIdResolver; this._typeProperty = paramId.getDefaultPropertyName(); return this; }
@JsonTypeInfo(use=Id.CLASS, defaultImpl=Object.class) public T getPayload() { return payload; }
@JsonTypeInfo(use = Id.CLASS, defaultImpl = Object.class) public T getPayload() { return payload; }
public JsonTypeInfo.Id getMechanism() { return JsonTypeInfo.Id.NAME; }
public JsonTypeInfo.Id getMechanism() { return JsonTypeInfo.Id.CLASS; }
public JsonTypeInfo.Id getMechanism() { return JsonTypeInfo.Id.MINIMAL_CLASS; }
public ObjectMapper enableDefaultTyping(DefaultTyping paramDefaultTyping, JsonTypeInfo.As paramAs) { return setDefaultTyping(new DefaultTypeResolverBuilder(paramDefaultTyping).init(JsonTypeInfo.Id.CLASS, null).inclusion(paramAs)); }
public ObjectMapper enableDefaultTypingAsProperty(DefaultTyping paramDefaultTyping, String paramString) { return setDefaultTyping(new DefaultTypeResolverBuilder(paramDefaultTyping).init(JsonTypeInfo.Id.CLASS, null).inclusion(JsonTypeInfo.As.PROPERTY).typeProperty(paramString)); }
public abstract JsonTypeInfo.Id getMechanism();
public abstract T init(JsonTypeInfo.Id paramId, TypeIdResolver paramTypeIdResolver);