本文整理汇总了Java中com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor类的典型用法代码示例。如果您正苦于以下问题:Java JsonMapFormatVisitor类的具体用法?Java JsonMapFormatVisitor怎么用?Java JsonMapFormatVisitor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsonMapFormatVisitor类属于com.fasterxml.jackson.databind.jsonFormatVisitors包,在下文中一共展示了JsonMapFormatVisitor类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor; //导入依赖的package包/类
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
JsonMapFormatVisitor localJsonMapFormatVisitor1;
if (paramJsonFormatVisitorWrapper == null)
localJsonMapFormatVisitor1 = null;
else
localJsonMapFormatVisitor1 = paramJsonFormatVisitorWrapper.expectMapFormat(paramJavaType);
JsonMapFormatVisitor localJsonMapFormatVisitor2 = localJsonMapFormatVisitor1;
if (localJsonMapFormatVisitor1 != null)
{
localJsonMapFormatVisitor2.keyFormat(this._keySerializer, this._keyType);
JsonSerializer localJsonSerializer1 = this._valueSerializer;
JsonSerializer localJsonSerializer2 = localJsonSerializer1;
if (localJsonSerializer1 == null)
localJsonSerializer2 = _findAndAddDynamic(this._dynamicValueSerializers, this._valueType, paramJsonFormatVisitorWrapper.getProvider());
localJsonMapFormatVisitor2.valueFormat(localJsonSerializer2, this._valueType);
}
}
示例2: expectMapFormat
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor; //导入依赖的package包/类
@Override
public JsonMapFormatVisitor expectMapFormat(JavaType type) throws JsonMappingException {
addFieldIfPresent("Map");
return new JsonMapFormatVisitor.Base(provider);
}
示例3: expectMapFormat
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor; //导入依赖的package包/类
@Override
public JsonMapFormatVisitor expectMapFormat(JavaType type) throws JsonMappingException {
return setTypeAndReturn(new TSJsonMapFormatVisitor(this, conf));
}