本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}