/** * Since 1.7, it is possible to use {@link JsonTypeInfo} from a property too. */ @Override public TypeResolverBuilder<?> findPropertyTypeResolver(MapperConfig<?> config, AnnotatedMember am, JavaType baseType) { /* As per definition of @JsonTypeInfo, should only apply to contents of container * (collection, map) types, not container types themselves: */ if (baseType.isContainerType()) return null; // No per-member type overrides (yet) return _findTypeResolver(config, am, baseType); }
/** * Since 1.7, it is possible to use {@link JsonTypeInfo} from a property too. */ @Override public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> config, AnnotatedMember am, JavaType containerType) { /* First: let's ensure property is a container type: caller should have * verified but just to be sure */ if (!containerType.isContainerType()) { throw new IllegalArgumentException("Must call method with a container type (got "+containerType+")"); } return _findTypeResolver(config, am, containerType); }
if (type.isContainerType()) { Class<?> keyClass = intr.findSerializationKeyType(a, type.getKeyType()); if (keyClass != null) {
if (_modifiers != null && !resultType.isContainerType()) { for (TypeModifier mod : _modifiers) { resultType = mod.modifyType(resultType, type, context, this);
if (declaredType.isContainerType()) { valueToSuppress = getContainerValueChecker(name, declaredType);
if (type.isContainerType() || type.containedTypeCount() > 0) { prop.setNonTrivialBaseType(type); if (type.isContainerType()) { TypeSerializer typeSer = type.getContentType().getTypeHandler(); if (typeSer != null) {
if (type.isContainerType()) { Class<?> keyClass = intr.findDeserializationKeyType(a, type.getKeyType(), propName); if (keyClass != null) {
return (JsonDeserializer<Object>) _factory.createEnumDeserializer(config, this, type, property); if (type.isContainerType()) { if (type.isArrayType()) { return (JsonDeserializer<Object>)_factory.createArrayDeserializer(config, this,
if (type.isContainerType()) { if (intr.findSerializationContentType(property.getMember(), property.getType()) != null) { return true;
/** * Since 1.7, it is possible to use {@link JsonTypeInfo} from a property too. */ @Override public TypeResolverBuilder<?> findPropertyTypeResolver(MapperConfig<?> config, AnnotatedMember am, JavaType baseType) { /* As per definition of @JsonTypeInfo, should only apply to contents of container * (collection, map) types, not container types themselves: */ if (baseType.isContainerType()) return null; // No per-member type overrides (yet) return _findTypeResolver(config, am, baseType); }
/** * Since 1.7, it is possible to use {@link JsonTypeInfo} from a property too. */ @Override public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> config, AnnotatedMember am, JavaType containerType) { /* First: let's ensure property is a container type: caller should have * verified but just to be sure */ if (!containerType.isContainerType()) { throw new IllegalArgumentException("Must call method with a container type (got "+containerType+")"); } return _findTypeResolver(config, am, containerType); }
if (type.isContainerType()) { AnnotationIntrospector intr = config.getAnnotationIntrospector(); JavaType keyType = type.getKeyType();
if (origType.isContainerType()) { return (JsonSerializer<Object>) buildContainerSerializer(config, type, beanDesc, property, staticTyping);
if (type.isContainerType()) { Class<?> keyClass = intr.findSerializationKeyType(a, type.getKeyType()); if (keyClass != null) {
if (_modifiers != null && !resultType.isContainerType()) { for (TypeModifier mod : _modifiers) { resultType = mod.modifyType(resultType, type, context, this);
if (type.isContainerType() || type.containedTypeCount() > 0) { prop.setNonTrivialBaseType(type); if (type.isContainerType()) { TypeSerializer typeSer = type.getContentType().getTypeHandler(); if (typeSer != null) {
return (JsonDeserializer<Object>) _factory.createEnumDeserializer(config, this, type, property); if (type.isContainerType()) { if (type.isArrayType()) { return (JsonDeserializer<Object>)_factory.createArrayDeserializer(config, this,
if (type.isContainerType()) { if (intr.findSerializationContentType(property.getMember(), property.getType()) != null) { return true;
if (type.isContainerType()) { AnnotationIntrospector intr = config.getAnnotationIntrospector(); JavaType keyType = type.getKeyType();
if (origType.isContainerType()) { return (JsonSerializer<Object>) buildContainerSerializer(config, type, beanDesc, property, staticTyping);