public abstract class AbstractBaseParams extends Object implements ResourceParams
| Modifier and Type | Field and Description |
|---|---|
private boolean |
changed
The flag that indicates if the resource params has changed.
|
private String |
key
The dynamic key used to store the resource into a map.
|
private static org.slf4j.Logger |
LOGGER
The class logger.
|
PARAMETER_SEPARATOR| Constructor and Description |
|---|
AbstractBaseParams()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateAutoRefresh()
Activate AutoRefresh that will mark the
ResourceParams as 'Updated' to force the rebuild of the resource on next call. |
protected abstract List<? extends Object> |
getFieldValues()
Return all values of
ParameterEntry object. |
String |
getKey()
Return the dynamic key used to hold resources without static field.
|
boolean |
hasChanged()
Checks for resource changes.
|
void |
hasChanged(boolean changed)
Define if the resource has changed or not.
|
protected boolean |
readBoolean(String parameter)
Read a boolean string value.
|
protected double |
readDouble(String doubleString,
double min,
double max)
Read a double string value.
|
protected int |
readInteger(String intString,
int min,
int max)
Read ab integer string value.
|
void |
setKey(String key)
Define the dynamic key used to hold resources without static field.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitparseprivate static final org.slf4j.Logger LOGGER
private boolean changed
private String key
public AbstractBaseParams()
public void activateAutoRefresh()
ResourceParams as 'Updated' to force the rebuild of the resource on next call.activateAutoRefresh in interface ResourceParamspublic boolean hasChanged()
hasChanged in interface ResourceParamspublic void hasChanged(boolean changed)
hasChanged in interface ResourceParamschanged - the changed argumentpublic String getKey()
ResourceParamsgetKey in interface ResourceParamspublic void setKey(String key)
ResourceParamssetKey in interface ResourceParamskey - The key to set.protected double readDouble(String doubleString, double min, double max)
doubleString - the double valuemin - the minimum value allowedmax - the maximum value allowedprotected int readInteger(String intString, int min, int max)
intString - the integer valuemin - the minimum value allowedmax - the maximum value allowedprotected boolean readBoolean(String parameter)
parameter - the boolean string valueprotected abstract List<? extends Object> getFieldValues()
ParameterEntry object.Copyright © 2011–2014 JRebirth OSS. All rights reserved.