Example usage for org.springframework.boot.configurationprocessor.metadata ItemMetadata getDescription

List of usage examples for org.springframework.boot.configurationprocessor.metadata ItemMetadata getDescription

Introduction

In this page you can find the example usage for org.springframework.boot.configurationprocessor.metadata ItemMetadata getDescription.

Prototype

public String getDescription() 

Source Link

Usage

From source file:com.keevosh.springframework.boot.netbeans.SpringBootConfigurationCompletionDocumentation.java

@Override
public String getText() {
    ItemMetadata configurationItem = item.getConfigurationItem();

    String deprecatedText = configurationItem.isDeprecated() ? ("<br/><br/><b>Deprecated</b>") : "";
    String defaultValueText = (null != configurationItem.getDefaultValue())
            ? ("<br/><i>Default Value:</i> " + String.valueOf(configurationItem.getDefaultValue()))
            : "";
    String descriptionText = (null != configurationItem.getDescription())
            ? ("<br/><br/>" + configurationItem.getDescription())
            : "";
    String text = "<b>" + configurationItem.getName() + "</b>" + "<br/><a>" + configurationItem.getType()
            + "</a>" + defaultValueText + deprecatedText + descriptionText;

    return text;//from w  ww. j  a  v a2 s .c o  m
}