本文整理了Java中pl.edu.icm.model.bwmeta.y.YInstitution.getNames()
方法的一些代码示例,展示了YInstitution.getNames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YInstitution.getNames()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YInstitution
类名称:YInstitution
方法名:getNames
暂无
代码示例来源: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/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/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
@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;
}
内容来源于网络,如有侵权,请联系作者删除!