|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cisco.provisioning.cpe.extensions.services.CSRCProperties
public abstract class CSRCProperties
The CSRCProperties interface defines property accessor methods that allow extension points to query CSRC properties. This interface is similar to the java.lang.Properties class, but differs in that it supports more data types than String (e.g., boolean, int, long). It is left to the classes that implement CSRCProperties to define the allowable property keys and property values/data types.
| Constructor Summary | |
|---|---|
CSRCProperties()
|
|
| Method Summary | |
|---|---|
Map |
getAllProperties()
Returns a Map of available properties from property set. |
abstract boolean |
getBooleanProperty(String key)
Return the value of the named property as a boolean. |
abstract int |
getIntProperty(String key)
Return the value of the named property as an integer. |
abstract long |
getLongProperty(String key)
Return the value of the named property as a long. |
abstract Object |
getObjectProperty(String key)
Returns the value of the named property as an Object. |
abstract Object |
getObjectProperty(String key,
Object defaultValue)
Returns the value of the named property as a long. |
abstract String |
getProperty(String key)
Return the value of the named property. |
abstract boolean |
getProperty(String key,
boolean defaultValue)
Return the value of the named property as a boolean. |
abstract int |
getProperty(String key,
int defaultValue)
Return the value of the named property as an integer. |
abstract long |
getProperty(String key,
long defaultValue)
Return the value of the named property as a long. |
abstract String |
getProperty(String key,
String defaultValue)
Return the value of the named roperty returning a default value if a property of the specified key is not in the list of properties (or in the default list of properties). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSRCProperties()
| Method Detail |
|---|
public abstract boolean getBooleanProperty(String key)
key - The property key.
IllegalArgumentException - if the property defined by the key
is not found, or the property value can not be parsed as a boolean.
public abstract boolean getProperty(String key,
boolean defaultValue)
key - The property key.defaultValue - The value to return if the property is not found.
IllegalArgumentException - if the value is not a boolean.
public abstract String getProperty(String key,
String defaultValue)
key - the property keydefaultValue - the value to return if property does not exists
public abstract String getProperty(String key)
key - the property key
IllegalArgumentException - if property key not found.
public abstract int getProperty(String key,
int defaultValue)
key - the property keydefaultValue - the value to return if the property is not found
IllegalArgumentException - if property key not found.public abstract int getIntProperty(String key)
key - the property key
public abstract long getLongProperty(String key)
key - the property key.
IllegalArgumentException - if the property defined by the key is
not found.
public abstract long getProperty(String key,
long defaultValue)
key - the property keydefaultValue - the value to return if the property is not found
public abstract Object getObjectProperty(String key)
key - the property key
IllegalArgumentException - if property key not found.
public abstract Object getObjectProperty(String key,
Object defaultValue)
key - the property keydefaultValue - the value to return if the property is not found
public Map getAllProperties()
UnsupportedOperationException - if this method is
called on property collection that does not suppor this feature
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||