gpt4 book ai didi

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

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

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

YContributor.setIdentity介绍

暂无

代码示例

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

yc.setIdentity(cim.get("personId"));

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

/**
 * Processes <code>journal-meta</code> metadata creating a publisher
 * element.
 * 
 * @param jmeta
 *            the metadata element to extract publisher info from
 * @return the created publisher element
 */
private YElement processPublisher(org.jdom.Element jmeta,List<YExportable> list, boolean addPublisher) {
  YName pname = y.canonicalName(YLanguage.Undetermined,
      JDOMHelper.getTextTrim(JDOMHelper.optDescendant(jmeta, "publisher", "publisher-name")));
  // TODO: add publisher-localization
  
  String id=getIdGenerator().getPublisherId(pname.getText());
  YInstitution inst=new YInstitution();
  String instId=IdPrefixes.EXT_PREFIX_INSTITUTION+idgen.generateIdSuffix((pname.getText().toLowerCase().replaceAll("\\s", " ").replaceAll(" +", " ").trim()));
  inst.setId(instId);
  inst.addName(pname);
  if (addPublisher) {
    list.add(inst);
  }
  return factory.element(EXT_LEVEL_JOURNAL_PUBLISHER, pname, ROOT ,id).addContributor(
      new YContributor(CR_PUBLISHER, true).addName(pname).setIdentity(instId));
}

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

addName(y.name(YLanguage.NoLinguisticContent, surname, YConstants.NM_SURNAME)).
addName(y.name(YLanguage.NoLinguisticContent, forenames, YConstants.NM_FORENAMES)).
setIdentity(new YId(YConstants.EXT_SCHEME_YADDA,kl.personid).getValue()).
setPerson(true);;
ycl.add(yct);

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