Occurrence.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:gbif-api 作者:
/**
 * This private method is only for serialization via jackson and not exposed anywhere else!
 * It maps the verbatimField terms into properties with their simple name or qualified names for UnknownTerms.
 */
@JsonAnyGetter
private Map<String, String> jsonVerbatimFields() {
  Map<String, String> extendedProps = Maps.newHashMap();
  for (Map.Entry<Term, String> prop : getVerbatimFields().entrySet()) {
    Term t = prop.getKey();
    if (t instanceof UnknownTerm || PROPERTIES.contains(t.simpleName())) {
      extendedProps.put(t.qualifiedName(), prop.getValue());
    } else {
      // render all terms in controlled enumerations as simple names only - unless we have a property of that name already!
      extendedProps.put(t.simpleName(), prop.getValue());
    }
  }
  return extendedProps;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号