| 1 package org.igfay.jfig; 2 3 import java.util.List ; 4 import java.util.Map ; 5 import java.util.Properties ; 6 7 32 public interface JFigIF { 33 40 public abstract void addConfigEventListener(JFigListener listener); 41 44 public abstract void print(); 45 49 public abstract void printConfigurationDictionary(); 50 53 public abstract void reprocessConfiguration() throws JFigException; 54 57 public abstract void reprocessConfiguration(JFigLocator locator) throws JFigException; 58 63 public abstract JFigDictionary getConfigDictionary(); 64 70 public abstract String [] getArrayValue(String section, String key) 71 throws JFigException; 72 75 public abstract boolean getBooleanValue( 76 String section, 77 String key, 78 String notFoundValue); 79 88 public abstract float getFloatValue( 89 String section, 90 String key, 91 String notFoundValue) 92 throws JFigException; 93 96 public abstract int getIntegerValue(String section, String key) 97 throws JFigException; 98 101 public abstract int getIntegerValue( 102 String section, 103 String key, 104 String notFoundValue); 105 113 public abstract String getValue( 114 String section, 115 String key, 116 String defaultValue); 117 128 public abstract List getValuesStartingWith(String section, String key); 129 140 public Map getEntriesStartingWith(String section, String key); 141 142 146 public abstract String getValue(String section, String key) 147 throws JFigException; 148 149 154 public Map getSection(String section); 155 156 157 162 public abstract Properties getSectionAsProperties(String section); 163 164 169 public abstract Properties getSectionAsProperties(String section, Properties properties); 170 171 175 public abstract void setConfigurationValue( 176 String sectionName, 177 String keyString, 178 String valueString); 179 182 public abstract String [] getArrayValue( 183 String section, 184 String key, 185 String notFoundValue); 186 } | Popular Tags |