|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.PluginConfigInfo
public class PluginConfigInfo
This class should be used to keep information about a plugin configuration
that is loaded from an XML-file. It has a useful method to get all
PlguinConfigInfo
from an XML-document for a certain plugin.
Field Summary | |
---|---|
private String |
description
Description about the configuration |
private boolean |
exists
|
private String |
name
The name of the configuration |
private int |
orderInXml
In which place the configuration comes in the file. |
private String |
pluginClass
The plugin the configuration can be use with |
Constructor Summary | |
---|---|
PluginConfigInfo(String pluginClassName,
String configName,
String descr)
Constructor to create a new instance with information for a plugin configuration. |
Method Summary | |
---|---|
void |
checkInstallation(DbControl dc)
Check the database if a configuration with the same name is already installed or not. |
boolean |
exists()
If plug-in configuration with the same name already exists or not. |
String |
getDescription()
Gets the description of the configuration |
String |
getName()
Gets the configuration's name |
int |
getOrderInXml()
Gets in wich order the configuration comes in the import file. |
String |
getPluginClass()
Gets the class name of the plugin that this configuration is ment for |
static List<PluginConfigInfo> |
loadConfigurationsForPlugin(Document doc,
String pluginClassName)
Loads PluginConfigInfo objects from xml-document for a plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String pluginClass
private String name
private String description
private int orderInXml
private boolean exists
Constructor Detail |
---|
public PluginConfigInfo(String pluginClassName, String configName, String descr)
pluginClassName
- The class name of PluginDefinition this configuration belongs to,
seePluginConfiguration.getPluginDefinition()
configName
- Name of the plugin configuration,
seeCommonItem.getName()
descr
- Description about the configuration
see CommonItem.getDescription()
Method Detail |
---|
public static List<PluginConfigInfo> loadConfigurationsForPlugin(Document doc, String pluginClassName)
doc
- The xml-documentpluginClassName
- The specific
PluginConfigInfo
or,
null if no configurations were found in the file.public String getPluginClass()
public String getName()
public String getDescription()
public int getOrderInXml()
public void checkInstallation(DbControl dc)
exists()
is called.
dc
- An open DbControlpublic boolean exists()
checkInstallation(DbControl)
must be called.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |