1 8 package org.codehaus.dna; 9 10 20 public interface Configuration 21 { 22 27 String getName(); 28 29 36 String getPath(); 37 38 46 String getLocation(); 47 48 53 Configuration[] getChildren(); 54 55 61 Configuration[] getChildren( String name ); 62 63 70 Configuration getChild( String name ); 71 72 81 Configuration getChild( String name, boolean createChild ); 82 83 89 String getValue() 90 throws ConfigurationException; 91 92 99 String getValue( String defaultValue ); 100 101 108 int getValueAsInteger() 109 throws ConfigurationException; 110 111 119 int getValueAsInteger( int defaultValue ); 120 121 128 long getValueAsLong() 129 throws ConfigurationException; 130 131 139 long getValueAsLong( long defaultValue ); 140 141 148 boolean getValueAsBoolean() 149 throws ConfigurationException; 150 151 159 boolean getValueAsBoolean( boolean defaultValue ); 160 161 168 float getValueAsFloat() 169 throws ConfigurationException; 170 171 179 float getValueAsFloat( float defaultValue ); 180 181 186 String [] getAttributeNames(); 187 188 196 String getAttribute( String name ) 197 throws ConfigurationException; 198 199 208 String getAttribute( String name, String defaultValue ); 209 210 219 int getAttributeAsInteger( String name ) 220 throws ConfigurationException; 221 222 232 int getAttributeAsInteger( String name, int defaultValue ); 233 234 243 long getAttributeAsLong( String name ) 244 throws ConfigurationException; 245 246 256 long getAttributeAsLong( String name, long defaultValue ); 257 258 267 boolean getAttributeAsBoolean( String name ) 268 throws ConfigurationException; 269 270 280 boolean getAttributeAsBoolean( String name, boolean defaultValue ); 281 282 291 float getAttributeAsFloat( String name ) 292 throws ConfigurationException; 293 294 304 float getAttributeAsFloat( String name, float defaultValue ); 305 } 306 | Popular Tags |