Class AbstractOpenApiSchema


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public abstract class AbstractOpenApiSchema
    extends Object
    Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
    • Constructor Detail

      • AbstractOpenApiSchema

        public AbstractOpenApiSchema​(String schemaType,
                                     Boolean isNullable)
    • Method Detail

      • getSchemas

        public abstract Map<String,​Class<?>> getSchemas()
        Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
        Returns:
        an instance of the actual schema/object
      • getActualInstance

        public Object getActualInstance()
        Get the actual instance
        Returns:
        an instance of the actual schema/object
      • setActualInstance

        public void setActualInstance​(Object instance)
        Set the actual instance
        Parameters:
        instance - the actual instance of the schema/object
      • getActualInstanceRecursively

        public Object getActualInstanceRecursively()
        Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well
        Returns:
        an instance of the actual schema/object
      • getSchemaType

        public String getSchemaType()
        Get the schema type (e.g. anyOf, oneOf)
        Returns:
        the schema type
      • hashCode

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

        public Boolean isNullable()
        Is nullable
        Returns:
        true if it's nullable