- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YInstitution
类的一些代码示例,展示了YInstitution
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YInstitution
类的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YInstitution
类名称:YInstitution
暂无
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
protected List<Statements> processInstitution(YInstitution item) {
List<Statements> retL = new LinkedList<Statements>();
if(!item.getNames().isEmpty()){
Statements s = new Statements();
s.setSubject(RelConstants.NS_INSTITUTION+item.getId());
LinkedList<PredicateAndObject> pao = new LinkedList<PredicateAndObject>();
for(YName name : item.getNames()){
pao.add(new PredicateAndObject(RelConstants.RL_NAME,name.getText()));
}
s.setContinuations(pao);
retL.add(s);
}else;
return retL;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
private List<String> getAddresses(YInstitution inst, IFilteringContext fc) {
List<String> result = new ArrayList<String>();
for (YAttribute attr : inst.getAttributes(YConstants.AT_CONTACT_LOCATION)) {
result.add(detailsFilter.filter(attr.getValue(), InputType.RICH_TEXT, fc));
}
return result;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
@Override
protected Object buildElementViewPart(YExportable exp,
String[] elementTags, Map<String, Object> additionalParameters,
IFilteringContext filteringContext) {
YInstitution inst = (YInstitution) exp;
Map<String, Object> partModel = new HashMap<String, Object>();
partModel.put("extId", detailsFilter.filter(inst.getId(),
InputType.PLAIN_TEXT, filteringContext));
partModel.put("title", detailsFilter.filter(
YRTHelper.toXmlFragment(inst.getDefaultName().getRichText()),
InputType.RICH_TEXT, filteringContext));
partModel.put("titles", prepareTitles(inst.getNames(), inst.getDefaultName(), filteringContext));
partModel.put("addresses", getAddresses(inst, filteringContext));
partModel.put("contacts", CommonBuilderUtils.resolveContacts(inst, filteringContext, detailsFilter));
partModel.put("description", getDescription(inst, filteringContext, YConstants.DS_ABSTRACT));
partModel.put("fullAddress", getFullAddress(inst, filteringContext));
partModel.put("notes", getDescription(inst, filteringContext, YConstants.DS_NOTE));
if (pageTitleFactory!=null) {
String role = (String) additionalParameters.get(DetailsConstants.PARAM_ROLE);
String title = pageTitleFactory.getTitleForContributor(role, inst.getDefaultName().getText());
additionalParameters.put(DetailsConstants.VIEW_PARAM_PAGE_TITLE, title);
}
return partModel;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
protected IViewBuilder<CatalogInformationEnhancedObject<YExportable>> resolveInstitution(YInstitution e,
Map<String, Object> parameters) {
IViewBuilder<CatalogInformationEnhancedObject<YExportable>> result;
String role = (String) parameters.get(DetailsConstants.PARAM_ROLE);
result = institutionViewBuildersMap.get(role);
if (result == null) {
if (institutionViewBuilder == null) {
throw new SystemException(Modules.DETAILS, "View for institution"
+ e.getId() + " not found");
}
result = institutionViewBuilder;
}
return result;
}
代码示例来源: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/yaddaweb-lite-core
private Address getFullAddress(YInstitution inst, IFilteringContext fc) {
Address a = new Address();
a.setStreet(detailsFilter.filter(inst.getOneAttributeSimpleValue(
YConstants.AT_ADDRESS_STREET), InputType.PLAIN_TEXT, fc));
a.setState(detailsFilter.filter(inst.getOneAttributeSimpleValue(
YConstants.AT_ADDRESS_STATE), InputType.PLAIN_TEXT, fc));
a.setCity(detailsFilter.filter(inst.getOneAttributeSimpleValue(
YConstants.AT_ADDRESS_CITY), InputType.PLAIN_TEXT, fc));
a.setPostcode(detailsFilter.filter(inst.getOneAttributeSimpleValue(
YConstants.AT_ADDRESS_POSTCODE), InputType.PLAIN_TEXT, fc));
a.setPobox(detailsFilter.filter(inst.getOneAttributeSimpleValue(
YConstants.AT_ADDRESS_POBOX), InputType.PLAIN_TEXT, fc));
a.setCountry(detailsFilter.filter(inst.getOneAttributeSimpleValue(
YConstants.AT_ADDRESS_COUNTRY), InputType.PLAIN_TEXT, fc));
return a;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
protected List<LocalizedString> getDescription(YInstitution element,
IFilteringContext filteringContext, String type) {
List<LocalizedString> result = new ArrayList<LocalizedString>();
for (YDescription description : element.getDescriptions()) {
if (type.equals(description.getType())) {
result.add(new LocalizedString(languageDictionary.getShortDescription(
description.getLanguage().getShortCode()),
detailsFilter.filter(YRTHelper.toXmlFragment(description.getRichText()), InputType.RICH_TEXT,
filteringContext)));
}
}
return result;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
final YInstitution institution = dataSourcefactory.getYCatalogDataSource().getInstitutionById(element.getContributorId());
if (institution != null) {
final YDescription oneDescription = institution.getOneDescription(YConstants.DS_ABSTRACT);
if (notEmpty(oneDescription)) {
result.put("description", oneDescription.getText());
final YDescription noteDescription = institution.getOneDescription(YConstants.DS_NOTE);
if(notEmpty(noteDescription)){
result.put(YConstants.DS_NOTE, noteDescription.getText());
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
protected void fetchPersonality(final YContributor contributor, final ViewContributor viewContributor,
final IFilteringContext filteringContext) {
if (!contributor.isInstitution() || contributor.getIdentity() == null || contributor.getIdentity().isEmpty()) {
return;
}
try {
final YInstitution inst = dataSourcesFactory.getYCatalogDataSource()
.getInstitutionById(contributor.getIdentity());
if (inst != null) {
final String addr = inst.getOneAttributeSimpleValue(YConstants.AT_CONTACT_LOCATION);
viewContributor.setPublisherId(contributor.getIdentity());
viewContributor.getAddresses().add(detailsFilter.filter(addr, InputType.RICH_TEXT, filteringContext));
viewContributor.getContacts()
.addAll(CommonBuilderUtils.resolveContacts(inst, filteringContext, detailsFilter));
}
} catch (final Exception e) {
throw new SystemException(Modules.DETAILS, "Error fetching intitution: " + contributor.getIdentity(), e);
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
protected List<Statements> processInstitution(YInstitution item) {
List<Statements> retL = new LinkedList<Statements>();
if(!item.getNames().isEmpty()){
Statements s = new Statements();
s.setSubject(RelConstants.NS_INSTITUTION+item.getId());
LinkedList<PredicateAndObject> pao = new LinkedList<PredicateAndObject>();
for(YName name : item.getNames()){
pao.add(new PredicateAndObject(RelConstants.RL_NAME,name.getText()));
}
s.setContinuations(pao);
retL.add(s);
}else;
return retL;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
protected List<String> resolveAddresses(final YInstitution personality) {
final List<String> addresses = new LinkedList<String>();
List<YAttribute> yadresses = personality.getAttributes(YConstants.AT_CONTACT_LOCATION);
if (yadresses != null && !yadresses.isEmpty()) {
// get address from contact location
for (final YAttribute address : yadresses) {
addresses.add(detailsFilter.filter(address.getValue(), InputType.PLAIN_TEXT));
}
} else {
// get address from address attributes
final List<String> addressKeys = new ArrayList<String>();
addressKeys.add(YConstants.AT_ADDRESS_STREET);
addressKeys.add(YConstants.AT_ADDRESS_POSTCODE);
addressKeys.add(YConstants.AT_ADDRESS_CITY);
addressKeys.add(YConstants.AT_ADDRESS_POBOX);
addressKeys.add(YConstants.AT_ADDRESS_STATE);
addressKeys.add(YConstants.AT_ADDRESS_COUNTRY);
for (final String addressKey : addressKeys) {
yadresses = personality.getAttributes(addressKey);
if (yadresses != null) {
for (final YAttribute address : yadresses) {
addresses.add(detailsFilter.filter(address.getValue(), InputType.PLAIN_TEXT));
}
}
}
}
return addresses;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
protected List<Statements> processInstitution(YInstitution item) {
List<Statements> retL = new LinkedList<Statements>();
if(!item.getNames().isEmpty()){
Statements s = new Statements();
s.setSubject(RelConstants.NS_INSTITUTION+item.getId());
LinkedList<PredicateAndObject> pao = new LinkedList<PredicateAndObject>();
for(YName name : item.getNames()){
pao.add(new PredicateAndObject(RelConstants.RL_NAME,name.getText()));
}
s.setContinuations(pao);
retL.add(s);
}else;
return retL;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
protected List<ViewContact> resolveContacts(final YInstitution personality) {
final List<ViewContact> contacts = new LinkedList<ViewContact>();
final List<String> contactKeys = new ArrayList<String>();
contactKeys.add(YConstants.AT_CONTACT);
contactKeys.add(YConstants.AT_CONTACT_LOCATION);
contactKeys.add(YConstants.AT_CONTACT_URL);
contactKeys.add(YConstants.AT_CONTACT_EMAIL);
contactKeys.add(YConstants.AT_CONTACT_PHONE);
contactKeys.add(YConstants.AT_CONTACT_FAX);
for (final String contactKey : contactKeys) {
final List<YAttribute> ycontacts = personality.getAttributes(contactKey);
if (ycontacts != null) {
for (final YAttribute contact : ycontacts) {
final ViewContact viewContact = new ViewContact(contact.getKey(), detailsFilter.filter(
contact.getValue(), InputType.PLAIN_TEXT));
contacts.add(viewContact);
}
}
}
return contacts;
}
PL/1 中有许多不同的数字数据类型。我想知道什么时候有整数除法,什么地方没有。暂时,我写了一个小例子来说明(至少对我而言)PL/1 非常纠结于其中: DCL BIN15 FIXED BIN(15)
我是 Prolog 的新手。我有两个文件。其中之一是“names.pl”,另一个是“verbs.pl”。这两个文件都有事实。 “names.pl”有关于很多名词等的事实。事实的名字是关系。 这些文件的
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 3 年前。
我正在处理一个存储的 PL/SQL 函数,该函数根据给定的员工编号查找员工的家属姓名。到目前为止,我能够获得所需的输出,但在输出期间似乎有逗号问题。对于如何在输出过程中删除最后一个括号,我们将不胜
我观察到有两种执行 perl 程序的方法: perl test.pl 和 ./test.pl 这两者之间的确切区别是什么,哪一个值得推荐? 最佳答案 我将稍微改写其他答案所说的内容。 第一种情况将运行
我有一个表 TDATAMAP,其中包含大约 1000 万条记录,我想将所有记录提取到 PL/SQL 表类型变量中,将其与某些条件进行匹配,最后将所有必需的记录插入临时表中。请告诉我是否可以使用 PL/
一切都在标题中。 我在游标上循环并想要 EXIT WHEN curs%NOTFOUND 当没有更多行时,PostgreSQL 下的 %NOTFOUND 等同于什么? 编辑 或其他游标属性 %ISOPE
CREATE FUNCTION foo() RETURNS text LANGUAGE plperl AS $$ return 'foo'; $$; CREATE FU
我正在使用 ack.pl 工具来搜索文件中的字符串或 IP ack.pl 的官方网站是 - http://beyondgrep.com/documentation/ ack.pl CLI 示例(想在/
代码 #!/usr/bin/perl -I/root/Lib/ use Data::Dumper; print Dumper \@INC; 以上代码文件名为test.pl,权限为755。 当我使用/u
编写一个 PL/SQL 过程,将员工编号和薪水作为输入参数,并从经理为 'BLAKE' 且薪水在 1000 到 2000 之间的员工表中删除。 我写了下面的代码:- create or replac
我需要对更新行进行一些审核。 所以我有一个函数,它接收 some_table%ROWTYPE 类型的参数,其中包含要为该行保存的新值。 我还需要在历史表中保存一些有关更改的列值的信息。我正在考虑从 a
如果我在 PL/SQL 存储过程中使用许多 CLOB 变量来存储许多长字符串,是否存在性能问题? CLOB 的长度也是可变的吗? CLOB 代替使用 varchar2 和 long 是否有任何已知的限
我想使用 JavaScript/Apex 创建一个按钮,这样当我点击它时,就会“调用”一个 PL-SQL 过程。与常规 html 按钮类似,但 onClick="JavaScript function
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
今天的好时间,想问问有没有人知道在IBM Bluemix 云上安装PostgreSQL 扩展(准确的说是pl/r 和pl/python)的方法是什么?我在那里运行 compose-postgresql
是否可以像普通 Python 函数一样从其他 PL/Python block 调用 PL/Python 函数。 例如,我有一个函数f1: create or replace function f1()
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
我正在使用返回 REF CURSOR 的 Java 在 PL/SQL 中调用存储函数: FUNCTION getApprovers RETURN approvers_cursor IS app
通过终端修改Webmin密码时 Can't locate ./acl/md5-lib.pl at /usr/share/webmin/changepass.pl 使用 Ubuntu 20 最佳答案 U
我是一名优秀的程序员,十分优秀!