Class AbstractOpenApiSchema

java.lang.Object
dev.restate.admin.model.AbstractOpenApiSchema
Direct Known Subclasses:
DeploymentResponse, DetailedDeploymentResponse, RegisterDeploymentRequest

public abstract class AbstractOpenApiSchema extends Object
Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
  • Constructor Details

    • AbstractOpenApiSchema

      public AbstractOpenApiSchema(String schemaType, Boolean isNullable)
  • Method Details

    • 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
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

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