org.fopps.model
Class ConfigurationSet

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--org.fopps.model.ConfigurationSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ConfigurationSet
extends java.util.Properties

ConfigurationSet acts as a container for configuration values. A configuration set is a set of key/value pairs which reflects the current configuration settings.

Since it derives from properties, you can easily store your configuration settings in a file and use it in your build process (e. g. as additional property file in ant).

See Also:
Serialized Form

Field Summary
static java.lang.String NAME_PROPERTY
           
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
ConfigurationSet(java.lang.String name)
          Creates a new configuration set.
 
Method Summary
 java.lang.String getName()
          Returns the name of the configuration set
 void setName(java.lang.String name)
          Sets the name of the configuration set
 java.lang.String toString()
          Returns a string representation of this map.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_PROPERTY

public static final java.lang.String NAME_PROPERTY
See Also:
Constant Field Values
Constructor Detail

ConfigurationSet

public ConfigurationSet(java.lang.String name)
Creates a new configuration set.

Parameters:
name - Name of the set
Method Detail

getName

public java.lang.String getName()
Returns the name of the configuration set


setName

public void setName(java.lang.String name)
Sets the name of the configuration set

Parameters:
name - New name

toString

public java.lang.String toString()
Returns a string representation of this map. The string representation consists of a list of key-value mappings in the order returned by the map's entrySet view's iterator, enclosed in braces ("{}"). Adjacent mappings are separated by the characters ", " (comma and space). Each key-value mapping is rendered as the key followed by an equals sign ("=") followed by the associated value. Keys and values are converted to strings as by String.valueOf(Object).

This implementation creates an empty string buffer, appends a left brace, and iterates over the map's entrySet view, appending the string representation of each map.entry in turn. After appending each entry except the last, the string ", " is appended. Finally a right brace is appended. A string is obtained from the stringbuffer, and returned.

Overrides:
toString in class java.util.Hashtable
Returns:
a String representation of this map.


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.