- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.setIdentity()
方法的一些代码示例,展示了YAncestor.setIdentity()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAncestor.setIdentity()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YAncestor
类名称:YAncestor
方法名:setIdentity
暂无
代码示例来源:origin: pl.edu.icm.synat/synat-importer-direct
public static void copyDataToAncestor(YElement ele, YAncestor anc) {
anc.getNames().addAll(ele.getNames());
anc.getIds().addAll(ele.getIds());
anc.getDates().addAll(ele.getDates());
anc.setIdentity(ele.getId());
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
public boolean updateJournalId(ZentralBlattSeFieldParser.SeFieldData seData, YAncestor ancestor) {
// ZBL-ID:
if (seData.jrnlId != null && seData.jrnlId.length() > 0) {
YId zblId = new YId(YConstants.EXT_SCHEME_ZBL, seData.jrnlId);
yJournal.addId(zblId);
updateYElementIdBasingOnZblId(yJournal, "jrnl:");
ancestor.setIdentity(yJournal.getId());
ancestor.addId(zblId);
return true;
}
return false;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
private void updateIssue(ZentralBlattSoFieldParser.SoFieldData soData) {
if (soData.issue != null && soData.issue.length() > 0) {
YAncestor ancestor = new YAncestor(YConstants.EXT_LEVEL_JOURNAL_ISSUE); // TODO
// UID?
YName issueName = new YName(soData.issue);
yIssue.addName(issueName);
ancestor.setIdentity(yIssue.getId());
ancestor.addName(issueName);
yArticle.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).addAncestor(ancestor);
}
}
代码示例来源:origin: pl.edu.icm.synat/synat-process-common
@Override
public boolean modify(YElement element) {
if (element != null) {
YStructure structure = element.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL);
if (structure != null) {
YAncestor journal = structure.getAncestor(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
if (journal != null && StringUtils.isBlank(journal.getIdentity()) && journal.getOneName() != null ) {
final String name = journal.getOneName().getText();
final String journalId = resolveJournalId(name);
if (journalId != null) {
journal.setIdentity(journalId);
Map<String,String> parameters = buildParameters(structure);
Map<String,String> structureIds = indexSearchUtil.resolveStructureIds(journalId, parameters);
if (MapUtils.isNotEmpty(structureIds)) {
for (Map.Entry<String, String> entry : structureIds.entrySet()) {
structure.getAncestor(entry.getKey()).setIdentity(entry.getValue());
}
}
return true;
}
}
}
}
return false;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
private void updateYear(ZentralBlattSoFieldParser.SoFieldData soData, String pyYear) {
YAncestor ancestor = new YAncestor(YConstants.EXT_LEVEL_JOURNAL_YEAR); // TODO
// UID?
// soData.year is preferred
if (soData.year != null && soData.year.length() > 0) {
if (pyYear != null && pyYear.length() > 0 && !soData.year.equals(pyYear)) {
log.warn("soData.year:[{}] != year:[{}]", soData.year, pyYear);
}
YName yearName = new YName(soData.year);
yYear.addName(yearName);
ancestor.setIdentity(yYear.getId());
ancestor.addName(yearName);
yVolume.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).addAncestor(ancestor);
yIssue.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).addAncestor(ancestor);
yArticle.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).addAncestor(ancestor);
}
// pyYear is assumed to refer just to publication - not to journal
// itself
/*
* else if (pyYear != null && pyYear.length() > 0) { YName yearName =
* new YName(pyYear) ancestor.addName(yearName);
* yYear.addName(yearName); structure.addAncestor(ancestor); }
*/
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
private void updateVolume(ZentralBlattSoFieldParser.SoFieldData soData) {
if (soData.volume != null && soData.volume.length() > 0) {
YAncestor ancestor = new YAncestor(YConstants.EXT_LEVEL_JOURNAL_VOLUME); // TODO
// UID?
YName volumeName = new YName(soData.volume);
yVolume.addName(volumeName);
ancestor.setIdentity(yVolume.getId());
ancestor.addName(volumeName);
yIssue.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).addAncestor(ancestor);
yArticle.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).addAncestor(ancestor);
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
yYear.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_JOURNAL).setIdentity(yJournal.getId()).addId(new YId(YConstants.EXT_SCHEME_ISSN, yJournal.getId(YConstants.EXT_SCHEME_ISSN)));
yVolume.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_JOURNAL).setIdentity(yJournal.getId()).addId(new YId(YConstants.EXT_SCHEME_ISSN, yJournal.getId(YConstants.EXT_SCHEME_ISSN)));
yVolume.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_YEAR).setIdentity(yYear.getId());
yIssue.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_JOURNAL).setIdentity(yJournal.getId()).addId(new YId(YConstants.EXT_SCHEME_ISSN, yJournal.getId(YConstants.EXT_SCHEME_ISSN)));
yIssue.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_YEAR).setIdentity(yYear.getId());
yIssue.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_VOLUME).setIdentity(yVolume.getId());
yArticle.setId(id);
yArticle.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_JOURNAL).setIdentity(yJournal.getId()).addId(new YId(YConstants.EXT_SCHEME_ISSN, yJournal.getId(YConstants.EXT_SCHEME_ISSN)));
yArticle.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_YEAR).setIdentity(yYear.getId());
yArticle.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_VOLUME).setIdentity(yVolume.getId());
yArticle.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_ISSUE).setIdentity(yIssue.getId());
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
ancestor.setIdentity(yJournal.getId());
yYear.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).addAncestor(ancestor);
yVolume.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).addAncestor(ancestor);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
YAncestor journalAncestor = new YAncestor();
journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);
YAncestor yearAncestor = new YAncestor();
yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
yearAncestor.setIdentity(year.getId());
yearAncestor.addName(year.getDefaultName());
structure.addAncestor(yearAncestor);
YAncestor volumeAncestor = new YAncestor();
volumeAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME);
volumeAncestor.setIdentity(volume.getId());
volumeAncestor.addName(volume.getDefaultName());
structure.addAncestor(volumeAncestor);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
YAncestor journalAncestor = new YAncestor();
journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);
YAncestor yearAncestor = new YAncestor();
yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
yearAncestor.setIdentity(year.getId());
yearAncestor.addName(year.getDefaultName());
structure.addAncestor(yearAncestor);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
YAncestor journalAncestor = new YAncestor();
journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
YAncestor journalAncestor = new YAncestor();
journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);
YAncestor yearAncestor = new YAncestor();
yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
yearAncestor.setIdentity(year.getId());
yearAncestor.addName(year.getDefaultName());
structure.addAncestor(yearAncestor);
YAncestor volumeAncestor = new YAncestor();
volumeAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME);
volumeAncestor.setIdentity(volume.getId());
volumeAncestor.addName(volume.getDefaultName());
structure.addAncestor(volumeAncestor);
YAncestor issueAncestor = new YAncestor();
issueAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_ISSUE);
issueAncestor.setIdentity(issue.getId());
issueAncestor.addName(issue.getDefaultName());
structure.addAncestor(issueAncestor);
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.setLevel()方法的一些代码示例,展示了YAncestor.setLevel()的具体用法。这些代码示
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getPosition()方法的一些代码示例,展示了YAncestor.getPosition()的具体用法
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getDates()方法的一些代码示例,展示了YAncestor.getDates()的具体用法。这些代码示
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getIds()方法的一些代码示例,展示了YAncestor.getIds()的具体用法。这些代码示例主要来
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.addId()方法的一些代码示例,展示了YAncestor.addId()的具体用法。这些代码示例主要来源于
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.setIdentity()方法的一些代码示例,展示了YAncestor.setIdentity()的具体用法
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getNames()方法的一些代码示例,展示了YAncestor.getNames()的具体用法。这些代码示
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getIdentity()方法的一些代码示例,展示了YAncestor.getIdentity()的具体用法
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.()方法的一些代码示例,展示了YAncestor.()的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getLevel()方法的一些代码示例,展示了YAncestor.getLevel()的具体用法。这些代码示
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getOneName()方法的一些代码示例,展示了YAncestor.getOneName()的具体用法。这
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.addName()方法的一些代码示例,展示了YAncestor.addName()的具体用法。这些代码示例主
我是一名优秀的程序员,十分优秀!