org.omnaest.utils.beans
Class ObjectToStringMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,String>
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
| Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
ObjectToStringMap
public ObjectToStringMap()
- Deprecated.
ObjectToStringMap
public ObjectToStringMap(int initialSize)
- Deprecated.
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.