| package com.fasterxml.jackson.databind.jsontype.impl; |
| |
| import com.fasterxml.jackson.annotation.JsonTypeInfo; |
| import com.fasterxml.jackson.databind.BeanProperty; |
| import com.fasterxml.jackson.databind.TypeSerializer; |
| import com.fasterxml.jackson.databind.jsontype.TypeIdResolver; |
| |
| public abstract class TypeSerializerBase extends TypeSerializer |
| { |
| protected final TypeIdResolver _idResolver; |
| |
| protected final BeanProperty _property; |
| |
| protected TypeSerializerBase(TypeIdResolver idRes, BeanProperty property) |
| { |
| _idResolver = idRes; |
| _property = property; |
| } |
| |
| @Override |
| public abstract JsonTypeInfo.As getTypeInclusion(); |
| |
| @Override |
| public String getPropertyName() { return null; } |
| |
| @Override |
| public TypeIdResolver getTypeIdResolver() { return _idResolver; } |
| } |