Search this API

y.option
Class PropertiesIOHandler

java.lang.Object
  extended by y.option.PropertiesIOHandler
All Implemented Interfaces:
OptionsIOHandler

public class PropertiesIOHandler
extends java.lang.Object
implements OptionsIOHandler

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

 
Your browser does not support SVG content.

Constructor Summary
PropertiesIOHandler(java.util.Properties prop)
          Creates a new instance of PropertiesIOHandler.
 
Method Summary
 java.util.Map read(java.lang.String optionHandlerName)
          Restores formerly stored key value pairs.
 void write(java.lang.String optionHandlerName, java.util.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(java.util.Properties prop)
Creates a new instance of PropertiesIOHandler.

Method Detail

read

public java.util.Map read(java.lang.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(java.lang.String optionHandlerName,
                  java.util.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-2022,
yWorks GmbH.
All rights reserved.