|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectjava.util.AbstractMap<K,V>
java.util.HashMap
com.wowza.wms.application.WMSProperties
public class WMSProperties
WMSProperties: generic properties container used by many class to store extended property information. Acts like a simple Map with some simple utilities for performing type conversion.
| Constructor Summary | |
|---|---|
WMSProperties()
|
|
| Method Summary | |
|---|---|
static void |
cloneProperties(WMSProperties from,
WMSProperties to)
Copy all properties from "from" properties object to "to" properties object. |
String[] |
getAllAsStrings()
Return all properties as String[]. |
Object |
getProperty(String name)
Get property value as generic object. |
boolean |
getPropertyBoolean(String name,
boolean defaultVal)
Get property as boolean, return default value if does not exist. |
double |
getPropertyDouble(String name,
double defaultVal)
Get property as double, return default value if does not exist. |
int |
getPropertyInt(String name,
int defaultVal)
Get property as int, return default value if does not exist. |
long |
getPropertyLong(String name,
long defaultVal)
Get property as long, return default value if does not exist. |
String |
getPropertyStr(String name)
Get property as String |
String |
getPropertyStr(String name,
String defaultVal)
Get property as String, return default value if does not exist. |
void |
setProperty(String name,
Object value)
Set property to generic object. |
String |
toString()
|
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public WMSProperties()
| Method Detail |
|---|
public static void cloneProperties(WMSProperties from,
WMSProperties to)
from - source propertiesto - destination propertiespublic String[] getAllAsStrings()
public Object getProperty(String name)
name - property name
public boolean getPropertyBoolean(String name,
boolean defaultVal)
name - property namedefaultVal - default value
public double getPropertyDouble(String name,
double defaultVal)
name - property namedefaultVal - default value
public int getPropertyInt(String name,
int defaultVal)
name - property namedefaultVal - default value
public long getPropertyLong(String name,
long defaultVal)
name - property namedefaultVal - default value
public String getPropertyStr(String name)
name - property name
public String getPropertyStr(String name,
String defaultVal)
name - property namedefaultVal - default value
public void setProperty(String name,
Object value)
name - property namevalue - valuepublic String toString()
toString in class java.util.AbstractMap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||