public abstract class TypeSerializerBase extends TypeSerializer
Modifier and Type | Field and Description |
---|---|
protected TypeIdResolver |
_idResolver |
protected BeanProperty |
_property |
Modifier | Constructor and Description |
---|---|
protected |
TypeSerializerBase(TypeIdResolver idRes,
BeanProperty property) |
Modifier and Type | Method and Description |
---|---|
String |
getPropertyName()
Name of property that contains type information, if
property-based inclusion is used.
|
TypeIdResolver |
getTypeIdResolver()
Accessor for object that handles conversions between
types and matching type ids.
|
abstract JsonTypeInfo.As |
getTypeInclusion()
Accessor for type information inclusion method
that serializer uses; indicates how type information
is embedded in resulting JSON.
|
protected void |
handleMissingId(Object value) |
protected String |
idFromValue(Object value) |
protected String |
idFromValueAndType(Object value,
Class<?> type) |
forProperty, writeCustomTypePrefixForArray, writeCustomTypePrefixForObject, writeCustomTypePrefixForScalar, writeCustomTypeSuffixForArray, writeCustomTypeSuffixForObject, writeCustomTypeSuffixForScalar, writeTypePrefixForArray, writeTypePrefixForArray, writeTypePrefixForObject, writeTypePrefixForObject, writeTypePrefixForScalar, writeTypePrefixForScalar, writeTypeSuffixForArray, writeTypeSuffixForObject, writeTypeSuffixForScalar
protected final TypeIdResolver _idResolver
protected final BeanProperty _property
protected TypeSerializerBase(TypeIdResolver idRes, BeanProperty property)
public abstract JsonTypeInfo.As getTypeInclusion()
TypeSerializer
getTypeInclusion
in class TypeSerializer
public String getPropertyName()
TypeSerializer
getPropertyName
in class TypeSerializer
public TypeIdResolver getTypeIdResolver()
TypeSerializer
getTypeIdResolver
in class TypeSerializer
protected void handleMissingId(Object value)
Copyright © 2017 JBoss by Red Hat. All rights reserved.