net.sf.mmm.util.pojo.descriptor.base
Class PojoMap

java.lang.Object
  extended by net.sf.mmm.util.collection.base.AbstractSimpleMap<String,Object>
      extended by net.sf.mmm.util.pojo.descriptor.base.PojoMap
All Implemented Interfaces:
Map<String,Object>

public class PojoMap
extends AbstractSimpleMap<String,Object>

This is represents a given Pojo as Map where the key is a property-name given as String.

Since:
1.1.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
private  Set<String> keySet
           
private  Object pojo
           
private  PojoDescriptor pojoDescriptor
           
 
Constructor Summary
PojoMap(PojoDescriptorBuilder pojoDescriptorBuilder, Object pojo)
          The constructor.
 
Method Summary
 Object get(Object key)
          
 Set<String> keySet()
          
 
Methods inherited from class net.sf.mmm.util.collection.base.AbstractSimpleMap
clear, containsKey, containsValue, entrySet, isEmpty, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

pojoDescriptor

private final PojoDescriptor pojoDescriptor
See Also:
get(Object)

pojo

private final Object pojo
See Also:
get(Object)

keySet

private Set<String> keySet
See Also:
keySet()
Constructor Detail

PojoMap

public PojoMap(PojoDescriptorBuilder pojoDescriptorBuilder,
               Object pojo)
The constructor.

Parameters:
pojoDescriptorBuilder - is the PojoDescriptorBuilder to use.
pojo - the Pojo to represent as Map.
Method Detail

get

public Object get(Object key)


keySet

public Set<String> keySet()

Specified by:
keySet in interface Map<String,Object>
Overrides:
keySet in class AbstractSimpleMap<String,Object>


Copyright © 2001-2010 mmm-Team. All Rights Reserved.