- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.<init>()
方法的一些代码示例,展示了YContributor.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YContributor.<init>()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YContributor
类名称:YContributor
方法名:<init>
暂无
代码示例来源:origin: pl.edu.icm.yadda/yadda-client-common
private YContributor createYContributor(Map<String, String> contributorInfoMap) {
Map<String, String> cim = contributorInfoMap;
YContributor yc = new YContributor();
代码示例来源:origin: pl.edu.icm.yadda/yadda-client-common
pdatalist.add(pdata);
YContributor yc = new YContributor();
yc.setContributorId(elem.getKey());
pdata.setContributor(yc);
代码示例来源:origin: pl.edu.icm.yadda/yadda-client-common
YContributor yc = new YContributor();
yc.setContributorId(elem.getKey());
pdata.setContributor(yc);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
YContributor c = new YContributor(ContributorRoles.CR_AUTHOR, false);
if (StringUtils.isNotBlank(firstnames)) {
nam += firstnames;
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
public ArticleBuilder setAuthors(Map<Integer, PersonInfoViewObject> personsMap) {
List<YContributor> contributors = new ArrayList<>();
for (Map.Entry<Integer, PersonInfoViewObject> entry : personsMap.entrySet()) {
PersonInfoViewObject personViewObject = entry.getValue();
YContributor author = new YContributor(YConstants.CR_AUTHOR, false);
author.setNames(extractPersonYNames(personViewObject));
final List<String> affiliationNames = personViewObject.getAffiliations();
Boolean isCorrespondingAuthor = personViewObject.getCorrespondingAuthor();
boolean addCorrespondenceAff = isCorrespondingAuthor != null ? isCorrespondingAuthor : false;
if (CollectionUtils.isNotEmpty(affiliationNames)) {
for (String affiliationName : affiliationNames) {
if (StringUtils.isNotBlank(affiliationName)) {
final String affiliationId = UUID.randomUUID().toString();
YAffiliation affiliation = new YAffiliation(affiliationId, affiliationName);
author.addAffiliationRef(affiliationId);
article.addAffiliation(affiliation);
if (addCorrespondenceAff) {
author.addAttribute(CommonAttributeTypes.AT_CORRESPONDENCE, affiliationName);
addCorrespondenceAff = false;
}
}
}
}
author.addAttribute(extractEmailAttributes(personViewObject));
contributors.add(author);
}
article.setContributors(contributors);
return this;
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
public void updateProvider(org.jdom.Element ameta, YElement element) {
List<org.jdom.Element> cs = extractProvider(ameta);
for (org.jdom.Element c : cs) {
String providerName = JDOMHelper.getChildTextTrim(c, "meta-value");
if (JDOMHelper.getChildTextTrim(c, "meta-name").equalsIgnoreCase("provider") && JDOMHelper.toNull(providerName) != null) {
element.addContributor(
new YContributor(ContributorRoles.CR_REPOSITORY, true).addName(y.canonicalName(YLanguage.NoLinguisticContent, providerName)));
}
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
private static void putAuthor(YElement element, String author, List<String> refs) {
author = author.replaceAll(" +\\.", ".");
YName name = new YName().setType(YConstants.NM_CANONICAL).setText(author);
YContributor contributor = new YContributor().setRole(YConstants.CR_AUTHOR).addName(name);
for (String ref : refs) {
if (ref.equals("*") || ref.equals("†")) {
// Currently nothing is done
} else {
String id = Enhancers.affiliationIdFromIndex(ref);
if (element.getAffiliation(id) != null) {
contributor.addAffiliationRef(id);
}
}
}
element.addContributor(contributor);
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
private static void putEditor(YElement element, String editor) {
YName name = new YName().setType(YConstants.NM_CANONICAL).setText(editor);
YContributor contributor = new YContributor().setRole(YConstants.CR_EDITOR).addName(name);
element.addContributor(contributor);
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* 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) {
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
// TODO: add publisher-loc
return y.element(EXT_LEVEL_JOURNAL_PUBLISHER, pname, ROOT).addContributor(new YContributor(CR_PUBLISHER, true).addName(pname));
}
代码示例来源: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(Element jmeta) {
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
// TODO: add publisher-loc
return y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_PUBLISHER, pname, ROOT).addContributor(new YContributor(ContributorRoles.CR_PUBLISHER, true).addName(pname));
}
代码示例来源: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.synat/synat-importer-direct
@Override
public void parseMetadata(YElement element, PublicationMeta pm, YLanguage defaultLanguage, List<YElement> ancestors) {
PublisherInfo pi = pm.getPublisherInfo();
if (pi != null) {
String nam = pi.getPublisherName() != null ? pi.getPublisherName().getvalue() : null;
if (StringUtils.isNotBlank(nam)) {
YContributor cont = new YContributor(ContributorRoles.CR_PUBLISHER, true);
cont.addName(new YName(nam));
PublisherLoc location = pi.getPublisherLoc();
if (location != null) {
if (StringUtils.isNotBlank(location.getvalue())) {
cont.addAttribute(CommonAttributeTypes.AT_ADDRESS_STREET, location.getvalue());
}
}
element.addContributor(cont);
}
}
}
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
String forenamesStr = (authorFields.length > 1) ? authorFields[1].trim() : null;
YContributor ycontributor = new YContributor(YConstants.AT_CONTRIBUTOR_PERSON, false);
boolean updated = false;
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
public void convertContributors(BibEntry source, YElement yElement) {
List<YContributor> yContributors = new ArrayList();
//authors
List<YContributor> yAuthors = parseBibEntryPersons(source.getAllFieldValues(BibEntry.FIELD_AUTHOR), YConstants.CR_AUTHOR);
//editors
List<YContributor> yEditors = parseBibEntryPersons(source.getAllFieldValues(BibEntry.FIELD_EDITOR), YConstants.CR_EDITOR);
yContributors.addAll(yAuthors);
yContributors.addAll(yEditors);
//publisher
if (source.getFirstFieldValue(BibEntry.FIELD_ADDRESS) != null
&& source.getFirstFieldValue(BibEntry.FIELD_PUBLISHER) != null) {
String publisher = source.getFirstFieldValue(BibEntry.FIELD_PUBLISHER);
String address = source.getFirstFieldValue(BibEntry.FIELD_ADDRESS);
YContributor yPublisher = new YContributor();
yPublisher.setRole(YConstants.CR_PUBLISHER);
yPublisher.addName(new YName().setType(YConstants.NM_CANONICAL).setText(publisher));
yPublisher.addAttribute(YConstants.AT_ADDRESS_CITY, address);
yContributors.add(yPublisher);
}
yElement.setContributors(yContributors);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
journal.addContributor(new YContributor(ContributorRoles.CR_PUBLISHER, true).addName(pname));
return journal;
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
public void updateElementPublisher(org.jdom.Element jmeta, YElement journal) {
YName pname = y.canonicalName(YLanguage.Undetermined,
JDOMHelper.getTextTrim(JDOMHelper.optDescendant(jmeta, "publisher", "publisher-name")));
String loc = JDOMHelper.getTextTrim(JDOMHelper.optDescendant(jmeta, "publisher", "publisher-loc"));
journal.addContributor(new YContributor(ContributorRoles.CR_PUBLISHER, true).addName(pname).addAttribute(NlmToYConstants.AT_PUBLISHER_LOCATION, loc));
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>journal-meta</code> metadata creating a journal element.
*
* @param jmeta the metadata element to extract journal info from
* @param parent parent element for the created element
* @return the created journal element
*/
private YElement processJournal(org.jdom.Element jmeta, YElement parent) {
org.jdom.Element jtitles = jmeta.getChild("journal-title-group");
List<org.jdom.Element> aids = jmeta.getChildren("journal-id");
YElement journal = y.element(EXT_LEVEL_JOURNAL_JOURNAL,
y.canonicalName(YLanguage.Undetermined, jtitles.getChildTextTrim("journal-title")),
parent).addName(y.name(YLanguage.Undetermined, jtitles.getChildTextTrim("abbrev-journal-title"), NM_ABBREVIATION)).addId(y.id(EXT_SCHEME_ISSN, jmeta.getChildTextTrim("issn")));
for (org.jdom.Element aid : aids) {
if ("eudml-id".equalsIgnoreCase(aid.getAttributeValue("journal-id-type"))) {
journal.addId(new YId(YConstants.EXT_SCHEMA_EUDML, aid.getText()));
} else {
journal.addId(new YId("bwmeta1.id-class." + aid.getAttributeValue("journal-id-type"), aid.getText()));
}
}
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
journal.addContributor(new YContributor(CR_PUBLISHER, true).addName(pname));
return journal;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
protected List<YContributor> parseBibEntryPersons(List<String> persons, String role) {
List<YContributor> yContributorList = new ArrayList<YContributor>();
for (String person : persons) {
YContributor yContributor = new YContributor();
yContributor.setPerson(true);
yContributor.setRole(role);
yContributor.addName(new YName().setType(YConstants.NM_CANONICAL).setText(person));
String[] split = person.split(", ");
if (split.length > 0) {
yContributor.addName(new YName().setType(YConstants.NM_SURNAME).setText(split[0]));
}
if (split.length > 1) {
yContributor.addName(new YName().setType(YConstants.NM_FORENAMES).setText(split[1]));
}
if (split.length > 2) {
yContributor.addName(new YName().setType(YConstants.NM_SUFFIX).setText(split[2]));
}
yContributorList.add(yContributor);
}
return yContributorList;
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
HashMap<String, String> nameAffID = new HashMap<>();
for (AuthorType aut : at.getAuthorsList().getAuthor()) {
YContributor ycont = new YContributor();
if (StringUtils.isNotBlank(aut.getForenames())) {
ycont.addName(new YName().setText(aut.getForenames()).setType(NameTypes.NM_FORENAMES));
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
private YContributor initYContributor(ResourceContributor input, String yRole) {
YContributor contributor = new YContributor();
contributor.addName(new YName(UserProfileUtils.createFullName(input.getForenames(), input.getSurname())).setType(NameTypes.NM_CANONICAL));
contributor.addName(new YName(input.getForenames()).setType(NameTypes.NM_FORENAMES));
contributor.addName(new YName(input.getSurname()).setType(NameTypes.NM_SURNAME));
contributor.setRole(yRole);
if (StringUtils.isNotBlank(input.getOrigApprovedId())) {
BwmetaContributorUtils.setContributorIdentity(contributor, input.getOrigApprovedId());
}
if (input.getContributorId() == null) {
throw new IllegalArgumentException();
}
BwmetaContributorUtils.setContributorId(contributor, input.getContributorId());
if(input.getAffiliationIds() != null){
for (String affId : input.getAffiliationIds()) {
if(StringUtils.isNotBlank(affId)){
contributor.addAffiliationRef(affId);
}
}
}
return contributor;
}
本文整理了Java中pl.edu.icm.yadda.service2.YaddaError类的一些代码示例,展示了YaddaError类的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中pl.edu.icm.yadda.common.YaddaException类的一些代码示例,展示了YaddaException类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中pl.edu.icm.ceon.commons.YaddaCollectionsUtils类的一些代码示例,展示了YaddaCollectionsUtils类的具体用法。这些代码示
本文整理了Java中pl.edu.icm.model.bwmeta.YElement类的一些代码示例,展示了YElement类的具体用法。这些代码示例主要来源于Github/Stackoverflow
本文整理了Java中pl.edu.icm.model.bwmeta.YContributor类的一些代码示例,展示了YContributor类的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentFile类的一些代码示例,展示了YContentFile类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YDescription类的一些代码示例,展示了YDescription类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YCurrent类的一些代码示例,展示了YCurrent类的具体用法。这些代码示例主要来源于Github/Stackoverfl
本文整理了Java中pl.edu.icm.model.bwmeta.y.YName类的一些代码示例,展示了YName类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Mav
本文整理了Java中pl.edu.icm.model.bwmeta.y.YStructure类的一些代码示例,展示了YStructure类的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中pl.edu.icm.model.bwmeta.y.YElement类的一些代码示例,展示了YElement类的具体用法。这些代码示例主要来源于Github/Stackoverfl
本文整理了Java中pl.edu.icm.model.bwmeta.y.YCategoryRef类的一些代码示例,展示了YCategoryRef类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentDirectory类的一些代码示例,展示了YContentDirectory类的具体用法。这些代码示例主要来源于
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentEntry类的一些代码示例,展示了YContentEntry类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中pl.edu.icm.model.bwmeta.y.YId类的一些代码示例,展示了YId类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平
本文整理了Java中pl.edu.icm.model.bwmeta.y.YRelation类的一些代码示例,展示了YRelation类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor类的一些代码示例,展示了YAncestor类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAffiliation类的一些代码示例,展示了YAffiliation类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YDate类的一些代码示例,展示了YDate类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Mav
本文整理了Java中pl.edu.icm.model.bwmeta.y.YLanguage类的一些代码示例,展示了YLanguage类的具体用法。这些代码示例主要来源于Github/Stackover
我是一名优秀的程序员,十分优秀!