|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.provision.persist.foreignsource.PluginConfig
public class PluginConfig
A PluginConfig represents a portion of a configuration that defines a reference to a Java class "plugin" along with a set of parameters used to configure the behavior of that plugin.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
addParameter(String key,
String value)
addParameter |
int |
compareTo(PluginConfig obj)
compareTo |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 Map<String,String> getParameterMap()
getParameterMap
public void setParameterMap(Map<String,String> parameters)
setParameterMap
parameters - the parameters to setpublic String getParameter(String key)
getParameter
key - the parameter name
public 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 obj)
compareTo
compareTo in interface Comparable<PluginConfig>obj - a PluginConfig object.
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||