Package mindsdb.models
Class Handler
java.lang.Object
mindsdb.models.Handler
The
Handler
class represents a handler with various attributes such
as name, title, version, description,
connection arguments, import success flag, and import error message. It
provides a constructor to initialize these
attributes from a JSON object with case-insensitive keys. The class also
includes methods to return string
representations of the handler.
Attributes:
name
: The name of the handler (String)title
: The title of the handler (String)version
: The version of the handler (String)description
: The description of the handler (String)connectionArgs
: The connection arguments (JsonObject)importSuccess
: The import success flag (Boolean)importError
: The import error message (String)
Methods:
Handler(JsonObject kwargs)
: Constructs a new Handler instance with the provided JSON object.toString()
: Returns a string representation of the Handler instance.describe()
: Returns a detailed string representation of the Handler instance.
-
Constructor Summary
ConstructorDescriptionHandler
(com.google.gson.JsonObject kwargs) Constructs a new Handler instance with the provided JSON object. -
Method Summary
-
Constructor Details
-
Handler
public Handler(com.google.gson.JsonObject kwargs) Constructs a new Handler instance with the provided JSON object. The constructor normalizes the keys of the provided JSON object to lower case and initializes the Handler's fields based on the normalized keys.- Parameters:
kwargs
- A JsonObject containing the initialization parameters. Expected keys (case-insensitive) are:- name: The name of the handler (String)
- title: The title of the handler (String)
- version: The version of the handler (String)
- description: The description of the handler (String)
- connection_args: The connection arguments (JsonObject)
- import_success: The import success flag (Boolean)
- import_error: The import error message (String)
-
-
Method Details