pl.edu.icm.model.bwmeta.y.YElement.getDefaultName()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(9.6k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中pl.edu.icm.model.bwmeta.y.YElement.getDefaultName()方法的一些代码示例,展示了YElement.getDefaultName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YElement.getDefaultName()方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YElement
类名称:YElement
方法名:getDefaultName

YElement.getDefaultName介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

/**
 * accomplished
 */
private void parseTitle() {
  if(in_item.getDefaultName()!=null && in_item.getDefaultName().getText()!=null){
    paos_doc.add(new PredicateAndObject(RelConstants.RL_TITLE, in_item.getDefaultName().getText()));
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

/**
 * accomplished
 */
private void parseTitle() {
  if(in_item.getDefaultName()!=null && in_item.getDefaultName().getText()!=null){
    paos_doc.add(new PredicateAndObject(RelConstants.RL_TITLE, in_item.getDefaultName().getText()));
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core

public CitationCommonData convert(YElement yElem) {
  CitationCommonData citationData = new CitationCommonData();
  if (yElem != null) {
    citationData.setArticleTitle(prepareYNameText(yElem.getDefaultName()));
    citationData.setContribInfos(contribInfos(yElem));
    String position = CommonBuilderUtils.articlePosition(yElem);
    citationData.setPages(defaultString(filter(position, IDetailsFilter.InputType.PLAIN_TEXT), emptyValue));
  }
  return citationData;
}

代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core

protected List<LocalizedString> prepareTitles(YElement element, IFilteringContext filteringContext) {
  YName oneName = element.getDefaultName();
  List<LocalizedString> res = new ArrayList<LocalizedString>();
  for (YName name : element.getNames()) {
    if (name != oneName && YNameAndYDescriptionSorter.isMainOrAlternativeName(name.getType())) {
      String lang = languageDictionary.getShortDescription(name.getLanguage().getShortCode());
      res.add(new LocalizedString(lang, detailsFilter.filter(
          YRTHelper.toXmlFragment(name.getRichText()),
          InputType.RICH_TEXT, filteringContext)));
    }
  }
  return res;
}

代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core

String elementNameRT = CommonBuilderUtils.xmlFromRichText(element.getDefaultName());

代码示例来源:origin: pl.edu.icm.synat/synat-portal-core

YName yName = yElement.getDefaultName();
if (yName != null) {
  CharSequence name = new FilteredString(YModelUtils.yRichTextToString(yName.getRichText()));

代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core

final YElement parentElement = elementList.get(elementList.size() - 1);
String parentId = parentElement.getId();
String parentName = parentElement.getDefaultName().getText();
String parentLevel = parentElement.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL).getCurrent()
    .getLevel();

代码示例来源:origin: pl.edu.icm.yadda/yadda-content

final String defaultName = element.getDefaultName() == null ? null : element.getDefaultName().getText();
metadata.setTitle(defaultName);
final String defaultDescription = element.getOneDescription() == null ? null : element.getOneDescription()

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

@Override
public YStructure getStructure(YElement journal, String year, String volume, String number, List<YExportable> list) {
  YStructure struct = new YStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL);
  struct.addAncestor(new YAncestor(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL, journal.getId(), journal.getDefaultName()));
    struct.addAncestor(new YAncestor(el.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL).getCurrent().getLevel(), el.getId(), el.getDefaultName()));
      list.add(el);
    struct.addAncestor(new YAncestor(el.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL).getCurrent().getLevel(), el.getId(), el.getDefaultName()));
      list.add(el);
    struct.addAncestor(new YAncestor(el.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL).getCurrent().getLevel(), el.getId(), el.getDefaultName()));

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

/**
 * Creates an element in the hierarchy.
 *
 * @param level hierarchy for the element
 * @param level level for the element in the hierarchy
 * @param name name to use as the canonical name of the element
 * @param parent parent for the element in the hierarchy
 * @param id eudml id
 * @return the created element
 */
public YElement element(String hierarchy, String level, YName name, YElement parent, String id) {
  YStructure ps = parent==null ? null : parent.getStructure(hierarchy);
  YStructure struct = new YStructure(hierarchy).setCurrent(new YCurrent(level));
  List<String> issns = parent==null ? null : parent.getIds(IdSchemaIds.EXT_SCHEME_ISSN);
  String issn = (issns==null || issns.isEmpty()) ? null : issns.get(0);
  if (ps != null) {
    YAncestor ancestor = new YAncestor(ps.getCurrent().getLevel(), parent.getId()).addName(parent.getDefaultName());
    if (StringUtils.isNotEmpty(issn)) {
      ancestor.addId(new YId(IdSchemaIds.EXT_SCHEME_ISSN, issn));
    }
    struct.setAncestors(ps.getAncestors()).addAncestor(ancestor);
  }
  return new YElement(id).addName(name).addStructure(struct);
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

+ normalizeIssue(yYear.getDefaultName().getText()));
yYear.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_JOURNAL).setIdentity(yJournal.getId()).addId(new YId(YConstants.EXT_SCHEME_ISSN, yJournal.getId(YConstants.EXT_SCHEME_ISSN)));
    + normalizeIssue(yVolume.getDefaultName().getText()));
