gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 14:02:40 26 4
gpt4 key购买 nike

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

YDescription.getRichText介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api

public static String getDefaultDescriptionString(AbstractNDA<?> element, YLanguage language) {
  final YDescription defaultDescription = getDefaultDescription(element, language);
  if (defaultDescription != null) {
    return yRichTextToString(defaultDescription.getRichText());
  } else {
    return "";
  }
}

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

/**
 * Method for preparation of Abstracts list, and additional flag if
 * generated abstract was shortened for displaying, with specified language
 * 
 * @param yElement
 *            Ymodel element
 * @param language
 *            language to display
 * @return List of Abstracts in yElement
 */
private FilteredString prepareAbstract(YElement yElement, final YLanguage language) {
  final YDescription defaultDescription = YModelUtils.getDefaultDescription(yElement, language);
  if (defaultDescription == null) {
    return null;
  }
  YRichText descriptionText = defaultDescription.getRichText();
  return buildFilteredString(descriptionText);
}

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

private static YElement correctDescriptionsByScRemoval(YElement yelement) {
  for(YDescription yd : yelement.getDescriptions()){
    removeGivenTag("sc", yd.getRichText().toParts());
  }
  return yelement;
}

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

private static YElement correctDescriptionsByScRemoval(YElement yelement) {
  for(YDescription yd : yelement.getDescriptions()){
    removeGivenTag("sc", yd.getRichText().toParts());
  }
  return yelement;
}

代码示例来源: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

protected List<LocalizedString> getDescription(YElement 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.repowebeditor/repository-web-editor-core

private LocalizedString convertIntoLocalizedStringFrom(YDescription description){
  return new LocalizedString(getLangCodeFor(description.getLanguage()), YRTHelper.toXmlFragmentWithoutNamespaces(description.getRichText()));
}

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

YRichText yRichText = description.getRichText();
if(isSimple(yRichText)){
  page.setContent(description.getText());

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

result.addDescription(new LanguageData(description.getLanguage()), YModelUtils.yRichTextToString(description.getRichText()));

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com