Class CodegenDiscriminator


  • public class CodegenDiscriminator
    extends Object
    This class encapsulates the OpenAPI discriminator construct, as specified at https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#discriminatorObject. When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the specification of an alternative schema based on the value associated with it.
    • Constructor Detail

      • CodegenDiscriminator

        public CodegenDiscriminator()
    • Method Detail

      • getPropertyName

        public String getPropertyName()
      • setPropertyName

        public void setPropertyName​(String propertyName)
      • getPropertyGetter

        public String getPropertyGetter()
      • setPropertyGetter

        public void setPropertyGetter​(String propertyGetter)
      • getPropertyBaseName

        public String getPropertyBaseName()
      • setPropertyBaseName

        public void setPropertyBaseName​(String propertyBaseName)
      • getPropertyType

        public String getPropertyType()
      • setPropertyType

        public void setPropertyType​(String propertyType)
      • getIsEnum

        public boolean getIsEnum()
      • setIsEnum

        public void setIsEnum​(boolean isEnum)
      • setVendorExtensions

        public void setVendorExtensions​(Map<String,​Object> vendorExtensions)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object