Class CodegenOperation

    • 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
      • getHasCookieParams

        public boolean getHasCookieParams()
        Check if there's at least one cookie parameter
        Returns:
        true if cookie 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
      • getIsRestfulIndex

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

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

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

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

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

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getPath

        public String getPath()
      • getOperationId

        public String getOperationId()
      • getReturnType

        public String getReturnType()
      • getHttpMethod

        public String getHttpMethod()
      • getReturnBaseType

        public String getReturnBaseType()
      • getReturnContainer

        public String getReturnContainer()
      • getSummary

        public String getSummary()
      • getUnescapedNotes

        public String getUnescapedNotes()
      • getNotes

        public String getNotes()
      • getBaseName

        public String getBaseName()
      • getDefaultResponse

        public String getDefaultResponse()
      • getTestPath

        public String getTestPath()
      • getDiscriminator

        public io.swagger.v3.oas.models.media.Discriminator getDiscriminator()
      • getReturnTypeIsPrimitive

        public boolean getReturnTypeIsPrimitive()
      • getReturnSimpleType

        public boolean getReturnSimpleType()
      • getSubresourceOperation

        public boolean getSubresourceOperation()
      • getTags

        public List<io.swagger.v3.oas.models.tags.Tag> getTags()
      • getImports

        public Set<String> getImports()
      • getExternalDocs

        public io.swagger.v3.oas.models.ExternalDocumentation getExternalDocs()
      • getNickname

        public String getNickname()
      • getOperationIdLowerCase

        public String getOperationIdLowerCase()
      • getOperationIdCamelCase

        public String getOperationIdCamelCase()
      • getOperationIdSnakeCase

        public String getOperationIdSnakeCase()
      • getIsDeprecated

        public Boolean getIsDeprecated()
      • getHasAuthMethods

        public Boolean getHasAuthMethods()
      • getHasConsumes

        public Boolean getHasConsumes()
      • getHasProduces

        public Boolean getHasProduces()
      • getHasParams

        public Boolean getHasParams()
      • getHasOptionalParams

        public Boolean getHasOptionalParams()
      • getHasRequiredParams

        public Boolean getHasRequiredParams()
      • getHasReference

        public Boolean getHasReference()