y.option
Class PropertiesIOHandler

java.lang.Object
  |
  +--y.option.PropertiesIOHandler
All Implemented Interfaces:
OptionsIOHandler

public class PropertiesIOHandler
extends Object
implements OptionsIOHandler

A OptionsIOHandler implementation that reads the options from and writes the options to a Java Properties object.


Constructor Summary
PropertiesIOHandler(Properties prop)
          Creates a new instance of PropertiesIOHandler
 
Method Summary
 Map read(String optionHandlerName)
          Restores formerly stored key value pairs.
 void write(String optionHandlerName, Map sectionMap)
          Stores the key value pairs defined in the given map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesIOHandler

public PropertiesIOHandler(Properties prop)
Creates a new instance of PropertiesIOHandler

Method Detail

read

public Map read(String optionHandlerName)
Description copied from interface: OptionsIOHandler
Restores formerly stored key value pairs.

Specified by:
read in interface OptionsIOHandler
Parameters:
optionHandlerName - the namespace of the stored key value pairs.
Returns:
a map that contains the restored key value pairs.

write

public void write(String optionHandlerName,
                  Map sectionMap)
Description copied from interface: OptionsIOHandler
Stores the key value pairs defined in the given map.

Specified by:
write in interface OptionsIOHandler
Parameters:
optionHandlerName - the namespace for the key value pairs.

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003