| java.lang.Object com.sun.midp.main.Configuration
Configuration | public class Configuration (Code) | | access the implementation configuration file parameters.
|
Method Summary | |
public static int | getIntProperty(String key, int def) Gets the implementation property indicated by the specified key or
returns the specified default value as an int.
Parameters: key - the name of the implementation property. Parameters: def - the default value for the property if notspecified in the configuration files or command line over rides. | public static int | getNonNegativeIntProperty(String key, int def) Gets the implementation property indicated by the specified key or
returns the specified default value as an non-zero int.
Parameters: key - the name of the implementation property. Parameters: def - the default value for the property if notspecified in the configuration files or command line over rides. | public static int | getPositiveIntProperty(String key, int def) Gets the implementation property indicated by the specified key or
returns the specified default value as an positive int.
Parameters: key - the name of the implementation property. Parameters: def - the default value for the property if notspecified in the configuration files or command line over rides. | public static String | getProperty(String key) Gets the implementation property indicated by the specified key.
Parameters: key - the name of the implementation property. | public static String | getPropertyDefault(String key, String def) Gets the implementation property indicated by the specified key or
returns the specified default value.
Parameters: key - the name of the implementation property. Parameters: def - the default value for the property if notspecified in the configuration files or command line over rides. |
getIntProperty | public static int getIntProperty(String key, int def)(Code) | | Gets the implementation property indicated by the specified key or
returns the specified default value as an int.
Parameters: key - the name of the implementation property. Parameters: def - the default value for the property if notspecified in the configuration files or command line over rides. the int value of the implementation property,or def if there is no property with that key orthe config value is not an int. exception: NullPointerException - if key isnull . exception: IllegalArgumentException - if key is empty. |
getNonNegativeIntProperty | public static int getNonNegativeIntProperty(String key, int def)(Code) | | Gets the implementation property indicated by the specified key or
returns the specified default value as an non-zero int.
Parameters: key - the name of the implementation property. Parameters: def - the default value for the property if notspecified in the configuration files or command line over rides. the int value of the implementation property,or def if there is no property with that key orthe config value is not an int. exception: NullPointerException - if key isnull . exception: IllegalArgumentException - if key is empty. |
getPositiveIntProperty | public static int getPositiveIntProperty(String key, int def)(Code) | | Gets the implementation property indicated by the specified key or
returns the specified default value as an positive int.
Parameters: key - the name of the implementation property. Parameters: def - the default value for the property if notspecified in the configuration files or command line over rides. the int value of the implementation property,or def if there is no property with that key orthe config value is not a positive int (zero is notpositive). exception: NullPointerException - if key isnull . exception: IllegalArgumentException - if key is empty. |
getProperty | public static String getProperty(String key)(Code) | | Gets the implementation property indicated by the specified key.
Parameters: key - the name of the implementation property. the string value of the implementation property,or null if there is no property with that key. exception: NullPointerException - if key isnull . exception: IllegalArgumentException - if key is empty. |
getPropertyDefault | public static String getPropertyDefault(String key, String def)(Code) | | Gets the implementation property indicated by the specified key or
returns the specified default value.
Parameters: key - the name of the implementation property. Parameters: def - the default value for the property if notspecified in the configuration files or command line over rides. the string value of the implementation property,or def if there is no property with that key. exception: NullPointerException - if key isnull . exception: IllegalArgumentException - if key is empty. |
|
|