public class PropertyDefaults
extends java.lang.Object
Constructor and Description |
---|
PropertyDefaults(java.util.HashMap<java.lang.String,java.lang.String> defaultValueMap) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultValueForKey(java.lang.String key)
Gets the default value of this property defaults for the given key.
|
java.util.Properties |
getProperties()
Gets the properties to use for this property defaults.
|
java.lang.String |
getValueFromProperties(java.lang.String key)
Gets the value for the given key from the previously set properties
or the default value for the key of this property defaults.
|
java.lang.String |
getValueFromProperties(java.lang.String key,
java.util.Properties properties)
Gets the value for the given key from the given properties,
the properties previously set if given properties is
null
or the default value for the key of this property defaults. |
void |
setProperties(java.util.Properties properties)
Sets the properties to use for this property defaults.
|
public PropertyDefaults(java.util.HashMap<java.lang.String,java.lang.String> defaultValueMap)
public void setProperties(java.util.Properties properties)
properties
- The properties to use.public java.lang.String getValueFromProperties(java.lang.String key)
key
- The key of the property value to get.null
if no value exists for the given key.public java.lang.String getValueFromProperties(java.lang.String key, java.util.Properties properties)
null
or the default value for the key of this property defaults.key
- The key of the property value to get.properties
- The properties to get the value from or null
to use previously set properties or to get default value if no property is set.null
if no value exists for the given key.public java.lang.String getDefaultValueForKey(java.lang.String key)
key
- The key of the property value default to get.null
if no default value exists for the given key.public java.util.Properties getProperties()
null
if no properties were set.TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)