1 23 24 package org.apache.slide.util.conf; 25 26 import java.util.*; 27 28 41 public interface Configuration { 42 43 48 public String getName(); 49 50 58 public Configuration getConfiguration(String child) 59 throws ConfigurationException; 60 61 69 public Enumeration getConfigurations(String name); 70 71 78 public String getAttribute(String paramName) 79 throws ConfigurationException; 80 81 91 public int getAttributeAsInt(String paramName) 92 throws ConfigurationException; 93 94 104 public long getAttributeAsLong(String paramName) 105 throws ConfigurationException; 106 107 117 public float getAttributeAsFloat(String paramName) 118 throws ConfigurationException; 119 120 130 public boolean getAttributeAsBoolean(String paramName) 131 throws ConfigurationException; 132 133 138 public String getValue(); 139 140 147 public int getValueAsInt() 148 throws ConfigurationException; 149 150 157 public float getValueAsFloat() 158 throws ConfigurationException; 159 160 167 public boolean getValueAsBoolean() 168 throws ConfigurationException; 169 170 177 public long getValueAsLong() 178 throws ConfigurationException; 179 180 189 public String getValue(String defaultValue); 190 191 200 public int getValueAsInt(int defaultValue); 201 202 211 public long getValueAsLong(long defaultValue); 212 213 222 public float getValueAsFloat(float defaultValue); 223 224 233 public boolean getValueAsBoolean(boolean defaultValue); 234 235 246 public String getAttribute(String name, String defaultValue); 247 248 259 public int getAttributeAsInt(String name, int defaultValue); 260 261 272 public long getAttributeAsLong(String name, long defaultValue); 273 274 285 public float getAttributeAsFloat(String name, float defaultValue); 286 287 298 public boolean getAttributeAsBoolean(String name, boolean defaultValue); 299 300 307 public String getLocation(); 308 309 } 310 | Popular Tags |