|
|||||||||
| 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)
|
|
PluginConfig(String name,
String clazz)
Creates a plugin configuration with the given name and class. |
|
| Method Summary | |
|---|---|
void |
addParameter(String key,
String value)
|
int |
compareTo(PluginConfig obj)
|
boolean |
equals(Object obj)
|
Set<String> |
getAvailableParameterKeys()
|
String |
getName()
Get the name of the plugin. |
String |
getParameter(String key)
|
Map<String,String> |
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 |
removeParameters(PluginParameter p)
|
void |
setName(String name)
Sets the name of the plugin. |
void |
setParameterMap(Map<String,String> parameters)
|
void |
setParameters(Set<PluginParameter> list)
|
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)
| Method Detail |
|---|
public String getName()
public void setName(String name)
name - the human-readable name to setpublic String getPluginClass()
public void setPluginClass(String clazz)
pluginClass - the plugin class name to setpublic Set<PluginParameter> getParameters()
List of the plugin parameters.
public void setParameters(Set<PluginParameter> list)
parameters - the parameters to setpublic Map<String,String> getParameterMap()
public void setParameterMap(Map<String,String> parameters)
parameters - the parameters to setpublic String getParameter(String key)
key - the parameter name
public void addParameter(String key,
String value)
key - the parameter namevalue - the parameter valuepublic void removeParameters(PluginParameter p)
public Set<String> getAvailableParameterKeys()
public int compareTo(PluginConfig obj)
compareTo in interface Comparable<PluginConfig>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 | ||||||||