|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configuration
Defines the main Any23 configuration.
| Method Summary | |
|---|---|
boolean |
defineProperty(String propertyName)
Checks whether a property is defined or not in configuration. |
String |
getConfigurationDump()
Returns a human readable string containing the configuration dump. |
boolean |
getFlagProperty(String propertyName)
Returns the value of a flag property. |
String[] |
getProperties()
Returns all the defined configuration properties. |
String |
getProperty(String propertyName,
String defaultValue)
Returns the value of a specified property, of the default value if property is not defined. |
int |
getPropertyIntOrFail(String propertyName)
Returns the Integer value of the specified propertyName or raises an exception
if propertyName is not defined. |
String |
getPropertyOrFail(String propertyName)
Returns the value of the specified propertyName or raises an exception
if propertyName is not defined. |
| Method Detail |
|---|
String[] getProperties()
boolean defineProperty(String propertyName)
propertyName - name of property to check.
true if defined, false otherwise.
String getProperty(String propertyName,
String defaultValue)
propertyName - name of propertydefaultValue - default value if not found.
String getPropertyOrFail(String propertyName)
propertyName or raises an exception
if propertyName is not defined.
propertyName - name of property to be returned.
IllegalArgumentException - if the property name is not defined
or the found property value is blank or empty.int getPropertyIntOrFail(String propertyName)
Integer value of the specified propertyName or raises an exception
if propertyName is not defined.
propertyName - name of property to be returned.
NullPointerException - if the property name is not defined.
IllegalArgumentException - if the found property value is blank or empty.
NumberFormatException - if the found property value is not a valid Integer.boolean getFlagProperty(String propertyName)
on if flag is active (true is returned).
off if flag is inactive (false is returned).
propertyName - name of property flag.
true for on, false for off.
IllegalArgumentException - if the propertyName is not declared.String getConfigurationDump()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||