Class AbstractOpenApiSchema


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2022-07-11T22:46:03.646077Z[Etc/UTC]")
    public abstract class AbstractOpenApiSchema
    extends java.lang.Object
    Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractOpenApiSchema​(java.lang.String schemaType, java.lang.Boolean isNullable)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.Object getActualInstance()
      Get the actual instance
      java.lang.Object getActualInstanceRecursively()
      Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well
      abstract java.util.Map<java.lang.String,​javax.ws.rs.core.GenericType> getSchemas()
      Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
      java.lang.String getSchemaType()
      Get the schema type (e.g.
      int hashCode()  
      java.lang.Boolean isNullable()
      Is nullable
      void setActualInstance​(java.lang.Object instance)
      Set the actual instance
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractOpenApiSchema

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

      • getSchemas

        public abstract java.util.Map<java.lang.String,​javax.ws.rs.core.GenericType> 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 java.lang.Object getActualInstance()
        Get the actual instance
        Returns:
        an instance of the actual schema/object
      • setActualInstance

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

        public java.lang.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 java.lang.String getSchemaType()
        Get the schema type (e.g. anyOf, oneOf)
        Returns:
        the schema type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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