pl.edu.icm.synat.logic.model.utils.YModelUtils.yRichTextToString()方法的使用及代码示例

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

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

YModelUtils.yRichTextToString介绍

暂无

代码示例

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

private FilteredString buildFilteredString(YRichText sourceText) {
  String source = YModelUtils.yRichTextToString(sourceText).trim();
  if (!isHtmlText(sourceText)) {
    source = StringEscapeUtils.unescapeHtml4(source);
  }
  return new FilteredString(source.trim());
}

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

@SuppressWarnings("deprecation")
private CharSequence prepareName(YElement yElement, YLanguage language) {
  YName yName = YModelUtils.getDefaultName(yElement, language);
  if (yName != null) {
    return new FilteredString(YModelUtils.yRichTextToString(yName.getRichText()));
  }
  return "";
}

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

YName yName = yElement.getDefaultName();
if (yName != null) {
  CharSequence name = new FilteredString(YModelUtils.yRichTextToString(yName.getRichText()));
  final PublicationNameData titleList = new PublicationNameData(name);
  names.add(new LocalizedData<PublicationNameData>(makeLanguageData(yName.getLanguage(), locale), titleList));

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

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

相关文章