Package diva.util

Class BasicPropertyContainer

  • All Implemented Interfaces:
    PropertyContainer

    public class BasicPropertyContainer
    extends java.lang.Object
    implements PropertyContainer
    An object that can be annotated with arbitrary objects whose keys are strings.
    Version:
    $Id$
    Author:
    Michael Shilman
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 properties()
      Return a Iterator.
      java.util.Iterator propertyNames()
      Return an iteration of the names of the properties.
      void removeAllProperties()
      Remove all properties.
      void setProperty​(java.lang.String key, java.lang.Object value)
      Set the property corresponding to the given key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicPropertyContainer

        public BasicPropertyContainer()
        A property container with no defaults.
      • BasicPropertyContainer

        public BasicPropertyContainer​(PropertyContainer defaults)
        A property container with no defaults.
        Parameters:
        defaults - The defaults.
    • Method Detail

      • removeAllProperties

        public void removeAllProperties()
        Remove all properties.
      • properties

        public java.util.Iterator properties()
        Return a Iterator.
        Returns:
        An iterator.
      • propertyNames

        public java.util.Iterator propertyNames()
        Return an iteration of the names of the properties.
        Specified by:
        propertyNames in interface PropertyContainer
        Returns:
        An iterator.