bill.util.config
Class ConfigurationEntry

java.lang.Object
  |
  +--bill.util.config.ConfigurationEntry

public class ConfigurationEntry
extends Object

This class stores a configuration entry and provides methods to access details about that entry.


Constructor Summary
ConfigurationEntry(String entryName, String entryValue)
          Class creator.
 
Method Summary
 String getEntryName()
          Getter for the entry's name.
 String getEntryValue()
          Getter for the entry's value.
 int getEntryValueAsInteger()
          Retrieves the value of the specified configuration entry as an integer value.
 void setEntryName(String entryName)
          Setter for the entry's name.
 void setEntryValue(String entryValue)
          Setter for the entry's value.
 String toFullString()
          Returns a string representation of the ConfigurationEntry class, including it's name and value.
 String toString()
          Returns a string representation of the ConfigurationEntry class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationEntry

public ConfigurationEntry(String entryName,
                          String entryValue)
Class creator. Initializes class variables using the information passed in.
Parameters:
entryName - The name of entry
entryValue - The value of entry
Method Detail

getEntryName

public String getEntryName()
Getter for the entry's name.
Returns:
The name of the entry.

getEntryValue

public String getEntryValue()
Getter for the entry's value.
Returns:
The value of the entry.

getEntryValueAsInteger

public int getEntryValueAsInteger()
Retrieves the value of the specified configuration entry as an integer value.
Returns:
The value of the entry.

setEntryName

public void setEntryName(String entryName)
Setter for the entry's name.
Parameters:
entryName - The value to set the name of the entry to.

setEntryValue

public void setEntryValue(String entryValue)
Setter for the entry's value.
Parameters:
entryValue - The value to set the value of the entry to.

toString

public String toString()
Returns a string representation of the ConfigurationEntry class. We are using the entry name as the string representation.
Overrides:
toString in class Object
Returns:
The string representation of the entry.

toFullString

public String toFullString()
Returns a string representation of the ConfigurationEntry class, including it's name and value.
Returns:
The full string representation of the entry.