|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is responsible for the configuration of objects in the MJC layer hierarchy. Configuration sources can be of any kind, the main thing is that the classes can get configuration data of common way.
Method Summary | |
boolean |
getBoolean(java.lang.String id)
Returns a boolean configuraton value for the specified configuration id. |
boolean |
getBoolean(java.lang.String id,
boolean def)
Returns a boolean configuraton value for the specified configuration id. |
java.lang.String |
getConfigurationName()
Returns the MJC name of the MJCConfiguration. |
java.lang.String |
getConfigurationVersion()
Returns the MJC version of the MJCConfiguration. |
int |
getInt(java.lang.String id)
Retuns an int configuration value for the specified configuration id. |
int |
getInt(java.lang.String id,
int def)
Returns an int configuraton value for the specified configuration id. |
int |
getIntFromStrings(java.lang.String id,
java.lang.String[] possibilities,
int[] values,
int def)
Useable if String possible values in the configuration source should be mapped into ints as configuration values. |
java.lang.String |
getString(java.lang.String id)
Returns a String configuraton value for the specified configuration id. |
java.lang.String |
getString(java.lang.String id,
java.lang.String def)
Returns a String configuraton value for the specified configuration id. |
Method Detail |
public int getInt(java.lang.String id) throws java.lang.Exception
String
- id: the required configuration idException:
- if the id is invalid or the id doesn't represent an
int valuepublic boolean getBoolean(java.lang.String id) throws java.lang.Exception
String
- id: the required configuration id
` @return boolean: the configuration boolean matching the configuration idException:
- if the id is invalid or the id doesn't represent a
boolean valuepublic java.lang.String getString(java.lang.String id) throws java.lang.Exception
String
- id: the required configuration idException:
- if the id is invalid or the id doesn't represent a
String valuepublic int getInt(java.lang.String id, int def)
String
- id: the required configuration idint
- def: the specified default valuepublic boolean getBoolean(java.lang.String id, boolean def)
String
- id: the required configuration idboolean
- def: the specified default valuepublic java.lang.String getString(java.lang.String id, java.lang.String def)
String
- id: the required configuration idboolean
- String: the specified default valuepublic int getIntFromStrings(java.lang.String id, java.lang.String[] possibilities, int[] values, int def)
String
- id: the required configuration idString[]
- possibilities: possible Strings acceptable in the
configuration sourceint[]
- values: int values matching the possible Stringsint
- def: the dafault int that should be returned in case of
errorspublic java.lang.String getConfigurationName()
public java.lang.String getConfigurationVersion()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |