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


Java JsonFormatVisitorWrapper.expectAnyFormat方法代码示例

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


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

示例1: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
  JsonSerializer localJsonSerializer1 = this._valueSerializer;
  Object localObject = localJsonSerializer1;
  if (localJsonSerializer1 == null)
  {
    if (paramJavaType == null)
    {
      if (this._property != null)
        paramJavaType = this._property.getType();
      if (paramJavaType == null)
        paramJavaType = paramJsonFormatVisitorWrapper.getProvider().constructType(this._accessorMethod.getReturnType());
    }
    JsonSerializer localJsonSerializer2 = paramJsonFormatVisitorWrapper.getProvider().findTypedValueSerializer(paramJavaType, false, this._property);
    localObject = localJsonSerializer2;
    if (localJsonSerializer2 == null)
    {
      paramJsonFormatVisitorWrapper.expectAnyFormat(paramJavaType);
      return;
    }
  }
  ((JsonSerializer)localObject).acceptJsonFormatVisitor(paramJsonFormatVisitorWrapper, null);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:24,代码来源:JsonValueSerializer.java

示例2: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
{
    /* 01-Jan-2010, tatu: Not 100% sure what we should say here:
     *   type is basically not known. This seems closest
     *   approximation
     */
	visitor.expectAnyFormat(typeHint);
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:10,代码来源:TokenBufferSerializer.java

示例3: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
    throws JsonMappingException
{
    if (_valueSerializer != null) {
        _valueSerializer.acceptJsonFormatVisitor(visitor, null); 
    } else {
        visitor.expectAnyFormat(typeHint);
	}
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:11,代码来源:JsonValueSerializer.java

示例4: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
/**
 * Default implementation specifies no format. This behavior is usually
 * overriden by custom serializers.
 */
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
    throws JsonMappingException
{
	visitor.expectAnyFormat(typeHint);
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:11,代码来源:StdSerializer.java

示例5: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
  if (paramJsonFormatVisitorWrapper != null)
    paramJsonFormatVisitorWrapper.expectAnyFormat(paramJavaType);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:6,代码来源:JsonSerializer.java

示例6: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
public final void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
  paramJsonFormatVisitorWrapper.expectAnyFormat(paramJavaType);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:StdJdkSerializers.java

示例7: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
  paramJsonFormatVisitorWrapper.expectAnyFormat(paramJavaType);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:TokenBufferSerializer.java

示例8: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
/**
 * Default implementation simply calls {@link JsonFormatVisitorWrapper#expectAnyFormat(JavaType)}.
 * 
 * @since 2.1
 */
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType type)
    throws JsonMappingException
{
    visitor.expectAnyFormat(type);
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:11,代码来源:JsonSerializer.java

示例9: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
{
	visitor.expectAnyFormat(typeHint);
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:6,代码来源:StdJdkSerializers.java

示例10: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
{
    visitor.expectAnyFormat(typeHint);
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:6,代码来源:SerializableSerializer.java

示例11: acceptJsonFormatVisitor

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) { 
	visitor.expectAnyFormat(typeHint);
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:5,代码来源:UnknownSerializer.java


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