gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 07:24:40 29 4
gpt4 key购买 nike

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

YContributor.isPerson介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.yadda/yadda-client-common-api

private CONTRIBUTOR_TYPE detectContributorType(final YContributor cont) {
  CONTRIBUTOR_TYPE type = CONTRIBUTOR_TYPE.UNKNOWN;
  if (cont.isPerson()) {
    type = CONTRIBUTOR_TYPE.PERSON;
  } else if (cont.isInstitution()) {
    type = CONTRIBUTOR_TYPE.INSTITUTION;
  }
  return type;
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-client-common-api

private static CONTRIBUTOR_TYPE detectContributorType(final YContributor cont) {
  CONTRIBUTOR_TYPE type = CONTRIBUTOR_TYPE.UNKNOWN;
  if (cont.isPerson()) {
    type = CONTRIBUTOR_TYPE.PERSON;
  } else if (cont.isInstitution()) {
    type = CONTRIBUTOR_TYPE.INSTITUTION;
  }
  return type;
}

代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core

public List<PersonInfo> getPersonsInfo(AbstractElementInfo<?> abstractElementInfo, String personRole) {
  List<PersonInfo> persons = new ArrayList<>();
  for (YContributor contributor : abstractElementInfo.getContributors()) {
    if (personRole.equals(contributor.getRole()) && contributor.isPerson()) {
      Set<String> affiliationNames = affiliationExtractor.getAffiliationNamesFor(contributor,
          abstractElementInfo);
      PersonInfo personInfo = transformToPersonInfo(contributor, affiliationNames);
      persons.add(personInfo);
    }
  }
  return persons;
}

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

if (contributor.isPerson()) {
  String contributorName = YModelUtils.getDefaultContributor(contributor);
  StringBuilder affiliationList = new StringBuilder();

代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import

private static void appendContributor(YContributor c, StringBuilder au) {
  if (!c.isPerson()) { //not person
    return;
  }
  if (!c.getRole().equals(YConstants.CR_AUTHOR) && !c.getRole().equals("person")) { //not an author
    return;
  }
        
  List<YName> names = c.getNames();
  List<YName> forenames = filterNamesOfType(names, YConstants.NM_FORENAMES);
  List<YName> surenames = filterNamesOfType(names, YConstants.NM_SURNAME);
  String bestForenames = YElementsParsingToolbox.selectBestName(forenames);
  String bestSurename = YElementsParsingToolbox.selectBestName(surenames);
  
  if (bestSurename == null && bestForenames == null) {
    return;
  }
      
  au.append(bestSurename==null?"-":bestSurename);
  au.append(YElementToZentralBlattConverter.SUGGESTED_MULTIVALUE_FIELD_SEPARATOR2);
  au.append(bestForenames==null?"-":bestForenames);
  au.append(YElementToZentralBlattConverter.SUGGESTED_MULTIVALUE_FIELD_SEPARATOR);
}

代码示例来源:origin: pl.edu.icm.synat/synat-portal-core

id = identity;
} else {
  id = (contributor.isPerson()) ? BwmetaContributorUtils.buildContributorId(documentId, contributor) : null;
  personPortalRole = PersonPortalRole.PERSON;

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