public class ParamsImpl extends java.lang.Object implements Params
Modifier and Type | Field and Description |
---|---|
static int |
CHECK |
static int |
CHOICE |
static int |
MULTI_CHECK |
static int |
NONE |
static int |
SLIDER |
Constructor and Description |
---|
ParamsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
changeParamValue(java.lang.String id,
java.lang.Object value)
Asigna un valor para un parámetro existens.
|
void |
clear()
Inicializa la lista de parámetros
|
java.lang.Object |
clone()
Clones this object
|
int |
getNumParams()
Obtiene el número de parámetros.
|
Param |
getParam(int param)
Obtiene el parámetro de la posición definida por param
|
Param |
getParamById(java.lang.String id)
Obtiene un parámetro de la lista a partir de su identificador
|
java.util.List<Param> |
getParams()
Devuelve el array de los Params
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
removeParam(java.lang.String id)
Borra los parametros asociados a ese id
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setManagerID(java.lang.String id) |
void |
setParam(Param param)
Asigna el parámetro pasado a la lista de parámetros necesitados por el driver
|
void |
setParam(java.lang.String id,
java.lang.Object value)
Asigna un parámetro.
|
void |
setParam(java.lang.String id,
java.lang.Object value,
int type,
java.lang.String[] list)
Asigna un parámetro.
|
public static final int NONE
public static final int CHECK
public static final int CHOICE
public static final int SLIDER
public static final int MULTI_CHECK
public void setManagerID(java.lang.String id)
setManagerID
in interface Params
public Param getParam(int param)
public void setParam(Param param)
public Param getParamById(java.lang.String id)
getParamById
in interface Params
id
- Identificador del parámetropublic void setParam(java.lang.String id, java.lang.Object value, int type, java.lang.String[] list)
Params
public void setParam(java.lang.String id, java.lang.Object value)
Params
public void removeParam(java.lang.String id)
removeParam
in interface Params
id
- public void changeParamValue(java.lang.String id, java.lang.Object value)
changeParamValue
in interface Params
id
- Identificador del parámetrovalue
- Valor a asignarpublic int getNumParams()
getNumParams
in interface Params
public java.util.List<Param> getParams()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Params
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public static void registerPersistence()