org.greenstone.gs3client.data
Class CollectionData.PluginData

java.lang.Object
  extended by org.greenstone.gs3client.data.CollectionData.PluginData
Enclosing class:
CollectionData

public static class CollectionData.PluginData
extends java.lang.Object

PluginData inner class of CollectionData, represents the data stored in a <plugin></plugin> element. This class just stores the Plugin's name, as well as option subelements (in variable optionnames).


Field Summary
 java.lang.String name
          name of the plugin represented by this PluginData object
 java.lang.String[] optionnames
          A plugin's option subelements.
 
Constructor Summary
CollectionData.PluginData(org.w3c.dom.Element pluginTag)
          Gets a <plugin></plugin> element and sets its members using info extracted from it.
 
Method Summary
 java.lang.String show()
           
 java.lang.String toString()
          Useful when adding PluginData objects to a JList or JCombobox.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final java.lang.String name
name of the plugin represented by this PluginData object


optionnames

public final java.lang.String[] optionnames
A plugin's option subelements. Variable optionnames can be empty (it's an optional variable).

Constructor Detail

CollectionData.PluginData

public CollectionData.PluginData(org.w3c.dom.Element pluginTag)
Gets a <plugin></plugin> element and sets its members using info extracted from it.

Parameters:
pluginTag - is the the <plugin></plugin> element whose data is used to construct this PluginData object.
Method Detail

toString

public java.lang.String toString()
Useful when adding PluginData objects to a JList or JCombobox.

Overrides:
toString in class java.lang.Object
Returns:
the name of the plugin represented by this PluginData object.

show

public java.lang.String show()
Returns:
a String displaying the contents of this PluginData object. Useful for debugging purposes.