Example usage for org.springframework.restdocs.templates TemplateFormat getId

List of usage examples for org.springframework.restdocs.templates TemplateFormat getId

Introduction

In this page you can find the example usage for org.springframework.restdocs.templates TemplateFormat getId.

Prototype

String getId();

Source Link

Document

Returns the id of this template format.

Usage

From source file:capital.scalable.restdocs.OperationAttributeHelper.java

public static String determineLineBreak(TemplateFormat templateFormat) {
    return templateFormat.getId().equals(TemplateFormats.asciidoctor().getId()) ? LINE_BREAK_ASCIIDOC
            : LINE_BREAK_MARKDOWN;/*from ww w.j a  v a  2s .co  m*/
}