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

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

Introduction

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

Prototype

public String getType() 

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;/* ww  w. j  a v  a2  s .c om*/
}