|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.commons.PropertyStore
public abstract class PropertyStore
Abstract class for storing SDK properties. Provides methods to automatically convert properties from Strings to the specified
types - if the property cannot be converted a RuntimeException will be thrown.
Implement the getProperty() and setProperty() methods to provide a custom property store.
| Constructor Summary | |
|---|---|
PropertyStore()
|
|
| Method Summary | |
|---|---|
Boolean |
getBooleanProperty(String property)
Gets the value of a Boolean property. |
Double |
getDoubleProperty(String property)
Gets the value of a Double property. |
Integer |
getIntegerProperty(String property)
Gets the value of an Integer property. |
Long |
getLongProperty(String property)
Gets the value of a Long property. |
abstract String |
getProperty(String property)
Gets the value associated with the given property. |
abstract void |
setProperty(String property,
String value)
Sets the property-value pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyStore()
| Method Detail |
|---|
public abstract String getProperty(String property)
property - the property name
public abstract void setProperty(String property,
String value)
property - the property namevalue - the property valuepublic Integer getIntegerProperty(String property)
property - the property name
public Long getLongProperty(String property)
property - the property name
public Double getDoubleProperty(String property)
property - the property name
public Boolean getBooleanProperty(String property)
property - the property name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||