gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 19:32:40 27 4
gpt4 key购买 nike

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

YAncestor.setLevel介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services

System.out.println("In element "+element.getId()+". Second is number!");
if (changeElementLevel(repository, secVolume.getIdentity())) {
  secVolume.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_ISSUE);
  saveDocumentWithElement(repository, document, element);

代码示例来源:origin: pl.edu.icm.synat/synat-importer-direct

@Override
public YStructure build(PublicationMeta meta, List<YElement> ancestors) {
  if (isAlreadyBuilt(meta, ancestors)) {
    return null;
  }
  YStructure structure = new YStructure(getSupportedHierarchyId());
  YElement directAncestor = null;
  if (!ancestors.isEmpty()) {
    directAncestor = ancestors.get(ancestors.size() - 1);
    YStructure parentStructure = directAncestor.getStructure(getSupportedHierarchyId());
    structure.getAncestors().addAll(parentStructure.getAncestors());
    YAncestor ancestor = new YAncestor(structure.getHierarchy());
    ancestor.setLevel(getLevel(directAncestor));
    AncestorsManagement.copyDataToAncestor(directAncestor, ancestor);
    structure.getAncestors().add(ancestor);
  }
  structure.setCurrent(getCurrent(meta, directAncestor));
  return structure;
}

代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services

String ancLevel = structure.getCurrent().getLevel();
if (!ancLevel.equals(levelToFix)) {
  yAncestor.setLevel(ancLevel);
  System.out.println("Ancestor in "+element.getId() + " has level "+levelToFix+" but should have "+ancLevel);
  fixed = true;

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

if (journal != null) {
  YAncestor journalAncestor = new YAncestor();
  journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
  journalAncestor.setIdentity(journal.getId());
  journalAncestor.addName(journal.getDefaultName());
  yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
  yearAncestor.setIdentity(year.getId());
  yearAncestor.addName(year.getDefaultName());
if (volume != null) {
  YAncestor volumeAncestor = new YAncestor();
  volumeAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME);
  volumeAncestor.setIdentity(volume.getId());
  volumeAncestor.addName(volume.getDefaultName());

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

if (journal != null) {
  YAncestor journalAncestor = new YAncestor();
  journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
  journalAncestor.setIdentity(journal.getId());
  journalAncestor.addName(journal.getDefaultName());
  yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
  yearAncestor.setIdentity(year.getId());
  yearAncestor.addName(year.getDefaultName());

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

journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());

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

journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
  journalAncestor.setIdentity(journal.getId());
  journalAncestor.addName(journal.getDefaultName());
  yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
  yearAncestor.setIdentity(year.getId());
  yearAncestor.addName(year.getDefaultName());
if (volume != null) {
  YAncestor volumeAncestor = new YAncestor();
  volumeAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME);
  volumeAncestor.setIdentity(volume.getId());
  volumeAncestor.addName(volume.getDefaultName());
if (issue != null) {
  YAncestor issueAncestor = new YAncestor();
  issueAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_ISSUE);
  issueAncestor.setIdentity(issue.getId());
  issueAncestor.addName(issue.getDefaultName());

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