uk.org.ogsadai.common.properties
Interface Properties

All Superinterfaces:
java.util.Map
All Known Implementing Classes:
PropertiesImpl

public interface Properties
extends java.util.Map

A collection of uk.org.ogsadai.common.Property objects.

Author:
The OGSA-DAI Project Team

Method Summary
 void addPropertyListener(PropertyListener listener)
          Registers a property listener.
 Property put(Property property)
          Add the specified Property to the map.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

put

public Property put(Property property)
Add the specified Property to the map.

Parameters:
property - The Property to add to the map. The value of property.getName() will be used as the key.
Returns:
the previous Property object mapped to the property.getName() key or null if no mapping existed previously.
Throws:
java.lang.IllegalArgumentException - if the specified Property or the value of property.getName() are null.

addPropertyListener

public void addPropertyListener(PropertyListener listener)
Registers a property listener. The listener will be notified each time a property event occurs.

Parameters:
listener - The PropertyListener to register.