gpt4 book ai didi

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

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

本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.addId()方法的一些代码示例,展示了YAncestor.addId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAncestor.addId()方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YAncestor
类名称:YAncestor
方法名:addId

YAncestor.addId介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

public static void copyDataToAncestor(YElement ele, YAncestor anc) {
  for (YName nam : ele.getNames()) {
    anc.addName(nam);
  }
  for (YId id : ele.getIds()) {
    anc.addId(id);
  }
}

代码示例来源: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.bwmeta/bwmeta-2-foreign-transformers

al.add(new YAncestor(EXT_LEVEL_JOURNAL_JOURNAL, yJournal.getId()).addId(new YId(
    EXT_SCHEME_ISSN, yJournal.getIds(EXT_SCHEME_ISSN).get(0))));
yVolume.getStructure(EXT_HIERARCHY_JOURNAL).setAncestors(al);

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

al.add(new YAncestor(YConstants.EXT_LEVEL_JOURNAL_JOURNAL, yJournal.getId()).addId(new YId(YConstants.EXT_SCHEME_ISSN, yJournal.getId(YConstants.EXT_SCHEME_ISSN))));
yVolume.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).setAncestors(al);

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

/**
 * Creates an element in the hierarchy.
 *
 * @param level hierarchy for the element
 * @param level level for the element in the hierarchy
 * @param name name to use as the canonical name of the element
 * @param parent parent for the element in the hierarchy
 * @param id eudml id
 * @return the created element
 */
public YElement element(String hierarchy, String level, YName name, YElement parent, String id) {
  YStructure ps = parent==null ? null : parent.getStructure(hierarchy);
  YStructure struct = new YStructure(hierarchy).setCurrent(new YCurrent(level));
  List<String> issns = parent==null ? null : parent.getIds(IdSchemaIds.EXT_SCHEME_ISSN);
  String issn = (issns==null || issns.isEmpty()) ? null : issns.get(0);
  if (ps != null) {
    YAncestor ancestor = new YAncestor(ps.getCurrent().getLevel(), parent.getId()).addName(parent.getDefaultName());
    if (StringUtils.isNotEmpty(issn)) {
      ancestor.addId(new YId(IdSchemaIds.EXT_SCHEME_ISSN, issn));
    }
    struct.setAncestors(ps.getAncestors()).addAncestor(ancestor);
  }
  return new YElement(id).addName(name).addStructure(struct);
}

代码示例来源: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());

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

YAncestor ancestor = new YAncestor(ps.getCurrent().getLevel(), parent.getId()).addName(parent.getDefaultName());
if (yISSN != null) {
  ancestor.addId(yISSN);

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