swagger2markup-asciidoc/src/main/java/io/github/swagger2markup/adoc/AsciidocConverter.java
/**
     * Converts an {@link ContentNode} using the specified transform along
     * with additional options. If a transform is not specified, implementations
     * typically derive one from the {@link ContentNode#getNodeName()} property.
     *
     * <p>Implementations are free to decide how to carry out the conversion. In
     * the case of the built-in converters, the tranform value is used to
     * dispatch to a handler method. The TemplateConverter uses the value of
     * the transform to select a template to render.
     *
     * @param node      The concrete instance of FlowNode to convert
     * @param transform An optional String transform that hints at which transformation
     *                  should be applied to this node. If a transform is not specified,
     *                  the transform is typically derived from the value of the
     *                  node's node_name property. (optional, default: null)
     * @param opts      An optional map of options that provide additional hints about
     *                  how to convert the node. (optional, default: empty map)
     * @return the converted result
     */
Converts an  ContentNode using the specified transform along
with additional options. If a transform is not specified, implementations
typically derive one from the  ContentNode#getNodeName() property.

Implementations are free to decide how to carry out the conversion. In
the case of the built-in converters, the tranform value is used to
dispatch to a handler method. The TemplateConverter uses the value of
the transform to select a template to render.

@param node      The concrete instance of FlowNode to convert
@param transform An optional String transform that hints at which transformation
should be applied to this node. If a transform is not specified,
the transform is typically derived from the value of the
node's node_name property. (optional, default: null)
@param opts      An optional map of options that provide additional hints about
how to convert the node. (optional, default: empty map)
@return the converted result
Converts an ContentNode using the specified transform along with additional options . If a transform is not specified implementations typically derive one from the ContentNode#getNodeName () property . Implementations are free to decide how to carry out the conversion . In the case of the built - in converters the tranform value is used to dispatch to a handler method . The TemplateConverter uses the value of the transform to select a template to render . @param node The concrete instance of FlowNode to convert @param transform An optional String transform that hints at which transformation should be applied to this node . If a transform is not specified the transform is typically derived from the value of the node ' s node_name property . ( optional default : null ) @param opts An optional map of options that provide additional hints about how to convert the node . ( optional default : empty map ) @return the converted result
@Override
    public String convert(ContentNode node, String transform, Map<Object, Object> opts) {
        if (null == transform) {
            transform = node.getNodeName();
        }
        switch (transform) {
            case "inline_quoted":
                return convertInlineQuoted((PhraseNode) node);
            case "paragraph":
                return convertParagraph((StructuralNode) node);
            case "inline_anchor":
                return convertInlineAnchor((PhraseNode) node);
            case "section":
                return convertSection((Section) node);
            case "listing":
                return convertListing((Block) node);
            case "literal":
                return convertLiteral((StructuralNode) node);
            case "ulist":
                return convertUList((List) node);
            case "olist":
                return convertOList((List) node);
            case "dlist":
                return convertDescriptionList((DescriptionList) node);
            case "admonition":
                return convertAdmonition((Block) node);
            case "colist":
                return convertCoList((List) node);
            case "embedded":
            case "document":
                return convertEmbedded((Document) node);
            case "example":
                return convertExample((Block) node);
            case "floating_title":
                return convertFloatingTitle((StructuralNode) node);
            case "image":
                return convertImage((StructuralNode) node);
            case "inline_break":
                return convertInlineBreak(node);
            case "inline_button":
                return convertInlineButton(node);
            case "inline_callout":
                return convertInlineCallout(node);
            case "inline_footnote":
                return convertInlineFootnote(node);
            case "inline_image":
                return convertInlineImage((PhraseNode) node);
            case "inline_indexterm":
                return convertInlineIndexTerm(node);
            case "inline_kbd":
                return convertInlineKbd(node);
            case "inline_menu":
                return convertInlineMenu(node);
            case "open":
                return convertOpen((StructuralNode) node);
            case "page_break":
                return convertPageBreak(node);
            case "preamble":
                return convertPreamble((StructuralNode) node);
            case "quote":
                return convertQuote((StructuralNode) node);
            case "sidebar":
                return convertSidebar((StructuralNode) node);
            case "stem":
                return convertStem(node);
            case "table":
                return convertTable((Table) node);
            case "thematic_break":
                return convertThematicBreak(node);
            case "verse":
                return convertVerse((StructuralNode) node);
            case "video":
                return convertVideo(node);
            case "toc":
                return convertToc(node);
            case "pass":
                return convertPass(node);
            case "audio":
                return convertAudio(node);
            case "list":
                return convertList((List) node);
            case "list_item":
                return convertListItem((ListItem) node);
            default:
                logger.debug("Don't know how to convert transform: [" + transform + "] Node: " + node);
                return null;
        }
    }
