DCT Lightfoot v3 API specification

com.dctl.j2me.system
Class PropertyManager

java.lang.Object
  |
  +--com.dctl.j2me.system.PropertyManager

public class PropertyManager
extends Object

The property manager is reponsible for all the system properties. System properties are configured in config.xml and api xml files.


Constructor Summary
PropertyManager()
           
 
Method Summary
static int getIntegerProperty(java.lang.String name, int defaultValue)
          Get a property as an integer.
static java.lang.String getProperty(java.lang.String key)
          Get a property
static void setProperty(java.lang.String key, java.lang.String value)
          Set a property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyManager

public PropertyManager()
Method Detail

getProperty

public static final java.lang.String getProperty(java.lang.String key)
Get a property

Returns:
the value or null if not found

setProperty

public static final void setProperty(java.lang.String key,
                                     java.lang.String value)
Set a property.

Parameters:
key - The key
value - The value

getIntegerProperty

public static final int getIntegerProperty(java.lang.String name,
                                           int defaultValue)
Get a property as an integer. If the property is not set or invalid, return the default

Parameters:
name - The property name
defaultValue - The default value
Returns:
the value
Throws:
NullPointerException - if the key is null
IllegalArgumentException - if the key is empty

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification