Example usage for org.springframework.boot.configurationmetadata ConfigurationMetadataProperty getShortDescription

List of usage examples for org.springframework.boot.configurationmetadata ConfigurationMetadataProperty getShortDescription

Introduction

In this page you can find the example usage for org.springframework.boot.configurationmetadata ConfigurationMetadataProperty getShortDescription.

Prototype

public String getShortDescription() 

Source Link

Document

A single-line, single-sentence description of this property, if any.

Usage

From source file:demo.config.diff.ConfigDiffSample.java

private static StringBuilder appendProperty(StringBuilder sb, ConfigurationMetadataProperty property,
        boolean add) {
    String symbol = add ? "[+]" : "[-]";
    sb.append(symbol).append(" ").append(property.getId());
    String shortDescription = property.getShortDescription();
    if (StringUtils.hasText(shortDescription)) {
        sb.append(" - ").append(shortDescription);
    }/*from  www. j a v a2 s.  com*/
    return sb;
}