Java 类org.codehaus.jackson.annotate.JsonSubTypes 实例源码

项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
public List<NamedType> findSubtypes(Annotated paramAnnotated)
{
  JsonSubTypes localJsonSubTypes = (JsonSubTypes)paramAnnotated.getAnnotation(JsonSubTypes.class);
  ArrayList localArrayList;
  if (localJsonSubTypes == null)
    localArrayList = null;
  while (true)
  {
    return localArrayList;
    JsonSubTypes.Type[] arrayOfType = localJsonSubTypes.value();
    localArrayList = new ArrayList(arrayOfType.length);
    int i = arrayOfType.length;
    for (int j = 0; j < i; j++)
    {
      JsonSubTypes.Type localType = arrayOfType[j];
      localArrayList.add(new NamedType(localType.value(), localType.name()));
    }
  }
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
public List<NamedType> findSubtypes(Annotated paramAnnotated)
{
  JsonSubTypes localJsonSubTypes = (JsonSubTypes)paramAnnotated.getAnnotation(JsonSubTypes.class);
  ArrayList localArrayList;
  if (localJsonSubTypes == null)
    localArrayList = null;
  while (true)
  {
    return localArrayList;
    JsonSubTypes.Type[] arrayOfType = localJsonSubTypes.value();
    localArrayList = new ArrayList(arrayOfType.length);
    int i = arrayOfType.length;
    for (int j = 0; j < i; j++)
    {
      JsonSubTypes.Type localType = arrayOfType[j];
      localArrayList.add(new NamedType(localType.value(), localType.name()));
    }
  }
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
public List<NamedType> findSubtypes(Annotated paramAnnotated)
{
  JsonSubTypes localJsonSubTypes = (JsonSubTypes)paramAnnotated.getAnnotation(JsonSubTypes.class);
  Object localObject;
  if (localJsonSubTypes == null)
    localObject = null;
  while (true)
  {
    return localObject;
    JsonSubTypes.Type[] arrayOfType = localJsonSubTypes.value();
    localObject = new ArrayList(arrayOfType.length);
    int i = arrayOfType.length;
    for (int j = 0; j < i; j++)
    {
      JsonSubTypes.Type localType = arrayOfType[j];
      ((ArrayList)localObject).add(new NamedType(localType.value(), localType.name()));
    }
  }
}
项目:chromecast-java-api-v2    文件:Channel.java   
private boolean isAppEvent(JsonNode parsed) {
    if (parsed != null && parsed.has("responseType")) {
        String type = parsed.get("responseType").asText();
        for (JsonSubTypes.Type t : STANDARD_RESPONSE_TYPES) {
            if (t.name().equals(type)) {
                return false;
            }
        }
    }
    return parsed == null || !parsed.has("requestId");
}
项目:Tanaguru    文件:WebResourceImpl.java   
@Override
@XmlElementWrapper
@XmlElementRefs({
    @XmlElementRef(type = org.tanaguru.entity.audit.IndefiniteResultImpl.class),
    @XmlElementRef(type = org.tanaguru.entity.audit.DefiniteResultImpl.class)})
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.audit.IndefiniteResultImpl.class, name="Indefinite"),
    @JsonSubTypes.Type(value=org.tanaguru.entity.audit.DefiniteResultImpl.class, name="Definite")})
public Collection<ProcessResult> getProcessResultList() {
    return (Collection)processResultSet;
}
项目:Tanaguru    文件:AuditImpl.java   
@Override
@XmlElementRefs({
    @XmlElementRef(type = org.tanaguru.entity.subject.PageImpl.class),
    @XmlElementRef(type = org.tanaguru.entity.subject.SiteImpl.class)})
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.subject.PageImpl.class, name="Page"),
    @JsonSubTypes.Type(value=org.tanaguru.entity.subject.SiteImpl.class, name="Site")})
