/**
* Accessor for type information inclusion method
* that deserializer uses; indicates how type information
* is (expected to be) embedded in JSON input.
*/
public abstract JsonTypeInfo.As getTypeInclusion();
java类org.codehaus.jackson.annotate.JsonTypeInfo的实例源码
TypeDeserializer.java 文件源码
项目:RHome
阅读 18
收藏 0
点赞 0
评论 0
TypeIdResolver.java 文件源码
项目:RHome
阅读 20
收藏 0
点赞 0
评论 0
/**
* Accessor for mechanism that this resolver uses for determining
* type id from type.
*/
public JsonTypeInfo.Id getMechanism();
TypeResolverBuilder.java 文件源码
项目:RHome
阅读 16
收藏 0
点赞 0
评论 0
/**
* Initialization method that is called right after constructing
* the builder instance.
*
* @param idType Which type metadata is used
* @param res (optional) Custom type id resolver used, if any
*
* @return Resulting builder instance (usually this builder,
* but not necessarily)
*/
public T init(JsonTypeInfo.Id idType, TypeIdResolver res);
TypeResolverBuilder.java 文件源码
项目:RHome
阅读 22
收藏 0
点赞 0
评论 0
/**
* Method for specifying mechanism to use for including type metadata
* in JSON.
* If not explicitly called, setting defaults to
* {@link JsonTypeInfo.As#PROPERTY}.
*
* @param includeAs Mechanism used for including type metadata in JSON
*
* @return Resulting builder instance (usually this builder,
* but not necessarily)
*/
public T inclusion(JsonTypeInfo.As includeAs);
ObjectMapper.java 文件源码
项目:RHome
阅读 20
收藏 0
点赞 0
评论 0
/**
* Convenience method that is equivalant to calling
*<pre>
* enableObjectTyping(dti, JsonTypeInfo.As.WRAPPER_ARRAY);
*</pre>
*/
public ObjectMapper enableDefaultTyping(DefaultTyping dti) {
return enableDefaultTyping(dti, JsonTypeInfo.As.WRAPPER_ARRAY);
}
TypeSerializer.java 文件源码
项目:RHome
阅读 20
收藏 0
点赞 0
评论 0
/**
* Accessor for type information inclusion method
* that serializer uses; indicates how type information
* is embedded in resulting JSON.
*/
public abstract JsonTypeInfo.As getTypeInclusion();
TypeNameIdResolver.java 文件源码
项目:RHome
阅读 33
收藏 0
点赞 0
评论 0
public JsonTypeInfo.Id getMechanism() { return JsonTypeInfo.Id.NAME; }
ClassNameIdResolver.java 文件源码
项目:RHome
阅读 19
收藏 0
点赞 0
评论 0
public JsonTypeInfo.Id getMechanism() { return JsonTypeInfo.Id.CLASS; }
MinimalClassNameIdResolver.java 文件源码
项目:RHome
阅读 18
收藏 0
点赞 0
评论 0
public JsonTypeInfo.Id getMechanism() { return JsonTypeInfo.Id.MINIMAL_CLASS; }