本文整理了Java中pl.edu.icm.model.bwmeta.y.YAttribute.setKey()
方法的一些代码示例,展示了YAttribute.setKey()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAttribute.setKey()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YAttribute
类名称:YAttribute
方法名:setKey
暂无
代码示例来源:origin: pl.edu.icm.synat/synat-core-services-impl
private List<YAttribute> processAttributes(String key, Object value) {
List<YAttribute> attributes = new ArrayList<>();
if(value instanceof String){
YAttribute attribute = new YAttribute();
attribute.setValue(value.toString());
attribute.setKey(key);
attributes.add(attribute);
} else if(value instanceof List){
for(Object object:((BasicDBList) value)){
attributes.addAll(processAttributes(key, object));
}
} else if(value instanceof DBObject) {
YAttribute attribute = getConverter().read(YAttribute.class, (DBObject) value);
attribute.setKey(key);
attributes.add(attribute);
}
return attributes;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
YAttribute ya = new YAttribute();
ya.setValue(separateAuthorForenamesList.get(s1)+" "+separateAuthorSurnamesList.get(s1));
ya.setKey(YConstants.AT_REFERENCE_PARSED_AUTHOR);
if(separateAuthorForenamesList.get(s1)!=null && separateAuthorForenamesList.get(s1).length()>0) ya.addAttribute(new YAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR_FORENAMES, separateAuthorForenamesList.get(s1).toString()));
if(separateAuthorSurnamesList.get(s1)!=null && separateAuthorSurnamesList.get(s1).length()>0) ya.addAttribute(new YAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR_SURNAME, separateAuthorSurnamesList.get(s1)));
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
if (surnameNode != null) surname = surnameNode.getValue();
YAttribute ya = new YAttribute();
ya.setKey(YConstants.AT_REFERENCE_PARSED_AUTHOR);
if(forename!=null && surname!=null && forename.length()>0 && surname.length()>0){
ya.setValue(forename+" "+surname);
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
yAuthor.setKey(YConstants.AT_REFERENCE_PARSED_AUTHOR);
内容来源于网络,如有侵权,请联系作者删除!