- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.utils.YModelToolbox.canonicalName()
方法的一些代码示例,展示了YModelToolbox.canonicalName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YModelToolbox.canonicalName()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.utils.YModelToolbox
类名称:YModelToolbox
方法名:canonicalName
暂无
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>article-meta</code> metadata creating a year element.
*
* @param ameta the metadata element to extract year info from
* @param parent parent element for the created element
* @return the created year element
*/
private YElement processYear(org.jdom.Element ameta, YElement parent) {
return y.element(EXT_LEVEL_JOURNAL_YEAR,
y.canonicalName(YLanguage.NoLinguisticContent, getTextTrim(optDescendant(ameta, "pub-date", "year"))),
parent);
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>article-meta</code> metadata creating a year element.
*
* @param ameta the metadata element to extract volume info from
* @param parent parent element for the created element
* @return the created volume element
*/
private YElement processVolume(org.jdom.Element ameta, YElement parent) {
return y.element(EXT_LEVEL_JOURNAL_VOLUME,
y.canonicalName(YLanguage.NoLinguisticContent, getTextTrim(optDescendant(ameta, "volume"))),
parent);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
/**
* Processes <code>article-meta</code> metadata creating a year element.
*
* @param ameta the metadata element to extract volume info from
* @param parent parent element for the created element
* @return the created volume element
*/
private YElement processVolume(Element ameta, YElement parent) {
return y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME,
y.canonicalName(YLanguage.NoLinguisticContent, getTextTrim(optDescendant(ameta, "volume"))),
parent);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
/**
* Processes <code>article-meta</code> metadata creating a year element.
*
* @param ameta the metadata element to extract year info from
* @param parent parent element for the created element
* @return the created year element
*/
private YElement processYear(Element ameta, YElement parent) {
return y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR,
y.canonicalName(YLanguage.NoLinguisticContent, getTextTrim(optDescendant(ameta, "pub-date", "year"))),
parent);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
/**
* Processes <code>article-meta</code> metadata creating an issue element.
*
* @param ameta the metadata element to extract issue info from
* @param parent parent element for the created element
* @return the created issue element
*/
private YElement processIssue(Element ameta, YElement parent) {
String name = getTextTrim(optDescendant(ameta,"issue"));
YElement issue = y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_ISSUE,
y.canonicalName(YLanguage.NoLinguisticContent, name),
parent);
List<Element> aids = ameta.getChildren("issue-id");
for (Element aid : aids) {
if ("eudml-id".equalsIgnoreCase(aid.getAttributeValue("pub-id-type"))) {
issue.addId(new YId(IdSchemaIds.EXT_SCHEMA_EUDML, aid.getText()));
}
}
return issue;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>article-meta</code> metadata creating an issue element.
*
* @param ameta the metadata element to extract issue info from
* @param parent parent element for the created element
* @return the created issue element
*/
private YElement processIssue(org.jdom.Element ameta, YElement parent) {
String name = getTextTrim(optDescendant(ameta, "issue"));
YElement issue = y.element(EXT_LEVEL_JOURNAL_ISSUE,
y.canonicalName(YLanguage.NoLinguisticContent, name),
parent);
List<org.jdom.Element> aids = ameta.getChildren("issue-id");
for (org.jdom.Element aid : aids) {
if ("eudml-id".equalsIgnoreCase(aid.getAttributeValue("pub-id-type"))) {
issue.addId(new YId(YConstants.EXT_SCHEMA_EUDML, aid.getText()));
} else {
issue.addId(new YId("bwmeta1.id-class." + aid.getAttributeValue("pub-id-type"), aid.getText()));
}
}
return issue;
}
代码示例来源: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.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
y.canonicalName(YLanguage.Undetermined, defaultTitle),parent);
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
代码示例来源: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.bwmeta/bwmeta-2-foreign-transformers
y.canonicalName(getYLang(atitle), textOfElement(atitle)),
parent).addDescription(y.description(getYLang(aabstract), textOfElement(aabstract), DescriptionTypes.DS_ABSTRACT)).addLanguage(getYLang(ameta));
YContributor cont= new YContributor(ctValue, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, (defName).trim()));
if (StringUtils.isNotBlank(surname)) {
cont.addName(y.name(YLanguage.NoLinguisticContent, surname, NM_SURNAME));
cont.addAttribute(CommonAttributeTypes.AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
} else {
YContributor cont= new YContributor(ContributorRoles.CR_OTHER, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, (defName).trim()));
if (StringUtils.isNotBlank(surname)) {
cont.addName(y.name(YLanguage.NoLinguisticContent, surname, NameTypes.NM_SURNAME));
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
y.canonicalName(getYLang(atitle), textOfElement(atitle)),
parent).addDescription(y.description(getYLang(aabstract), textOfElement(aabstract), DS_ABSTRACT)).addLanguage(getYLang(ameta));
if (contributorRoles.contains(ctValue)) {
article.addContributor(
new YContributor(ctValue, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, canonicalName)).addName(y.name(YLanguage.NoLinguisticContent, surname, NM_SURNAME)).addName(y.name(YLanguage.NoLinguisticContent, forenames, NM_FORENAMES)).addAttribute(AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
} else {
article.addContributor(
new YContributor(YConstants.CR_OTHER, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, canonicalName)).addName(y.name(YLanguage.NoLinguisticContent, surname, NM_SURNAME)).addName(y.name(YLanguage.NoLinguisticContent, forenames, NM_FORENAMES)).addAttribute(AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
本文整理了Java中pl.edu.icm.model.bwmeta.utils.YModelToolbox.canonicalName()方法的一些代码示例,展示了YModelToolbox.cano
本文整理了Java中pl.edu.icm.model.bwmeta.utils.YModelToolbox.retrieveFirstYElement()方法的一些代码示例,展示了YModelTool
本文整理了Java中pl.edu.icm.model.bwmeta.utils.YModelToolbox.id()方法的一些代码示例,展示了YModelToolbox.id()的具体用法。这些代码示
我是一名优秀的程序员,十分优秀!