作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了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
暂无
代码示例来源: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;
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.isPerson()方法的一些代码示例,展示了YContributor.isPerson()的具体用法
我是一名优秀的程序员,十分优秀!