/**
* 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;
}
Occurrence.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:gbif-api
作者:
评论列表
文章目录