public class ExternalTypeHandler extends Object
JsonTypeInfo.As.EXTERNAL_PROPERTY
).
This is needed to store temporary state and buffer tokens, as the structure is
rearranged a bit so that actual type deserializer can resolve type and
finalize deserialization.Modifier and Type | Class and Description |
---|---|
static class |
ExternalTypeHandler.Builder |
Modifier | Constructor and Description |
---|---|
protected |
ExternalTypeHandler(org.codehaus.jackson.map.deser.impl.ExternalTypeHandler.ExtTypedProperty[] properties,
HashMap<String,Integer> nameToPropertyIndex,
String[] typeIds,
TokenBuffer[] tokens) |
protected |
ExternalTypeHandler(ExternalTypeHandler h) |
Modifier and Type | Method and Description |
---|---|
protected void |
_deserialize(JsonParser jp,
DeserializationContext ctxt,
Object bean,
int index) |
Object |
complete(JsonParser jp,
DeserializationContext ctxt,
Object bean) |
boolean |
handleToken(JsonParser jp,
DeserializationContext ctxt,
String propName,
Object bean)
Method called to ask handler to handle
|
ExternalTypeHandler |
start() |
protected ExternalTypeHandler(org.codehaus.jackson.map.deser.impl.ExternalTypeHandler.ExtTypedProperty[] properties, HashMap<String,Integer> nameToPropertyIndex, String[] typeIds, TokenBuffer[] tokens)
protected ExternalTypeHandler(ExternalTypeHandler h)
public ExternalTypeHandler start()
public boolean handleToken(JsonParser jp, DeserializationContext ctxt, String propName, Object bean) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public Object complete(JsonParser jp, DeserializationContext ctxt, Object bean) throws IOException, JsonProcessingException
IOException
JsonProcessingException
protected final void _deserialize(JsonParser jp, DeserializationContext ctxt, Object bean, int index) throws IOException, JsonProcessingException
IOException
JsonProcessingException