yVolume.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_JOURNAL).setIdentity(yJournal.getId()).addId(new YId(YConstants.EXT_SCHEME_ISSN, yJournal.getId(YConstants.EXT_SCHEME_ISSN)));
yVolume.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_YEAR).setIdentity(yYear.getId());
    + normalizeIssue(yIssue.getDefaultName().getText()));
yIssue.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_JOURNAL).setIdentity(yJournal.getId()).addId(new YId(YConstants.EXT_SCHEME_ISSN, yJournal.getId(YConstants.EXT_SCHEME_ISSN)));
yIssue.getStructure(YConstants.EXT_HIERARCHY_JOURNAL).getAncestor(YConstants.EXT_LEVEL_JOURNAL_YEAR).setIdentity(yYear.getId());

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

YAncestor ancestor = new YAncestor(ps.getCurrent().getLevel(), parent.getId()).addName(parent.getDefaultName());
if (yISSN != null) {
  ancestor.addId(yISSN);

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);
parentId=journal.getId();
yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
yearAncestor.setIdentity(year.getId());
yearAncestor.addName(year.getDefaultName());
structure.addAncestor(yearAncestor);
parentId=year.getId();
volumeAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME);
volumeAncestor.setIdentity(volume.getId());
volumeAncestor.addName(volume.getDefaultName());
structure.addAncestor(volumeAncestor);
parentId=volume.getId();

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);
parentId=journal.getId();
yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
yearAncestor.setIdentity(year.getId());
yearAncestor.addName(year.getDefaultName());
structure.addAncestor(yearAncestor);
parentId=year.getId();

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

journalId= getIdGenerator().getJournalId(null, issn, null,null,journal.getDefaultName().getText());
} catch (NullPointerException ex) {
  log.error("No id for journal issn : "+issn);

代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import

/**
 * Creates an element in the hierarchy specified by the <code>hierarchy</code> property.
 *
 * @param level level for the element in the hierarchy
 * @param name name to use as the canonical name of the element
 * @param parent parent for the element in the hierarchy
 * @return the created element
 */
public YElement element(String level, YName name, YElement parent) {
  YStructure ps = parent.getStructure(getHierarchy());
  YStructure struct = new YStructure(getHierarchy()).setCurrent(new YCurrent(level));
  if (ps != null)
    struct
      .setAncestors(ps.getAncestors())
      .addAncestor(
        new YAncestor(ps.getCurrent().getLevel(), parent.getId())
          .addName(parent.getDefaultName()));

  return new YElement(
      generateId(EXT_PREFIX_ELEMENT, parent, name))
    .addName(name)
    .addStructure(struct);
}

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

if(yElement.getDefaultName()!=null){
String name = yElement.getDefaultName().getText();
bibEntry.setField(BibEntry.FIELD_TITLE, name);

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

journalAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);
yearAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
yearAncestor.setIdentity(year.getId());
yearAncestor.addName(year.getDefaultName());
structure.addAncestor(yearAncestor);
volumeAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME);
volumeAncestor.setIdentity(volume.getId());
volumeAncestor.addName(volume.getDefaultName());
structure.addAncestor(volumeAncestor);
issueAncestor.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_ISSUE);
issueAncestor.setIdentity(issue.getId());
issueAncestor.addName(issue.getDefaultName());
structure.addAncestor(issueAncestor);

相关文章