org.yajul.util
Class PropertyMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.yajul.util.PropertyMap
All Implemented Interfaces:
java.util.Map

public class PropertyMap
extends java.util.AbstractMap
implements java.util.Map

Provides a Map view of a JavaBean's properties.

Author:
josh Apr 4, 2004 10:48:27 AM

Nested Class Summary
static class PropertyMap.Entry
          Represents a property name / value pair in the Map view of a bean.
 
Constructor Summary
PropertyMap(java.lang.Object bean)
          Constructs a map view of the bean.
 
Method Summary
 void clear()
           
 java.util.Set entrySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

PropertyMap

public PropertyMap(java.lang.Object bean)
Constructs a map view of the bean.

Parameters:
bean - the bean to create a map view of.
Method Detail

clear

public void clear()
Specified by:
clear in interface java.util.Map
Overrides:
clear in class java.util.AbstractMap

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.AbstractMap

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map
Specified by:
entrySet in class java.util.AbstractMap


Copyright © 2008. All Rights Reserved.