Class CodegenOperation


  • public class CodegenOperation
    extends Object
    • Field Detail

      • hasAuthMethods

        public boolean hasAuthMethods
      • hasConsumes

        public boolean hasConsumes
      • hasProduces

        public boolean hasProduces
      • hasParams

        public boolean hasParams
      • hasOptionalParams

        public boolean hasOptionalParams
      • hasRequiredParams

        public boolean hasRequiredParams
      • returnTypeIsPrimitive

        public boolean returnTypeIsPrimitive
      • returnSimpleType

        public boolean returnSimpleType
      • subresourceOperation

        public boolean subresourceOperation
      • isMapContainer

        public boolean isMapContainer
      • isListContainer

        public boolean isListContainer
      • isMultipart

        public boolean isMultipart
      • hasMore

        public boolean hasMore
      • isResponseBinary

        public boolean isResponseBinary
      • isResponseFile

        public boolean isResponseFile
      • hasReference

        public boolean hasReference
      • isRestfulIndex

        public boolean isRestfulIndex
      • isRestfulShow

        public boolean isRestfulShow
      • isRestfulCreate

        public boolean isRestfulCreate
      • isRestfulUpdate

        public boolean isRestfulUpdate
      • isRestfulDestroy

        public boolean isRestfulDestroy
      • isRestful

        public boolean isRestful
      • isDeprecated

        public boolean isDeprecated
      • testPath

        public String testPath
      • operationId

        public String operationId
      • returnType

        public String returnType
      • httpMethod

        public String httpMethod
      • returnBaseType

        public String returnBaseType
      • returnContainer

        public String returnContainer
      • summary

        public String summary
      • unescapedNotes

        public String unescapedNotes
      • baseName

        public String baseName
      • defaultResponse

        public String defaultResponse
      • discriminator

        public String discriminator
      • tags

        public List<io.swagger.models.Tag> tags
      • externalDocs

        public io.swagger.models.ExternalDocs externalDocs
      • nickname

        public String nickname
      • operationIdOriginal

        public String operationIdOriginal
      • operationIdLowerCase

        public String operationIdLowerCase
      • operationIdCamelCase

        public String operationIdCamelCase
      • operationIdSnakeCase

        public String operationIdSnakeCase
    • Constructor Detail

      • CodegenOperation

        public CodegenOperation()
    • Method Detail

      • getHasBodyParam

        public boolean getHasBodyParam()
        Check if there's at least one body parameter
        Returns:
        true if body parameter exists, false otherwise
      • getHasQueryParams

        public boolean getHasQueryParams()
        Check if there's at least one query parameter
        Returns:
        true if query parameter exists, false otherwise
      • getHasHeaderParams

        public boolean getHasHeaderParams()
        Check if there's at least one header parameter
        Returns:
        true if header parameter exists, false otherwise
      • getHasPathParams

        public boolean getHasPathParams()
        Check if there's at least one path parameter
        Returns:
        true if path parameter exists, false otherwise
      • getHasFormParams

        public boolean getHasFormParams()
        Check if there's at least one form parameter
        Returns:
        true if any form parameter exists, false otherwise
      • getHasExamples

        public boolean getHasExamples()
        Check if there's at least one example parameter
        Returns:
        true if examples parameter exists, false otherwise
      • isRestfulIndex

        public boolean isRestfulIndex()
        Check if act as Restful index method
        Returns:
        true if act as Restful index method, false otherwise
      • isRestfulShow

        public boolean isRestfulShow()
        Check if act as Restful show method
        Returns:
        true if act as Restful show method, false otherwise
      • isRestfulCreate

        public boolean isRestfulCreate()
        Check if act as Restful create method
        Returns:
        true if act as Restful create method, false otherwise
      • isRestfulUpdate

        public boolean isRestfulUpdate()
        Check if act as Restful update method
        Returns:
        true if act as Restful update method, false otherwise
      • isBodyAllowed

        public boolean isBodyAllowed()
        Check if body param is allowed for the request method
        Returns:
        true request method is PUT, PATCH or POST; false otherwise
      • isRestfulDestroy

        public boolean isRestfulDestroy()
        Check if act as Restful destroy method
        Returns:
        true if act as Restful destroy method, false otherwise
      • isRestful

        public boolean isRestful()
        Check if Restful-style
        Returns:
        true if Restful-style, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object