DboBeanData.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:convertigo-engine 作者:
public String getHtmlDescription() {
    if (htmlDescription == null) {
        BeanDescriptor beanDescriptor = beanInfo.getBeanDescriptor();
        String beanDescription = beanDescriptor.getShortDescription();

        String[] beanDescriptions = beanDescription.split("\\|");

        String beanShortDescription = beanDescriptions.length >= 1 ? beanDescriptions[0] : "n/a";
        String beanLongDescription = beanDescriptions.length >= 2 ? beanDescriptions[1] : "n/a";
        beanShortDescription = BeansUtils.cleanDescription(beanShortDescription, true);
        beanLongDescription = BeansUtils.cleanDescription(beanLongDescription, true);

        htmlDescription = "<p>" +
                "<font size=\"4.5\"><u><b>" + getDisplayName() + "</b></u></font>" + "<br><br>" +
                "<i>" + beanShortDescription + "</i>" + "<br><br>" + beanLongDescription +
           "</p>";
    }

    return htmlDescription;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号