本文整理了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
暂无
代码示例来源: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()));
内容来源于网络,如有侵权,请联系作者删除!