Package org.openapitools.client.model
Class AbstractOpenApiSchema
java.lang.Object
org.openapitools.client.model.AbstractOpenApiSchema
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-12-04T04:53:25.428492722Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public abstract class AbstractOpenApiSchema
extends Object
Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the actual instanceGet the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as wellprivate Object
Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectGet the schema type (e.g. anyOf, oneOf)int
hashCode()
Is nullablevoid
setActualInstance
(Object instance) Set the actual instanceprivate String
Convert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
instance
-
isNullable
-
schemaType
-
-
Constructor Details
-
AbstractOpenApiSchema
-
-
Method Details
-
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
Get the actual instance- Returns:
- an instance of the actual schema/object
-
setActualInstance
Set the actual instance- Parameters:
instance
- the actual instance of the schema/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
-
getActualInstanceRecursively
-
getSchemaType
Get the schema type (e.g. anyOf, oneOf)- Returns:
- the schema type
-
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line). -
equals
-
hashCode
public int hashCode() -
isNullable
Is nullable- Returns:
- true if it's nullable
-