Constructor and Description |
---|
PluginClass(String type,
String name,
String description,
String className,
String configfieldName,
Map<String,PluginPropertyField> properties) |
PluginClass(String type,
String name,
String description,
String className,
String configfieldName,
Map<String,PluginPropertyField> properties,
Requirements requirements) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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 |
public PluginClass(String type, String name, String description, String className, @Nullable String configfieldName, Map<String,PluginPropertyField> properties, Requirements requirements)
public void validate()
PluginClass
IllegalArgumentException
- if any of the required fields are invalidpublic String getType()
public String getName()
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 © 2020 Cask Data, Inc. Licensed under the Apache License, Version 2.0.