public final class DynamicPathsDocumentExtension
extends io.github.swagger2markup.spi.PathsDocumentExtension
contentPath to append to Paths document.
Markup files are appended in the natural order of their names, for each category.
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.file.Path |
contentPath |
protected io.github.swagger2markup.Swagger2MarkupConverter.Context |
globalContext |
| Constructor and Description |
|---|
DynamicPathsDocumentExtension() |
DynamicPathsDocumentExtension(java.nio.file.Path contentPath,
io.github.swagger2markup.markup.builder.MarkupLanguage extensionMarkupLanguage)
Instantiate extension with the default extension id.
|
DynamicPathsDocumentExtension(java.lang.String extensionId,
java.nio.file.Path contentPath,
io.github.swagger2markup.markup.builder.MarkupLanguage extensionMarkupLanguage)
Instantiate extension
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(io.github.swagger2markup.spi.PathsDocumentExtension.Context context) |
void |
init(io.github.swagger2markup.Swagger2MarkupConverter.Context globalContext) |
protected java.nio.file.Path contentPath
protected io.github.swagger2markup.Swagger2MarkupConverter.Context globalContext
public DynamicPathsDocumentExtension(java.nio.file.Path contentPath,
io.github.swagger2markup.markup.builder.MarkupLanguage extensionMarkupLanguage)
contentPath - the base Path where the content is storedextensionMarkupLanguage - the MarkupLanguage of the extension contentpublic DynamicPathsDocumentExtension(java.lang.String extensionId,
java.nio.file.Path contentPath,
io.github.swagger2markup.markup.builder.MarkupLanguage extensionMarkupLanguage)
extensionId - the unique ID of the extensioncontentPath - the base Path where the content is storedextensionMarkupLanguage - the MarkupLanguage of the extension contentpublic DynamicPathsDocumentExtension()
public void init(io.github.swagger2markup.Swagger2MarkupConverter.Context globalContext)
init in class io.github.swagger2markup.spi.PathsDocumentExtensionpublic void apply(io.github.swagger2markup.spi.PathsDocumentExtension.Context context)
apply in class io.github.swagger2markup.spi.PathsDocumentExtension