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


Java JsonSerializer.None方法代码示例

本文整理汇总了Java中org.codehaus.jackson.map.JsonSerializer.None方法的典型用法代码示例。如果您正苦于以下问题:Java JsonSerializer.None方法的具体用法?Java JsonSerializer.None怎么用?Java JsonSerializer.None使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.codehaus.jackson.map.JsonSerializer的用法示例。


在下文中一共展示了JsonSerializer.None方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: findContentSerializer

import org.codehaus.jackson.map.JsonSerializer; //导入方法依赖的package包/类
protected static JsonSerializer<Object> findContentSerializer(SerializationConfig paramSerializationConfig, Annotated paramAnnotated, BeanProperty paramBeanProperty)
{
  AnnotationIntrospector localAnnotationIntrospector = paramSerializationConfig.getAnnotationIntrospector();
  Class localClass = localAnnotationIntrospector.findContentSerializer(paramAnnotated);
  if (((localClass == null) || (localClass == JsonSerializer.None.class)) && (paramBeanProperty != null))
    localClass = localAnnotationIntrospector.findContentSerializer(paramBeanProperty.getMember());
  if ((localClass != null) && (localClass != JsonSerializer.None.class))
    return paramSerializationConfig.serializerInstance(paramAnnotated, localClass);
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:11,代码来源:BasicSerializerFactory.java

示例2: findKeySerializer

import org.codehaus.jackson.map.JsonSerializer; //导入方法依赖的package包/类
protected static JsonSerializer<Object> findKeySerializer(SerializationConfig paramSerializationConfig, Annotated paramAnnotated, BeanProperty paramBeanProperty)
{
  AnnotationIntrospector localAnnotationIntrospector = paramSerializationConfig.getAnnotationIntrospector();
  Class localClass = localAnnotationIntrospector.findKeySerializer(paramAnnotated);
  if (((localClass == null) || (localClass == JsonSerializer.None.class)) && (paramBeanProperty != null))
    localClass = localAnnotationIntrospector.findKeySerializer(paramBeanProperty.getMember());
  if ((localClass != null) && (localClass != JsonSerializer.None.class))
    return paramSerializationConfig.serializerInstance(paramAnnotated, localClass);
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:11,代码来源:BasicSerializerFactory.java

示例3: findContentSerializer

import org.codehaus.jackson.map.JsonSerializer; //导入方法依赖的package包/类
public Class<? extends JsonSerializer<?>> findContentSerializer(Annotated paramAnnotated)
{
  JsonSerialize localJsonSerialize = (JsonSerialize)paramAnnotated.getAnnotation(JsonSerialize.class);
  if (localJsonSerialize != null)
  {
    Class localClass = localJsonSerialize.contentUsing();
    if (localClass != JsonSerializer.None.class)
      return localClass;
  }
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:12,代码来源:JacksonAnnotationIntrospector.java

示例4: findKeySerializer

import org.codehaus.jackson.map.JsonSerializer; //导入方法依赖的package包/类
public Class<? extends JsonSerializer<?>> findKeySerializer(Annotated paramAnnotated)
{
  JsonSerialize localJsonSerialize = (JsonSerialize)paramAnnotated.getAnnotation(JsonSerialize.class);
  if (localJsonSerialize != null)
  {
    Class localClass = localJsonSerialize.keyUsing();
    if (localClass != JsonSerializer.None.class)
      return localClass;
  }
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:12,代码来源:JacksonAnnotationIntrospector.java

示例5: findSerializer

import org.codehaus.jackson.map.JsonSerializer; //导入方法依赖的package包/类
public Object findSerializer(Annotated paramAnnotated, BeanProperty paramBeanProperty)
{
  JsonSerialize localJsonSerialize = (JsonSerialize)paramAnnotated.getAnnotation(JsonSerialize.class);
  if (localJsonSerialize != null)
  {
    Class localClass = localJsonSerialize.using();
    if (localClass != JsonSerializer.None.class)
      return localClass;
  }
  JsonRawValue localJsonRawValue = (JsonRawValue)paramAnnotated.getAnnotation(JsonRawValue.class);
  if ((localJsonRawValue != null) && (localJsonRawValue.value()))
    return new RawSerializer(paramAnnotated.getRawType());
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:15,代码来源:JacksonAnnotationIntrospector.java


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