public abstract class AbstractGraphSONTypeSerializer
extends TypeSerializer
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class,Class> |
classMap |
protected TypeIdResolver |
idRes |
protected String |
propertyName |
protected TypeInfo |
typeInfo |
protected String |
valuePropertyName |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canWriteTypeId() |
TypeSerializer |
forProperty(BeanProperty beanProperty) |
protected abstract Class |
getClassFromObject(Object o)
We force only **one** translation of a Java object to a domain specific object.
|
String |
getPropertyName() |
TypeIdResolver |
getTypeIdResolver() |
JsonTypeInfo.As |
getTypeInclusion() |
protected void |
writeTypePrefix(JsonGenerator jsonGenerator,
String s) |
protected void |
writeTypeSuffix(JsonGenerator jsonGenerator) |
protected final TypeIdResolver idRes
protected final String propertyName
protected final TypeInfo typeInfo
protected final String valuePropertyName
public TypeSerializer forProperty(BeanProperty beanProperty)
public JsonTypeInfo.As getTypeInclusion()
public String getPropertyName()
public TypeIdResolver getTypeIdResolver()
protected boolean canWriteTypeId()
protected void writeTypePrefix(JsonGenerator jsonGenerator,
String s)
throws IOException
IOExceptionprotected void writeTypeSuffix(JsonGenerator jsonGenerator)
throws IOException
IOExceptionprotected abstract Class getClassFromObject(Object o)
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.