@Override public String findRootName(AnnotatedClass ac) { JsonRootName ann = ac.getAnnotation(JsonRootName.class); return (ann == null) ? null : ann.value(); }
@Override public String findRootName(AnnotatedClass ac) { JsonRootName ann = ac.getAnnotation(JsonRootName.class); return (ann == null) ? null : ann.value(); }
@Override public String findRootName(AnnotatedClass ac) { JsonRootName ann = ac.getAnnotation(JsonRootName.class); return (ann == null) ? null : ann.value(); }
@Override public String findRootName(AnnotatedClass ac) { JsonRootName ann = ac.getAnnotation(JsonRootName.class); return (ann == null) ? null : ann.value(); }
@Override public String getLabel() { String label = this.typeDefinition.getSimpleName().toString(); JsonRootName rootName = this.typeDefinition.getAnnotation(JsonRootName.class); label = rootName == null ? label : rootName.value(); JavaDoc.JavaDocTagList tags = this.typeDefinition.getJavaDoc().get("label"); if (tags != null && tags.size() > 0) { String tag = tags.get(0).trim(); label = tag.isEmpty() ? label : tag; } Label labelInfo = this.typeDefinition.getAnnotation(Label.class); label = labelInfo == null ? label : labelInfo.value(); return label; }
@Override public String getLabel() { String label = this.typeDefinition.getSimpleName().toString(); JsonRootName rootName = this.typeDefinition.getAnnotation(JsonRootName.class); label = rootName == null ? label : rootName.value(); JavaDoc.JavaDocTagList tags = this.typeDefinition.getJavaDoc().get("label"); if (tags != null && tags.size() > 0) { String tag = tags.get(0).trim(); label = tag.isEmpty() ? label : tag; } Label labelInfo = this.typeDefinition.getAnnotation(Label.class); label = labelInfo == null ? label : labelInfo.value(); return label; }
public String getJsonRootName() { String rootName = getSimpleName().toString(); if (getContext().isHonorJaxb()) { XmlType xmlType = getAnnotation(XmlType.class); if (xmlType != null) { rootName = xmlType.name(); } XmlRootElement rootElement = getAnnotation(XmlRootElement.class); if (rootElement != null) { rootName = rootElement.name(); } if ("##default".equals(rootName)) { rootName = getSimpleName().toString(); } } JsonRootName jsonRootName = getAnnotation(JsonRootName.class); if (jsonRootName != null) { rootName = jsonRootName.value(); } return rootName; }
public String getJsonRootName() { String rootName = getSimpleName().toString(); if (getContext().isHonorJaxb()) { XmlType xmlType = getAnnotation(XmlType.class); if (xmlType != null) { rootName = xmlType.name(); } XmlRootElement rootElement = getAnnotation(XmlRootElement.class); if (rootElement != null) { rootName = rootElement.name(); } if ("##default".equals(rootName)) { rootName = getSimpleName().toString(); } } JsonRootName jsonRootName = getAnnotation(JsonRootName.class); if (jsonRootName != null) { rootName = jsonRootName.value(); } return rootName; }