gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 10:42:49 27 4
gpt4 key购买 nike

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

YModelUtils.getDefaultDescription介绍

[英]Utility function retrieving default description of NDA element
[中]检索NDA元素默认描述的实用函数

代码示例

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

@Override
public HtmlMetaHeaders prepareDescriptionMetadata(final YElement yElement) {
  HtmlMetaHeaders descriptionMetadata = new HtmlMetaHeaders();
  String description = YModelUtils.getDefaultDescription(yElement);
  if (description != null && description.length() > 0) {
    descriptionMetadata.addMetadataName("description", description);
  }
  return descriptionMetadata;
}

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

/**
 * Creates BriefElementData using YModel (YElement)
 *
 * @param yElement
 *            bwmeta YModel
 */
@Deprecated
public BriefElementData(YElement yElement) {
  this(yElement.getId(), YModelUtils.getDefaultName(yElement));
  String text = YModelUtils.getDefaultDescription(yElement);
  this.description = new HighlightedString(text, -1);
}

代码示例来源: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.synat/synat-business-services-api

private void populateBaseProperties(AbstractNDA<?> e, BriefElementData d) {
  d.setName(YModelUtils.getDefaultName(e));
  String text = YModelUtils.getDefaultDescription(e);
  d.setRenderableDescription(new HighlightedString(text, -1));
}

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

personData = new ContributorData(id, nameName, surname, personPortalRole, contributor.getRole());
}else {
  final String description = YModelUtils.getDefaultDescription(contributor);
  personData = new ContributorData(id, name, description, personPortalRole, contributor.getRole());

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

.withSharedComponentType(ElementType.BOOK)
.withTitle(resourceDisplayUtils.prepareName(yElement).toString())
.withDescription(YModelUtils.getDefaultDescription(yElement))
.withAuthors(contributorUtilsImpl.prepareContributors(yElement, ContributorRoles.CR_AUTHOR))
.withThumbnail(resourceDisplayUtils.prepareThumbnailUrl(yElement.getId()));

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

.withSharedComponentType(ElementType.ARTICLE)
.withTitle(resourceDisplayUtils.prepareName(yElement).toString())
.withDescription(YModelUtils.getDefaultDescription(yElement))
.withAuthors(contributorUtilsImpl.prepareContributors(yElement, ContributorRoles.CR_AUTHOR))
.withThumbnail(resourceDisplayUtils.prepareThumbnailUrl(yElement.getId()));

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