public class SearchPropertiesBean extends Object implements SearchProperties
SearchProperties
as simple java bean.Modifier and Type | Field and Description |
---|---|
private Properties |
properties |
KEY_AUTO_REFRESH
Constructor and Description |
---|
SearchPropertiesBean()
The constructor.
|
SearchPropertiesBean(Properties properties)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) Properties |
getProperties()
This method gets the
Properties . |
String |
getProperty(String key)
This method gets a generic property that may influence the
SearchEngine . |
void |
setProperty(String key,
String value)
This method sets the property associated with
key to the given value . |
private Properties properties
getProperty(String)
public SearchPropertiesBean()
public SearchPropertiesBean(Properties properties)
properties
- are the underlying Properties
.public String getProperty(String key)
SearchEngine
. The properties may be implementation-dependent.
Undefined/unsupported properties will simply be ignored.getProperty
in interface SearchProperties
key
- is the key of the requested configuration property.key
or null
if the property is
undefined.SearchProperties.KEY_AUTO_REFRESH
,
Map.get(Object)
,
Properties.getProperty(String)
public void setProperty(String key, String value)
key
to the given value
.key
- is the key of the property to set.value
- is the value of the property to set.getProperty(String)
Properties getProperties()
Properties
.Properties
.Copyright © 2001–2016 mmm-Team. All rights reserved.