org.omnaest.utils.beans
Class ObjectToStringMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,String>
              extended by org.omnaest.utils.beans.ObjectToStringMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>

Deprecated.

@Deprecated
public class ObjectToStringMap
extends LinkedHashMap<String,String>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ObjectToStringMap()
          Deprecated.  
ObjectToStringMap(int initialSize)
          Deprecated.  
 
Method Summary
 ObjectToStringMap readObject(Object object)
          Deprecated. Parses all properties from this object, and if String.valueOf is usable on a field, the field will be parsed to a string within a map.
static ObjectToStringMap valueOf(Object object)
          Deprecated. Creates a new Map with the property names and values of the given object parsed into the map.
 ObjectToStringMap writeObject(Object object)
          Deprecated. Writes the values of the given map into the object.
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

ObjectToStringMap

public ObjectToStringMap()
Deprecated. 

ObjectToStringMap

public ObjectToStringMap(int initialSize)
Deprecated. 
Method Detail

valueOf

public static ObjectToStringMap valueOf(Object object)
Deprecated. 
Creates a new Map with the property names and values of the given object parsed into the map.

Parameters:
object -
Returns:
See Also:
readObject(Object)

readObject

public ObjectToStringMap readObject(Object object)
Deprecated. 
Parses all properties from this object, and if String.valueOf is usable on a field, the field will be parsed to a string within a map. Key will be the fields name.
Important is, that the propertyfield must have a respective gettermethod.

Parameters:
object -

writeObject

public ObjectToStringMap writeObject(Object object)
Deprecated. 
Writes the values of the given map into the object. To do this the given object have to have setters for the propertynames stored within the map. And the properties must have .valueOf(String) methods.

Parameters:
object -
Returns:


Copyright © 2011. All Rights Reserved.