當前位置: 首頁>>代碼示例>>Java>>正文


Java TypeSerializer.writeTypePrefixForScalar方法代碼示例

本文整理匯總了Java中com.fasterxml.jackson.databind.jsontype.TypeSerializer.writeTypePrefixForScalar方法的典型用法代碼示例。如果您正苦於以下問題:Java TypeSerializer.writeTypePrefixForScalar方法的具體用法?Java TypeSerializer.writeTypePrefixForScalar怎麽用?Java TypeSerializer.writeTypePrefixForScalar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.fasterxml.jackson.databind.jsontype.TypeSerializer的用法示例。


在下文中一共展示了TypeSerializer.writeTypePrefixForScalar方法的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.writeTypePrefixForScalar方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。