diva.util
Interface PropertyContainer

All Known Subinterfaces:
CompositeNode, Edge, Graph, Node
All Known Implementing Classes:
BasicGraphModel.BasicCompositeNode, BasicGraphModel.BasicEdge, BasicGraphModel.BasicNode, BasicGraphModel.Intermediate, BasicPropertyContainer

public interface PropertyContainer

An object that can be annotated with arbitrary objects whose keys are strings.

Version:
$Id: PropertyContainer.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Michael Shilman

Method Summary
 java.lang.Object getProperty(java.lang.String key)
          Return the property corresponding to the given key, or null if no such property exists.
 java.util.Iterator propertyNames()
          Get an iterator over the names of the properties.
 void setProperty(java.lang.String key, java.lang.Object value)
          Set the property corresponding to the given key.
 

Method Detail

getProperty

java.lang.Object getProperty(java.lang.String key)
Return the property corresponding to the given key, or null if no such property exists.


propertyNames

java.util.Iterator propertyNames()
Get an iterator over the names of the properties.


setProperty

void setProperty(java.lang.String key,
                 java.lang.Object value)
Set the property corresponding to the given key.