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