org.openbp.jaspira.plugin
Class PluginState

java.lang.Object
  extended by org.openbp.jaspira.plugin.PluginState
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PropertyBrowserPluginState

public class PluginState
extends java.lang.Object
implements java.io.Serializable

Abstract PluginState object, creates name and version out of the class

Author:
Stephan Moritz
See Also:
Serialized Form

Constructor Summary
PluginState(Plugin plugin)
          Constructor.
 
Method Summary
 java.lang.String getPluginClassName()
          Gets the class name of the plugin.
 java.lang.String getPluginVersion()
          Gets the version of the plugin..
 java.lang.String getUniqueId()
          Gets the the unique id of the source plugin.
 java.lang.Object getValue(java.lang.String name)
          Gets the property value with the given name.
 void setValue(java.lang.String name, java.lang.Object value)
          Stores a value with a given name in the properties table of the state object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginState

public PluginState(Plugin plugin)
Constructor.

Parameters:
plugin - Plugin for which to create the state object for
Method Detail

getPluginClassName

public java.lang.String getPluginClassName()
Gets the class name of the plugin.


getPluginVersion

public java.lang.String getPluginVersion()
Gets the version of the plugin..


getUniqueId

public java.lang.String getUniqueId()
Gets the the unique id of the source plugin. Note that this is NOT used during deserialization.


setValue

public void setValue(java.lang.String name,
                     java.lang.Object value)
Stores a value with a given name in the properties table of the state object.

Parameters:
name - Property name
value - Property value

getValue

public java.lang.Object getValue(java.lang.String name)
Gets the property value with the given name.

Parameters:
name - Key of the value to retrieve
Returns:
The property value or null if not present

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.