public WebResourceImpl getSubject() {
    return subject;
}
项目:Tanaguru    文件:AuditImpl.java   
@Override
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.parameterization.ParameterImpl.class, name="Parameter")})
public Collection<Parameter> getParameterSet() {
    if (this.parameterSet == null) {
        this.parameterSet = new HashSet<>();
    }
    return (Collection)parameterSet;
}
项目:Tanaguru    文件:ProcessRemarkImpl.java   
@Override
@XmlElementWrapper
@XmlElementRefs({
    @XmlElementRef(type = org.tanaguru.entity.audit.EvidenceElementImpl.class)})
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.audit.EvidenceElementImpl.class, name="EvidenceElement")})
public Collection<EvidenceElement> getElementList() {
    return (Collection)elementSet;
}
项目:Tanaguru    文件:ProcessResultImpl.java   
@Override
    @XmlElementWrapper
    @XmlElementRefs({
        @XmlElementRef(type = org.tanaguru.entity.audit.ProcessRemarkImpl.class),
        @XmlElementRef(type = org.tanaguru.entity.audit.SourceCodeRemarkImpl.class)})
    @JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
    @JsonSubTypes({
        @JsonSubTypes.Type(value=org.tanaguru.entity.audit.ProcessRemarkImpl.class, name="ProcessRemark"), 
        @JsonSubTypes.Type(value=org.tanaguru.entity.audit.SourceCodeRemarkImpl.class, name="SourceCodeRemark")})
//    @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
    public Collection<ProcessRemark> getRemarkSet() {
        return (Collection)remarkSet;
    }
项目:Tanaguru    文件:ProcessResultImpl.java   
@Override
@XmlElementRef(type = org.tanaguru.entity.reference.TestImpl.class)
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.reference.TestImpl.class, name="Test")})
public Test getTest() {
    return test;
}
项目:Tanaguru    文件:EvidenceElementImpl.java   
@XmlTransient
@Override
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.audit.EvidenceImpl.class, name="Evidence")})
public Evidence getEvidence() {
    return (Evidence) evidence;
}
项目:Tanaguru    文件:DefiniteResultImpl.java   
@Override
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.audit.TestSolution.class, name="TestSolution")})
public Object getValue() {
    return getDefiniteValue();
}
项目:Tanaguru    文件:ParameterImpl.java   
@Override
@XmlElementWrapper
@XmlElementRef(type = org.tanaguru.entity.parameterization.ParameterElementImpl.class)
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.parameterization.ParameterElementImpl.class, name="ParameterElement")})
public void setParameterElement(ParameterElement parameterElement) {
    this.parameterElement = (ParameterElementImpl)parameterElement;
}
项目:Tanaguru    文件:ParameterElementImpl.java   
@Override
@XmlElementWrapper
@XmlElementRef(type = org.tanaguru.entity.parameterization.ParameterFamilyImpl.class)
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.parameterization.ParameterFamilyImpl.class, name="ParameterFamily")})
public void setParameterFamily(ParameterFamily parameterFamily) {
    this.parameterFamily = (ParameterFamilyImpl)parameterFamily;
}
项目:Tanaguru    文件:TestImpl.java   
@Override
@XmlElementRef(type = org.tanaguru.entity.reference.CriterionImpl.class)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value = org.tanaguru.entity.reference.CriterionImpl.class, name = "Criterion")})
public Criterion getCriterion() {
    return this.criterion;
}
项目:Tanaguru    文件:TestImpl.java   
@Override
@XmlElementRef(type = org.tanaguru.entity.reference.LevelImpl.class)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value = org.tanaguru.entity.reference.LevelImpl.class, name = "Level")})
public Level getLevel() {
    return this.level;
}
项目:Tanaguru    文件:TestImpl.java   
@Override
@XmlElementRef(type = org.tanaguru.entity.reference.ScopeImpl.class)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value = org.tanaguru.entity.reference.ScopeImpl.class, name = "Scope")})
public Scope getScope() {
    return this.scope;
}
项目:Tanaguru    文件:CriterionImpl.java   
@Override
@XmlElementRef(type = org.tanaguru.entity.reference.ThemeImpl.class)
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
    @JsonSubTypes.Type(value=org.tanaguru.entity.reference.ThemeImpl.class, name="Theme")})
public Theme getTheme() {
    return theme;
}