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