Package dev.restate.admin.model
Class AbstractOpenApiSchema
java.lang.Object
dev.restate.admin.model.AbstractOpenApiSchema
- Direct Known Subclasses:
DeploymentResponse,DetailedDeploymentResponse,RegisterDeploymentRequest,UpdateDeploymentRequest
Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the actual instanceGet the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as wellGet the list of oneOf/anyOf composed schemas allowed to be stored in this objectGet the schema type (e.g.inthashCode()Is nullablevoidsetActualInstance(Object instance) Set the actual instancetoString()
-
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
-
getSchemaType
Get the schema type (e.g. anyOf, oneOf)- Returns:
- the schema type
-
toString
-
equals
-
hashCode
public int hashCode() -
isNullable
Is nullable- Returns:
- true if it's nullable
-