|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.igfay.jfig.JFigDictionary
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.
Constructor Summary | |
JFigDictionary()
default constructor |
Method Summary | |
void |
addKeyValueToSection(java.lang.String section,
java.lang.String key,
java.lang.String value)
|
java.util.TreeMap |
getDictionaryOfSectionDictionaries()
Return the DictionaryOfSectionDictionaries value |
java.lang.String |
getHtmlString()
Return the configuration dictionary as a string embedded with html. |
java.util.TreeMap |
getSectionDictionary(java.lang.String sectionName)
Return a named section dictionary Does the same job as getSectionNamed but the section name must match with case sensitivity. |
java.util.Iterator |
getSectionIterator()
Return the DictionaryOfSectionDictionaries value as an iterator |
protected java.util.TreeMap |
getSectionNamed(java.lang.String sectionName)
|
protected java.util.TreeMap |
getSectionNamed(java.lang.String sectionName,
boolean addIfNull)
Return a named section dictionary Iterate through all the section dictionaries so we can check without case sensitivity. |
java.lang.String |
getValue(java.lang.String section,
java.lang.String key)
Return the value for this section and key. |
java.lang.String |
getValue(java.lang.String section,
java.lang.String key,
java.lang.String notFoundValue)
Return the value for this section and key. |
boolean |
isHidden(java.lang.String key)
|
void |
print()
Print the configuration dictionary. |
void |
printConfigurationDictionary()
Deprecated. |
protected void |
setConfigurationValue(java.lang.String sectionName,
java.lang.String keyString,
java.lang.String valueString)
Set a value for a given section and key. |
void |
setHtmlLString(java.lang.String htmlString)
Sets the htmlString. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JFigDictionary()
Method Detail |
public void addKeyValueToSection(java.lang.String section, java.lang.String key, java.lang.String value)
public void printConfigurationDictionary()
public void print()
public java.lang.String getHtmlString()
public boolean isHidden(java.lang.String key)
public java.util.TreeMap getDictionaryOfSectionDictionaries()
public java.util.Iterator getSectionIterator()
public java.util.TreeMap getSectionDictionary(java.lang.String sectionName)
protected java.util.TreeMap getSectionNamed(java.lang.String sectionName)
protected java.util.TreeMap getSectionNamed(java.lang.String sectionName, boolean addIfNull)
public java.lang.String getValue(java.lang.String section, java.lang.String key) throws JFigException
section
- Description of Parameterkey
- Description of Parameter
JFigException
- Description of Exceptionpublic java.lang.String getValue(java.lang.String section, java.lang.String key, java.lang.String notFoundValue)
section
- Description of Parameterkey
- Description of ParameternotFoundValue
- Description of Parameter
protected void setConfigurationValue(java.lang.String sectionName, java.lang.String keyString, java.lang.String valueString)
sectionName
- The new ConfigurationValue valuekeyString
- The new ConfigurationValue valuevalueString
- The new ConfigurationValue valuepublic void setHtmlLString(java.lang.String htmlString)
htmlString
- The htmlString to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |