gpt4 book ai didi

pl.edu.icm.model.bwmeta.y.YAncestor.setIdentity()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 20:34:40 26 4
gpt4 key购买 nike

本文整理了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

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);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com