当前位置: 首页>>代码示例>>Java>>正文


Java MapLikeType类代码示例

本文整理汇总了Java中org.codehaus.jackson.map.type.MapLikeType的典型用法代码示例。如果您正苦于以下问题:Java MapLikeType类的具体用法?Java MapLikeType怎么用?Java MapLikeType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MapLikeType类属于org.codehaus.jackson.map.type包,在下文中一共展示了MapLikeType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
public JsonDeserializer<?> createMapLikeDeserializer(DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, MapLikeType paramMapLikeType, BeanProperty paramBeanProperty)
  throws JsonMappingException
{
  MapLikeType localMapLikeType1 = (MapLikeType)mapAbstractType(paramDeserializationConfig, paramMapLikeType);
  BasicBeanDescription localBasicBeanDescription = (BasicBeanDescription)paramDeserializationConfig.introspectForCreation(localMapLikeType1);
  JsonDeserializer localJsonDeserializer1 = findDeserializerFromAnnotation(paramDeserializationConfig, localBasicBeanDescription.getClassInfo(), paramBeanProperty);
  if (localJsonDeserializer1 != null)
    return localJsonDeserializer1;
  MapLikeType localMapLikeType2 = (MapLikeType)modifyTypeByAnnotation(paramDeserializationConfig, localBasicBeanDescription.getClassInfo(), localMapLikeType1, null);
  JavaType localJavaType1 = localMapLikeType2.getKeyType();
  JavaType localJavaType2 = localMapLikeType2.getContentType();
  JsonDeserializer localJsonDeserializer2 = (JsonDeserializer)localJavaType2.getValueHandler();
  KeyDeserializer localKeyDeserializer = (KeyDeserializer)localJavaType1.getValueHandler();
  if (localKeyDeserializer == null)
    localKeyDeserializer = paramDeserializerProvider.findKeyDeserializer(paramDeserializationConfig, localJavaType1, paramBeanProperty);
  TypeDeserializer localTypeDeserializer = (TypeDeserializer)localJavaType2.getTypeHandler();
  if (localTypeDeserializer == null)
    localTypeDeserializer = findTypeDeserializer(paramDeserializationConfig, localJavaType2, paramBeanProperty);
  return _findCustomMapLikeDeserializer(localMapLikeType2, paramDeserializationConfig, paramDeserializerProvider, localBasicBeanDescription, paramBeanProperty, localKeyDeserializer, localTypeDeserializer, localJsonDeserializer2);
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:21,代码来源:BasicDeserializerFactory.java

示例2: createMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
public JsonDeserializer<?> createMapLikeDeserializer(DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, MapLikeType paramMapLikeType, BeanProperty paramBeanProperty)
{
  MapLikeType localMapLikeType1 = (MapLikeType)mapAbstractType(paramDeserializationConfig, paramMapLikeType);
  BasicBeanDescription localBasicBeanDescription = (BasicBeanDescription)paramDeserializationConfig.introspectForCreation(localMapLikeType1);
  JsonDeserializer localJsonDeserializer1 = findDeserializerFromAnnotation(paramDeserializationConfig, localBasicBeanDescription.getClassInfo(), paramBeanProperty);
  if (localJsonDeserializer1 != null)
    return localJsonDeserializer1;
  MapLikeType localMapLikeType2 = (MapLikeType)modifyTypeByAnnotation(paramDeserializationConfig, localBasicBeanDescription.getClassInfo(), localMapLikeType1, null);
  JavaType localJavaType1 = localMapLikeType2.getKeyType();
  JavaType localJavaType2 = localMapLikeType2.getContentType();
  JsonDeserializer localJsonDeserializer2 = (JsonDeserializer)localJavaType2.getValueHandler();
  KeyDeserializer localKeyDeserializer1 = (KeyDeserializer)localJavaType1.getValueHandler();
  if (localKeyDeserializer1 == null);
  for (KeyDeserializer localKeyDeserializer2 = paramDeserializerProvider.findKeyDeserializer(paramDeserializationConfig, localJavaType1, paramBeanProperty); ; localKeyDeserializer2 = localKeyDeserializer1)
  {
    TypeDeserializer localTypeDeserializer1 = (TypeDeserializer)localJavaType2.getTypeHandler();
    if (localTypeDeserializer1 == null);
    for (TypeDeserializer localTypeDeserializer2 = findTypeDeserializer(paramDeserializationConfig, localJavaType2, paramBeanProperty); ; localTypeDeserializer2 = localTypeDeserializer1)
      return _findCustomMapLikeDeserializer(localMapLikeType2, paramDeserializationConfig, paramDeserializerProvider, localBasicBeanDescription, paramBeanProperty, localKeyDeserializer2, localTypeDeserializer2, localJsonDeserializer2);
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:22,代码来源:BasicDeserializerFactory.java

示例3: createMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
@Override
public JsonDeserializer<?> createMapLikeDeserializer(final DeserializationConfig config,
                                                     final DeserializerProvider p,
                                                     final MapLikeType type,
                                                     final BeanProperty property)
        throws JsonMappingException {
    return nonCollectionPageStrategy.createMapLikeDeserializer(config, p, type, property);
}
 
开发者ID:JohnDeere,项目名称:MyJohnDeereAPI-OAuth-Java-Client,代码行数:9,代码来源:CollectionPageDeserializerFactory.java

示例4: buildContainerSerializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
public JsonSerializer<?> buildContainerSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean)
{
  TypeSerializer localTypeSerializer = createTypeSerializer(paramSerializationConfig, paramJavaType.getContentType(), paramBeanProperty);
  if (localTypeSerializer != null)
    paramBoolean = false;
  JsonSerializer localJsonSerializer1;
  while (true)
  {
    localJsonSerializer1 = findContentSerializer(paramSerializationConfig, paramBasicBeanDescription.getClassInfo(), paramBeanProperty);
    if (!paramJavaType.isMapLikeType())
      break;
    MapLikeType localMapLikeType = (MapLikeType)paramJavaType;
    JsonSerializer localJsonSerializer2 = findKeySerializer(paramSerializationConfig, paramBasicBeanDescription.getClassInfo(), paramBeanProperty);
    if (localMapLikeType.isTrueMapType())
    {
      return buildMapSerializer(paramSerializationConfig, (MapType)localMapLikeType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localJsonSerializer2, localTypeSerializer, localJsonSerializer1);
      if (paramBoolean)
        continue;
      paramBoolean = usesStaticTyping(paramSerializationConfig, paramBasicBeanDescription, localTypeSerializer, paramBeanProperty);
      continue;
    }
    return buildMapLikeSerializer(paramSerializationConfig, localMapLikeType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localJsonSerializer2, localTypeSerializer, localJsonSerializer1);
  }
  if (paramJavaType.isCollectionLikeType())
  {
    CollectionLikeType localCollectionLikeType = (CollectionLikeType)paramJavaType;
    if (localCollectionLikeType.isTrueCollectionType())
      return buildCollectionSerializer(paramSerializationConfig, (CollectionType)localCollectionLikeType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localTypeSerializer, localJsonSerializer1);
    return buildCollectionLikeSerializer(paramSerializationConfig, localCollectionLikeType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localTypeSerializer, localJsonSerializer1);
  }
  if (paramJavaType.isArrayType())
    return buildArraySerializer(paramSerializationConfig, (ArrayType)paramJavaType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localTypeSerializer, localJsonSerializer1);
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:35,代码来源:BasicSerializerFactory.java

示例5: buildMapLikeSerializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
protected JsonSerializer<?> buildMapLikeSerializer(SerializationConfig paramSerializationConfig, MapLikeType paramMapLikeType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean, JsonSerializer<Object> paramJsonSerializer1, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer2)
{
  Iterator localIterator = customSerializers().iterator();
  while (localIterator.hasNext())
  {
    JsonSerializer localJsonSerializer = ((Serializers)localIterator.next()).findMapLikeSerializer(paramSerializationConfig, paramMapLikeType, paramBasicBeanDescription, paramBeanProperty, paramJsonSerializer1, paramTypeSerializer, paramJsonSerializer2);
    if (localJsonSerializer != null)
      return localJsonSerializer;
  }
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:12,代码来源:BasicSerializerFactory.java

示例6: findMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
public JsonDeserializer<?> findMapLikeDeserializer(MapLikeType paramMapLikeType, DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, BeanDescription paramBeanDescription, BeanProperty paramBeanProperty, KeyDeserializer paramKeyDeserializer, TypeDeserializer paramTypeDeserializer, JsonDeserializer<?> paramJsonDeserializer)
  throws JsonMappingException
{
  if (this._classMappings == null)
    return null;
  return (JsonDeserializer)this._classMappings.get(new ClassKey(paramMapLikeType.getRawClass()));
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:8,代码来源:SimpleDeserializers.java

示例7: _createDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
protected JsonDeserializer<Object> _createDeserializer(DeserializationConfig paramDeserializationConfig, JavaType paramJavaType, BeanProperty paramBeanProperty)
  throws JsonMappingException
{
  if (paramJavaType.isEnumType())
    return this._factory.createEnumDeserializer(paramDeserializationConfig, this, paramJavaType, paramBeanProperty);
  if (paramJavaType.isContainerType())
  {
    if (paramJavaType.isArrayType())
      return this._factory.createArrayDeserializer(paramDeserializationConfig, this, (ArrayType)paramJavaType, paramBeanProperty);
    if (paramJavaType.isMapLikeType())
    {
      MapLikeType localMapLikeType = (MapLikeType)paramJavaType;
      if (localMapLikeType.isTrueMapType())
        return this._factory.createMapDeserializer(paramDeserializationConfig, this, (MapType)localMapLikeType, paramBeanProperty);
      return this._factory.createMapLikeDeserializer(paramDeserializationConfig, this, localMapLikeType, paramBeanProperty);
    }
    if (paramJavaType.isCollectionLikeType())
    {
      CollectionLikeType localCollectionLikeType = (CollectionLikeType)paramJavaType;
      if (localCollectionLikeType.isTrueCollectionType())
        return this._factory.createCollectionDeserializer(paramDeserializationConfig, this, (CollectionType)localCollectionLikeType, paramBeanProperty);
      return this._factory.createCollectionLikeDeserializer(paramDeserializationConfig, this, localCollectionLikeType, paramBeanProperty);
    }
  }
  if (JsonNode.class.isAssignableFrom(paramJavaType.getRawClass()))
    return this._factory.createTreeDeserializer(paramDeserializationConfig, this, paramJavaType, paramBeanProperty);
  return this._factory.createBeanDeserializer(paramDeserializationConfig, this, paramJavaType, paramBeanProperty);
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:29,代码来源:StdDeserializerProvider.java

示例8: _findCustomMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
protected JsonDeserializer<?> _findCustomMapLikeDeserializer(MapLikeType paramMapLikeType, DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, KeyDeserializer paramKeyDeserializer, TypeDeserializer paramTypeDeserializer, JsonDeserializer<?> paramJsonDeserializer)
  throws JsonMappingException
{
  Iterator localIterator = this._factoryConfig.deserializers().iterator();
  while (localIterator.hasNext())
  {
    JsonDeserializer localJsonDeserializer = ((Deserializers)localIterator.next()).findMapLikeDeserializer(paramMapLikeType, paramDeserializationConfig, paramDeserializerProvider, paramBasicBeanDescription, paramBeanProperty, paramKeyDeserializer, paramTypeDeserializer, paramJsonDeserializer);
    if (localJsonDeserializer != null)
      return localJsonDeserializer;
  }
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:13,代码来源:BeanDeserializerFactory.java

示例9: buildContainerSerializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
public JsonSerializer<?> buildContainerSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean)
{
  TypeSerializer localTypeSerializer = createTypeSerializer(paramSerializationConfig, paramJavaType.getContentType(), paramBeanProperty);
  boolean bool;
  if (localTypeSerializer != null)
    bool = false;
  while (true)
  {
    JsonSerializer localJsonSerializer1 = findContentSerializer(paramSerializationConfig, paramBasicBeanDescription.getClassInfo(), paramBeanProperty);
    if (paramJavaType.isMapLikeType())
    {
      MapLikeType localMapLikeType = (MapLikeType)paramJavaType;
      JsonSerializer localJsonSerializer2 = findKeySerializer(paramSerializationConfig, paramBasicBeanDescription.getClassInfo(), paramBeanProperty);
      if (localMapLikeType.isTrueMapType())
      {
        return buildMapSerializer(paramSerializationConfig, (MapType)localMapLikeType, paramBasicBeanDescription, paramBeanProperty, bool, localJsonSerializer2, localTypeSerializer, localJsonSerializer1);
        if (!paramBoolean)
          bool = usesStaticTyping(paramSerializationConfig, paramBasicBeanDescription, localTypeSerializer, paramBeanProperty);
      }
      else
      {
        return buildMapLikeSerializer(paramSerializationConfig, localMapLikeType, paramBasicBeanDescription, paramBeanProperty, bool, localJsonSerializer2, localTypeSerializer, localJsonSerializer1);
      }
    }
    else
    {
      if (paramJavaType.isCollectionLikeType())
      {
        CollectionLikeType localCollectionLikeType = (CollectionLikeType)paramJavaType;
        if (localCollectionLikeType.isTrueCollectionType())
          return buildCollectionSerializer(paramSerializationConfig, (CollectionType)localCollectionLikeType, paramBasicBeanDescription, paramBeanProperty, bool, localTypeSerializer, localJsonSerializer1);
        return buildCollectionLikeSerializer(paramSerializationConfig, localCollectionLikeType, paramBasicBeanDescription, paramBeanProperty, bool, localTypeSerializer, localJsonSerializer1);
      }
      if (paramJavaType.isArrayType())
        return buildArraySerializer(paramSerializationConfig, (ArrayType)paramJavaType, paramBasicBeanDescription, paramBeanProperty, bool, localTypeSerializer, localJsonSerializer1);
      return null;
      bool = paramBoolean;
    }
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:41,代码来源:BasicSerializerFactory.java

示例10: _createDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
protected JsonDeserializer<Object> _createDeserializer(DeserializationConfig paramDeserializationConfig, JavaType paramJavaType, BeanProperty paramBeanProperty)
{
  if (paramJavaType.isEnumType())
    return this._factory.createEnumDeserializer(paramDeserializationConfig, this, paramJavaType, paramBeanProperty);
  if (paramJavaType.isContainerType())
  {
    if (paramJavaType.isArrayType())
      return this._factory.createArrayDeserializer(paramDeserializationConfig, this, (ArrayType)paramJavaType, paramBeanProperty);
    if (paramJavaType.isMapLikeType())
    {
      MapLikeType localMapLikeType = (MapLikeType)paramJavaType;
      if (localMapLikeType.isTrueMapType())
        return this._factory.createMapDeserializer(paramDeserializationConfig, this, (MapType)localMapLikeType, paramBeanProperty);
      return this._factory.createMapLikeDeserializer(paramDeserializationConfig, this, localMapLikeType, paramBeanProperty);
    }
    if (paramJavaType.isCollectionLikeType())
    {
      CollectionLikeType localCollectionLikeType = (CollectionLikeType)paramJavaType;
      if (localCollectionLikeType.isTrueCollectionType())
        return this._factory.createCollectionDeserializer(paramDeserializationConfig, this, (CollectionType)localCollectionLikeType, paramBeanProperty);
      return this._factory.createCollectionLikeDeserializer(paramDeserializationConfig, this, localCollectionLikeType, paramBeanProperty);
    }
  }
  if (JsonNode.class.isAssignableFrom(paramJavaType.getRawClass()))
    return this._factory.createTreeDeserializer(paramDeserializationConfig, this, paramJavaType, paramBeanProperty);
  return this._factory.createBeanDeserializer(paramDeserializationConfig, this, paramJavaType, paramBeanProperty);
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:28,代码来源:StdDeserializerProvider.java

示例11: _findCustomMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
protected JsonDeserializer<?> _findCustomMapLikeDeserializer(MapLikeType paramMapLikeType, DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, KeyDeserializer paramKeyDeserializer, TypeDeserializer paramTypeDeserializer, JsonDeserializer<?> paramJsonDeserializer)
{
  Iterator localIterator = this._factoryConfig.deserializers().iterator();
  while (localIterator.hasNext())
  {
    JsonDeserializer localJsonDeserializer = ((Deserializers)localIterator.next()).findMapLikeDeserializer(paramMapLikeType, paramDeserializationConfig, paramDeserializerProvider, paramBasicBeanDescription, paramBeanProperty, paramKeyDeserializer, paramTypeDeserializer, paramJsonDeserializer);
    if (localJsonDeserializer != null)
      return localJsonDeserializer;
  }
  return null;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:12,代码来源:BeanDeserializerFactory.java

示例12: createMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
public abstract JsonDeserializer<?> createMapLikeDeserializer(DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, MapLikeType paramMapLikeType, BeanProperty paramBeanProperty)
throws JsonMappingException;
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:3,代码来源:DeserializerFactory.java

示例13: findMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
public abstract JsonDeserializer<?> findMapLikeDeserializer(MapLikeType paramMapLikeType, DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, BeanDescription paramBeanDescription, BeanProperty paramBeanProperty, KeyDeserializer paramKeyDeserializer, TypeDeserializer paramTypeDeserializer, JsonDeserializer<?> paramJsonDeserializer)
throws JsonMappingException;
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:3,代码来源:Deserializers.java

示例14: findMapLikeSerializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
public JsonSerializer<?> findMapLikeSerializer(SerializationConfig paramSerializationConfig, MapLikeType paramMapLikeType, BeanDescription paramBeanDescription, BeanProperty paramBeanProperty, JsonSerializer<Object> paramJsonSerializer1, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer2)
{
  return findSerializer(paramSerializationConfig, paramMapLikeType, paramBeanDescription, paramBeanProperty);
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:5,代码来源:SimpleSerializers.java

示例15: _findCustomMapLikeDeserializer

import org.codehaus.jackson.map.type.MapLikeType; //导入依赖的package包/类
protected abstract JsonDeserializer<?> _findCustomMapLikeDeserializer(MapLikeType paramMapLikeType, DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, KeyDeserializer paramKeyDeserializer, TypeDeserializer paramTypeDeserializer, JsonDeserializer<?> paramJsonDeserializer)
throws JsonMappingException;
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:3,代码来源:BasicDeserializerFactory.java


注:本文中的org.codehaus.jackson.map.type.MapLikeType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。