本文整理了Java中pl.edu.icm.model.bwmeta.utils.YModelToolbox.id()
方法的一些代码示例,展示了YModelToolbox.id()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YModelToolbox.id()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.utils.YModelToolbox
类名称:YModelToolbox
方法名:id
暂无
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
journal.addId(y.id(IdSchemaIds.EXT_SCHEME_ISSN, jmeta.getChildTextTrim("issn")));
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>journal-meta</code> metadata creating a journal element.
*
* @param jmeta the metadata element to extract journal info from
* @param parent parent element for the created element
* @return the created journal element
*/
private YElement processJournal(org.jdom.Element jmeta, YElement parent) {
org.jdom.Element jtitles = jmeta.getChild("journal-title-group");
List<org.jdom.Element> aids = jmeta.getChildren("journal-id");
YElement journal = y.element(EXT_LEVEL_JOURNAL_JOURNAL,
y.canonicalName(YLanguage.Undetermined, jtitles.getChildTextTrim("journal-title")),
parent).addName(y.name(YLanguage.Undetermined, jtitles.getChildTextTrim("abbrev-journal-title"), NM_ABBREVIATION)).addId(y.id(EXT_SCHEME_ISSN, jmeta.getChildTextTrim("issn")));
for (org.jdom.Element aid : aids) {
if ("eudml-id".equalsIgnoreCase(aid.getAttributeValue("journal-id-type"))) {
journal.addId(new YId(YConstants.EXT_SCHEMA_EUDML, aid.getText()));
} else {
journal.addId(new YId("bwmeta1.id-class." + aid.getAttributeValue("journal-id-type"), aid.getText()));
}
}
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
journal.addContributor(new YContributor(CR_PUBLISHER, true).addName(pname));
return journal;
}
内容来源于网络,如有侵权,请联系作者删除!