edu.iu.iv.core.property
Class PropertyMap

java.lang.Object
  |
  +--edu.iu.iv.core.property.PropertyMap

public class PropertyMap
extends java.lang.Object

A class that holds mappings from Property to whatever class of object is suitable for the PluginProperty.

Author:
Team IVC

Constructor Summary
PropertyMap()
           
 
Method Summary
 java.util.Set getAllPropertiesSet()
          Get all the PluginProperties that have been set in this map.
 java.lang.Object getPropertyValue(Property property)
          Get the value associated with the given property.
 void put(Property property, java.lang.Object value)
           
 void setPropertyValue(Property property, java.lang.Object value)
          Sets an associated value for the property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMap

public PropertyMap()
Method Detail

put

public void put(Property property,
                java.lang.Object value)

setPropertyValue

public void setPropertyValue(Property property,
                             java.lang.Object value)
Sets an associated value for the property.

Parameters:
property - the property to set
value - its associated value

getPropertyValue

public java.lang.Object getPropertyValue(Property property)
Get the value associated with the given property.

Parameters:
property - the property to get the value of
Returns:
the associated value or null if the property is not set.

getAllPropertiesSet

public java.util.Set getAllPropertiesSet()
Get all the PluginProperties that have been set in this map.

Returns:
a Set of all the properties that have been set