| java.lang.Object org.igfay.jfig.JFigDictionary
JFigDictionary | public class JFigDictionary implements java.io.Serializable(Code) | | JFigDictionary contains the configuration entries. It is a TreeMap of
TreeMaps. There is a map for each section. Each section map in turn
holds its key/value pairs.
The dictionary provides methods to set and retrieve the key/value entries.
It can also print itself.
author: bconrad |
JFigDictionary | public JFigDictionary()(Code) | | default constructor
|
getDictionaryOfSectionDictionaries | public java.util.TreeMap getDictionaryOfSectionDictionaries()(Code) | | Return the DictionaryOfSectionDictionaries value
|
getHtmlString | public String getHtmlString()(Code) | | Return the configuration dictionary as a string embedded with
html.
This method will be replaced with a better jsp.
String |
getSectionDictionary | public TreeMap getSectionDictionary(String sectionName)(Code) | | Return a named section dictionary
Does the same job as getSectionNamed but the section
name must match with case sensitivity.
Here for better performance when we are ensured the section will match.
|
getSectionIterator | public Iterator getSectionIterator()(Code) | | Return the DictionaryOfSectionDictionaries value as an iterator
|
getSectionNamed | protected TreeMap getSectionNamed(String sectionName, boolean addIfNull)(Code) | | Return a named section dictionary
Iterate through all the section dictionaries so we can
check without case sensitivity.
|
getValue | public String getValue(String section, String key) throws JFigException(Code) | | Return the value for this section and key.
If not found, throw JFigException.
Parameters: section - Description of Parameter Parameters: key - Description of Parameter The Value value exception: JFigException - Description of Exception |
getValue | public String getValue(String section, String key, String notFoundValue)(Code) | | Return the value for this section and key.
If not found, return defaultValue.
Parameters: section - Description of Parameter Parameters: key - Description of Parameter Parameters: notFoundValue - Description of Parameter The Value value |
print | public void print()(Code) | | Print the configuration dictionary.
Sections and keys will be in alphabetical order.
|
printConfigurationDictionary | public void printConfigurationDictionary()(Code) | | Print the configuration dictionary.
Sections and keys will be in alphabetical order.
|
setConfigurationValue | protected void setConfigurationValue(String sectionName, String keyString, String valueString)(Code) | | Set a value for a given section and key.
Parameters: sectionName - The new ConfigurationValue value Parameters: keyString - The new ConfigurationValue value Parameters: valueString - The new ConfigurationValue value |
setHtmlLString | public void setHtmlLString(String htmlString)(Code) | | Sets the htmlString.
Parameters: htmlString - The htmlString to set |
|
|