1 55 package org.apache.avalon.framework.configuration; 56 57 176 public interface Configuration 177 { 178 183 String getName(); 184 185 192 String getLocation(); 193 194 217 String getNamespace() throws ConfigurationException; 218 219 236 Configuration getChild( String child ); 237 238 249 Configuration getChild( String child, boolean createNew ); 250 251 258 Configuration[] getChildren(); 259 260 268 Configuration[] getChildren( String name ); 269 270 281 String [] getAttributeNames(); 282 283 290 String getAttribute( String paramName ) throws ConfigurationException; 291 292 302 int getAttributeAsInteger( String paramName ) throws ConfigurationException; 303 304 313 long getAttributeAsLong( String name ) throws ConfigurationException; 314 315 324 float getAttributeAsFloat( String paramName ) throws ConfigurationException; 325 326 335 boolean getAttributeAsBoolean( String paramName ) throws ConfigurationException; 336 337 343 String getValue() throws ConfigurationException; 344 345 352 int getValueAsInteger() throws ConfigurationException; 353 354 360 float getValueAsFloat() throws ConfigurationException; 361 362 368 boolean getValueAsBoolean() throws ConfigurationException; 369 370 376 long getValueAsLong() throws ConfigurationException; 377 378 387 String getValue( String defaultValue ); 388 389 398 int getValueAsInteger( int defaultValue ); 399 400 409 long getValueAsLong( long defaultValue ); 410 411 420 float getValueAsFloat( float defaultValue ); 421 422 431 boolean getValueAsBoolean( boolean defaultValue ); 432 433 444 String getAttribute( String name, String defaultValue ); 445 446 457 int getAttributeAsInteger( String name, int defaultValue ); 458 459 470 long getAttributeAsLong( String name, long defaultValue ); 471 472 483 float getAttributeAsFloat( String name, float defaultValue ); 484 485 496 boolean getAttributeAsBoolean( String name, boolean defaultValue ); 497 } 498 | Popular Tags |