marvin.util
Class MarvinAttributes

java.lang.Object
  extended by marvin.util.MarvinAttributes

public class MarvinAttributes
extends java.lang.Object

This class stores and manages plug-ins attributes and either integrates them with Marvin features, such as FilterHistory, Statistics and MarvinPluginWindow.


Field Summary
protected  java.util.LinkedHashMap<java.lang.String,java.lang.Object> hashAttributes
           
 
Constructor Summary
MarvinAttributes()
          Constructor
 
Method Summary
 MarvinAttributes clone()
          Clones a MarvinAttributes Object.
 java.lang.Object get(java.lang.String name)
          Get an attribute by its name.
 java.lang.Object[] getValues()
          returns an array containing the attrbiute values
 void set(java.lang.String name, java.lang.Object value)
          Set an attribute.
 java.lang.String[] toStringArray()
          Returns all attributes´ name and value as a String array.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashAttributes

protected java.util.LinkedHashMap<java.lang.String,java.lang.Object> hashAttributes
Constructor Detail

MarvinAttributes

public MarvinAttributes()
Constructor

Method Detail

set

public void set(java.lang.String name,
                java.lang.Object value)
Set an attribute.

Parameters:
name - attribute name.
value - attribute value.

get

public java.lang.Object get(java.lang.String name)
Get an attribute by its name.

Parameters:
name - attribute´s name.
Returns:
the specified attribute as an Object.

toStringArray

public java.lang.String[] toStringArray()
Returns all attributes´ name and value as a String array.

Returns:
string array with all attributes´ name and value.

getValues

public java.lang.Object[] getValues()
returns an array containing the attrbiute values


clone

public MarvinAttributes clone()
Clones a MarvinAttributes Object.

Overrides:
clone in class java.lang.Object