public class PluginConfig extends Object implements Serializable, Comparable<PluginConfig>
| Constructor and Description | 
|---|
PluginConfig()
Creates an empty plugin configuration. 
 | 
PluginConfig(PluginConfig pluginConfig)
Constructor for PluginConfig. 
 | 
PluginConfig(String name,
            String clazz)
Creates a plugin configuration with the given name and class. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addParameter(String key,
            String value)
addParameter 
 | 
int | 
compareTo(PluginConfig other)  | 
void | 
deleteParameters(PluginParameter p)
removeParameters 
 | 
boolean | 
equals(Object obj)  | 
Set<String> | 
getAvailableParameterKeys()
getAvailableParameterKeys 
 | 
String | 
getName()
Get the name of the plugin. 
 | 
String | 
getParameter(String key)
getParameter 
 | 
Map<String,String> | 
getParameterMap()
getParameterMap 
 | 
Set<PluginParameter> | 
getParameters()
Get a  
List of the plugin parameters. | 
String | 
getPluginClass()
Get the name of the plugin's java class. 
 | 
int | 
hashCode()  | 
void | 
setName(String name)
Sets the name of the plugin. 
 | 
void | 
setParameterMap(Map<String,String> parameters)
setParameterMap 
 | 
void | 
setParameters(Set<PluginParameter> list)
setParameters 
 | 
void | 
setPluginClass(String clazz)
Set the name of the plugin's java class. 
 | 
String | 
toString()  | 
public PluginConfig()
public PluginConfig(String name, String clazz)
name - the human-readable name of the pluginclazz - the name of the plugin's java classpublic PluginConfig(PluginConfig pluginConfig)
Constructor for PluginConfig.
pluginConfig - a PluginConfig object.public String getName()
public void setName(String name)
name - the human-readable name to setpublic String getPluginClass()
public void setPluginClass(String clazz)
clazz - a String object.public Set<PluginParameter> getParameters()
List of the plugin parameters.public void setParameters(Set<PluginParameter> list)
setParameters
list - a Set object.public void setParameterMap(Map<String,String> parameters)
setParameterMap
parameters - the parameters to setpublic String getParameter(String key)
getParameter
key - the parameter namepublic void addParameter(String key, String value)
addParameter
key - the parameter namevalue - the parameter valuepublic void deleteParameters(PluginParameter p)
removeParameters
p - a PluginParameter object.public Set<String> getAvailableParameterKeys()
getAvailableParameterKeys
Set object.public int compareTo(PluginConfig other)
compareTo in interface Comparable<PluginConfig>Copyright © 2021. All rights reserved.