Class FileWriterPostProcessor
java.lang.Object
com.github.chhorz.openapi.common.spi.FileWriterPostProcessor
- All Implemented Interfaces:
OpenAPIPostProcessor
A custom
OpenAPIPostProcessor
that writes the OpenAPI domain object to a local file.- Author:
- chhorz
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method must be overridden for the actual post-processing call.int
Returns the value for the order in which the post processor should be executed.Defines the input types of the current post processor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.chhorz.openapi.common.spi.OpenAPIPostProcessor
execute, execute
-
Method Details
-
execute
This method must be overridden for the actual post-processing call. Otherwise, the default implementation will throw anUnsupportedOperationException
.- Specified by:
execute
in interfaceOpenAPIPostProcessor
- Parameters:
openApi
- the parsedOpenAPI
for which the post-processing should be done
-
getPostProcessorOrder
public int getPostProcessorOrder()Returns the value for the order in which the post processor should be executed. Possible values are betweenInteger.MIN_VALUE
andInteger.MAX_VALUE
. The processors will be executed starting with the highest value.- Specified by:
getPostProcessorOrder
in interfaceOpenAPIPostProcessor
- Returns:
- the order in which the post processor should be executed
-
getPostProcessorType
Defines the input types of the current post processor. The post processor is executed at a different step of the generation process depending on the input type.- Specified by:
getPostProcessorType
in interfaceOpenAPIPostProcessor
- Returns:
- a list of input types for the post processor
-