public class DefaultPropertyGetter extends Object implements PropertyGetter
Properties
instance.Constructor and Description |
---|
DefaultPropertyGetter(Properties properties)
Creates a default property getter with a given
Properties instance. |
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String propName)
Gets a property with a given name or a
null value, if the property is not found. |
String |
getProperty(String propName,
String defaultValue)
Gets a property with a given name.
|
public DefaultPropertyGetter(Properties properties)
Properties
instance.properties
- Object with properties.public String getProperty(String propName, String defaultValue)
PropertyGetter
defaultValue
.getProperty
in interface PropertyGetter
propName
- Property name.defaultValue
- The default value.defaultValue
, if property is not found.public String getProperty(String propName)
PropertyGetter
null
value, if the property is not found.getProperty
in interface PropertyGetter
propName
- Property name.null
, if property is not found.Copyright © 2010–2017 PerfCake Community. All rights reserved.