@ Override public String convert ( ContentNode node , String transform , Map < Object , Object > opts ) { if ( null == transform ) { transform = node . getNodeName ( ) ; } switch ( transform ) { case "inline_quoted" : return convertInlineQuoted ( ( PhraseNode ) node ) ; case "paragraph" : return convertParagraph ( ( StructuralNode ) node ) ; case "inline_anchor" : return convertInlineAnchor ( ( PhraseNode ) node ) ; case "section" : return convertSection ( ( Section ) node ) ; case "listing" : return convertListing ( ( Block ) node ) ; case "literal" : return convertLiteral ( ( StructuralNode ) node ) ; case "ulist" : return convertUList ( ( List ) node ) ; case "olist" : return convertOList ( ( List ) node ) ; case "dlist" : return convertDescriptionList ( ( DescriptionList ) node ) ; case "admonition" : return convertAdmonition ( ( Block ) node ) ; case "colist" : return convertCoList ( ( List ) node ) ; case "embedded" : case "document" : return convertEmbedded ( ( Document ) node ) ; case "example" : return convertExample ( ( Block ) node ) ; case "floating_title" : return convertFloatingTitle ( ( StructuralNode ) node ) ; case "image" : return convertImage ( ( StructuralNode ) node ) ; case "inline_break" : return convertInlineBreak ( node ) ; case "inline_button" : return convertInlineButton ( node ) ; case "inline_callout" : return convertInlineCallout ( node ) ; case "inline_footnote" : return convertInlineFootnote ( node ) ; case "inline_image" : return convertInlineImage ( ( PhraseNode ) node ) ; case "inline_indexterm" : return convertInlineIndexTerm ( node ) ; case "inline_kbd" : return convertInlineKbd ( node ) ; case "inline_menu" : return convertInlineMenu ( node ) ; case "open" : return convertOpen ( ( StructuralNode ) node ) ; case "page_break" : return convertPageBreak ( node ) ; case "preamble" : return convertPreamble ( ( StructuralNode ) node ) ; case "quote" : return convertQuote ( ( StructuralNode ) node ) ; case "sidebar" : return convertSidebar ( ( StructuralNode ) node ) ; case "stem" : return convertStem ( node ) ; case "table" : return convertTable ( ( Table ) node ) ; case "thematic_break" : return convertThematicBreak ( node ) ; case "verse" : return convertVerse ( ( StructuralNode ) node ) ; case "video" : return convertVideo ( node ) ; case "toc" : return convertToc ( node ) ; case "pass" : return convertPass ( node ) ; case "audio" : return convertAudio ( node ) ; case "list" : return convertList ( ( List ) node ) ; case "list_item" : return convertListItem ( ( ListItem ) node ) ; default : logger . debug ( "Don't know how to convert transform: [" + transform + "] Node: " + node ) ; return null ; } }
Converts an {@link ContentNode} using the specified transform along
 with additional options.
Converts an { @link ContentNode } using the specified transform along with additional options .
// didn't exist on html converter