com.ryanm.config.serial
Interface ConfigurationStringFormatter

All Known Implementing Classes:
XMLFormatter

public interface ConfigurationStringFormatter

Converts between the current state of a configurator tree and strings

Author:
s9902505

Method Summary
 java.lang.String format(Configurator[] confs)
          Generates a formatted String, suitable for writing to a file, from the supplied Configurators
 void parse(Configurator[] confs, java.lang.String string)
          Sets the state of the supplied configurators according to the supplied string
 

Method Detail

format

java.lang.String format(Configurator[] confs)
Generates a formatted String, suitable for writing to a file, from the supplied Configurators

Parameters:
confs - An array of configurators, whose state should be encoded into the string
Returns:
A formatted String

parse

void parse(Configurator[] confs,
           java.lang.String string)
Sets the state of the supplied configurators according to the supplied string

Parameters:
confs - The configurators to set
string - The string to set from