org.figure8.join.core.setup
Class ConfigProperty

java.lang.Object
  extended by org.figure8.join.core.setup.ConfigProperty

public class ConfigProperty
extends java.lang.Object

A Java Bean representing a configuration property (or a configuration element). Such properties are intended to be loaded from application configuration file during bootstrap phase. A property has a key and a value.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Constructor Summary
ConfigProperty()
          Creates a new instance of ConfigProperty
ConfigProperty(java.lang.String key, java.lang.String value)
          Creates a new instance of ConfigProperty
 
Method Summary
 java.lang.String getKey()
           
 java.lang.String getValue()
           
 void setKey(java.lang.String key)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
          Return an Xml string representation of this ConfigProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigProperty

public ConfigProperty()
Creates a new instance of ConfigProperty


ConfigProperty

public ConfigProperty(java.lang.String key,
                      java.lang.String value)
Creates a new instance of ConfigProperty

Parameters:
key - Key of this property
value - Value associated to key
Method Detail

setKey

public void setKey(java.lang.String key)
Parameters:
key - Key identifier of the property

getKey

public java.lang.String getKey()
Returns:
The key identifier of the property

setValue

public void setValue(java.lang.String value)
Parameters:
value - The string value of this property

getValue

public java.lang.String getValue()
Returns:
The string value of this property

toString

public java.lang.String toString()
Return an Xml string representation of this ConfigProperty

Overrides:
toString in class java.lang.Object
Returns:
Xml string representing this property


Copyright © 2005-2008 Join. All Rights Reserved.