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 TypeMethodDescriptionvoidThis method must be overridden for the actual post-processing call.intReturns 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, waitMethods 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:
executein interfaceOpenAPIPostProcessor- Parameters:
openApi- the parsedOpenAPIfor 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_VALUEandInteger.MAX_VALUE. The processors will be executed starting with the highest value.- Specified by:
getPostProcessorOrderin 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:
getPostProcessorTypein interfaceOpenAPIPostProcessor- Returns:
- a list of input types for the post processor
-