|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface will be implemented by classes which are able to serialize objects into a number of key value pairs.
Method Summary | |
void |
restore(Object object,
Map propertyMap,
ObjectStringConverter converter)
This method takes an object, uses the supplied converter to restore its attributes stored in the propertyMap using the converter to do the string to object conversion. |
void |
store(Object object,
Map propertyMap,
ObjectStringConverter converter)
This method takes an object, uses the supplied converter to transform the attributes of the object into string values and puts the attribute-name string-value pairs in the supplied propertyMap. |
Method Detail |
public void store(Object object, Map propertyMap, ObjectStringConverter converter)
object
- the object whose attributes will be stored in the propertyMappropertyMap
- the map, which contains the key value pairs, both keys and values must be
Strings.converter
- the converter, which must be used to convert simple objects to corresponding
String formspublic void restore(Object object, Map propertyMap, ObjectStringConverter converter)
object
- the object whose attributes will be restored from the propertyMappropertyMap
- the map, which contains the key value pairs, both keys and values are
Strings.converter
- the converter, which should be used to convert the string representations
to the object's attributes.
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |