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


Java TypeSerializer.writeTypeSuffixForScalar方法代码示例

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


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

示例1: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(JoinFunction value, JsonGenerator gen, SerializerProvider serializers,
    TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:8,代码来源:JoinFunction.java

示例2: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(SelectFunction value, JsonGenerator gen, SerializerProvider serializers,
    TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:8,代码来源:SelectFunction.java

示例3: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(StringValue value, JsonGenerator gen, SerializerProvider serializers,
    TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:8,代码来源:StringValue.java

示例4: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(
    com.salesforce.cf2pojo.model.RefValue value, JsonGenerator gen, SerializerProvider serializers,
    TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:9,代码来源:RefValue.java

示例5: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(com.salesforce.cf2pojo.model.GetAttFunction value, JsonGenerator gen,
    SerializerProvider serializers, TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:8,代码来源:GetAttFunction.java

示例6: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(Base64Function value, JsonGenerator gen, SerializerProvider serializers,
    TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:8,代码来源:Base64Function.java

示例7: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(SubFunction value, JsonGenerator gen, SerializerProvider serializers,
    TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:8,代码来源:SubFunction.java

示例8: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(FindInMapFunction value, JsonGenerator gen, SerializerProvider serializers,
    TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:8,代码来源:FindInMapFunction.java

示例9: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(IfFunction value, JsonGenerator gen, SerializerProvider serializers,
    TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, serializers);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:salesforce,项目名称:cf2pojo,代码行数:8,代码来源:IfFunction.java

示例10: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
@Override
public void serializeWithType(BigDecimal value, JsonGenerator gen, SerializerProvider provider,
        TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForScalar(value, gen);
    serialize(value, gen, provider);
    typeSer.writeTypeSuffixForScalar(value, gen);
}
 
开发者ID:SolarNetwork,项目名称:killbill-easytax-plugin,代码行数:8,代码来源:BigDecimalStringSerializer.java

示例11: serializeWithType

import com.fasterxml.jackson.databind.jsontype.TypeSerializer; //导入方法依赖的package包/类
/**
 * Default implementation will write type prefix, call regular serialization method (since assumption is that value
 * itself does not need JSON Array or Object start/end markers), and then write type suffix. This should work for
 * most cases; some sub-classes may want to change this behavior.
 */
@Override
public void serializeWithType(
        HasDruidName value,
        JsonGenerator jgen,
        SerializerProvider provider,
        TypeSerializer typeSer
) throws IOException {
    typeSer.writeTypePrefixForScalar(value, jgen);
    serialize(value, jgen, provider);
    typeSer.writeTypeSuffixForScalar(value, jgen);
}
 
开发者ID:yahoo,项目名称:fili,代码行数:17,代码来源:HasDruidNameSerializer.java


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