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


Java JsonManagedReference类代码示例

本文整理汇总了Java中org.codehaus.jackson.annotate.JsonManagedReference的典型用法代码示例。如果您正苦于以下问题:Java JsonManagedReference类的具体用法?Java JsonManagedReference怎么用?Java JsonManagedReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: getChildren

import org.codehaus.jackson.annotate.JsonManagedReference; //导入依赖的package包/类
@SuppressWarnings("ReturnOfCollectionOrArrayField")
@JsonManagedReference("parent")
@Override
public LinkedList<TreeNode> getChildren() {
	if (children instanceof LinkedList) {
		return (LinkedList<TreeNode>) children;
	} else {
		return new LinkedList<>(children);
	}
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:11,代码来源:TreeNode.java

示例2: setChildren

import org.codehaus.jackson.annotate.JsonManagedReference; //导入依赖的package包/类
@JsonIgnore
@JsonManagedReference("parent")
public void setChildren(List<TreeNode> children) {
	if (children instanceof LinkedList) {
		this.children = children;
	} else {
		this.children = new LinkedList<>(children);
	}
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:10,代码来源:TreeNode.java

示例3: findReferenceType

import org.codehaus.jackson.annotate.JsonManagedReference; //导入依赖的package包/类
public AnnotationIntrospector.ReferenceProperty findReferenceType(AnnotatedMember paramAnnotatedMember)
{
  JsonManagedReference localJsonManagedReference = (JsonManagedReference)paramAnnotatedMember.getAnnotation(JsonManagedReference.class);
  if (localJsonManagedReference != null)
    return AnnotationIntrospector.ReferenceProperty.managed(localJsonManagedReference.value());
  JsonBackReference localJsonBackReference = (JsonBackReference)paramAnnotatedMember.getAnnotation(JsonBackReference.class);
  if (localJsonBackReference != null)
    return AnnotationIntrospector.ReferenceProperty.back(localJsonBackReference.value());
  return null;
}
 
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:11,代码来源:JacksonAnnotationIntrospector.java

示例4: findDeserializablePropertyName

import org.codehaus.jackson.annotate.JsonManagedReference; //导入依赖的package包/类
public String findDeserializablePropertyName(AnnotatedField paramAnnotatedField)
{
  JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedField.getAnnotation(JsonProperty.class);
  if (localJsonProperty != null)
    return localJsonProperty.value();
  if ((paramAnnotatedField.hasAnnotation(JsonDeserialize.class)) || (paramAnnotatedField.hasAnnotation(JsonView.class)) || (paramAnnotatedField.hasAnnotation(JsonBackReference.class)) || (paramAnnotatedField.hasAnnotation(JsonManagedReference.class)))
    return "";
  return null;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:10,代码来源:JacksonAnnotationIntrospector.java

示例5: findSettablePropertyName

import org.codehaus.jackson.annotate.JsonManagedReference; //导入依赖的package包/类
public String findSettablePropertyName(AnnotatedMethod paramAnnotatedMethod)
{
  JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedMethod.getAnnotation(JsonProperty.class);
  if (localJsonProperty != null)
    return localJsonProperty.value();
  JsonSetter localJsonSetter = (JsonSetter)paramAnnotatedMethod.getAnnotation(JsonSetter.class);
  if (localJsonSetter != null)
    return localJsonSetter.value();
  if ((paramAnnotatedMethod.hasAnnotation(JsonDeserialize.class)) || (paramAnnotatedMethod.hasAnnotation(JsonView.class)) || (paramAnnotatedMethod.hasAnnotation(JsonBackReference.class)) || (paramAnnotatedMethod.hasAnnotation(JsonManagedReference.class)))
    return "";
  return null;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:13,代码来源:JacksonAnnotationIntrospector.java

示例6: getJobEvents

import org.codehaus.jackson.annotate.JsonManagedReference; //导入依赖的package包/类
/**
 * @return the jobEvents
 */
@JsonManagedReference("job-event")
public List<JobEventEntity> getJobEvents() {
	return new ArrayList<>(this.jobEvents);
}
 
开发者ID:eurekaclinical,项目名称:eureka,代码行数:8,代码来源:JobEntity.java


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