Modifier and Type | Class and Description |
---|---|
static class |
PluginClass.Builder
A builder to create
PluginClass instance. |
Constructor and Description |
---|
PluginClass(String type,
String name,
String className,
String configfieldName,
Map<String,PluginPropertyField> properties,
Requirements requirements,
String description)
Deprecated.
use
PluginClass.Builder to create the object |
PluginClass(String type,
String name,
String description,
String className,
String configfieldName,
Map<String,PluginPropertyField> properties)
Deprecated.
use
PluginClass.Builder to create the object |
Modifier and Type | Method and Description |
---|---|
static PluginClass.Builder |
builder() |
boolean |
equals(Object o) |
String |
getCategory()
Returns the category of the plugin.
|
String |
getClassName()
Returns the fully qualified class name of the plugin.
|
String |
getConfigFieldName()
Returns the name of the field that extends from
PluginConfig in the plugin class. |
String |
getDescription()
Returns description of the plugin.
|
String |
getName()
Returns name of the plugin.
|
Map<String,PluginPropertyField> |
getProperties()
Returns a map from config property name to
PluginPropertyField that are supported by
the plugin class. |
Requirements |
getRequirements() |
String |
getType()
Returns the type name of the plugin.
|
int |
hashCode() |
String |
toString() |
void |
validate()
Validates the
PluginClass |
@Deprecated public PluginClass(String type, String name, String className, @Nullable String configfieldName, Map<String,PluginPropertyField> properties, Requirements requirements, String description)
PluginClass.Builder
to create the object@Deprecated public PluginClass(String type, String name, String description, String className, @Nullable String configfieldName, Map<String,PluginPropertyField> properties)
PluginClass.Builder
to create the objectpublic static PluginClass.Builder builder()
public void validate()
PluginClass
IllegalArgumentException
- if any of the required fields are invalidpublic String getType()
public String getName()
@Nullable public String getCategory()
null
will be returned.public String getDescription()
public String getClassName()
@Nullable public String getConfigFieldName()
PluginConfig
in the plugin class. If no
such field, null
will be returned.public Map<String,PluginPropertyField> getProperties()
PluginPropertyField
that are supported by
the plugin class.public Requirements getRequirements()
Requirements
which represents the requirements of the pluginCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.