public abstract class AbstractDataParameters extends Object implements DataParameters
Constructor and Description |
---|
AbstractDataParameters() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears the parameter container.
|
protected void |
copyValuesTo(AbstractDataParameters target) |
void |
delegate(DynObject dynObject) |
DataParameters |
getCopy()
Creates and returns a new copy of this DataParameters.
|
protected abstract DelegatedDynObject |
getDelegatedDynObject()
Returns an instance of the
DynObject to delegate to. |
DynClass |
getDynClass() |
Object |
getDynValue(String name) |
boolean |
hasDynValue(String name) |
void |
implement(DynClass dynClass) |
Object |
invokeDynMethod(int code,
Object[] args) |
Object |
invokeDynMethod(String name,
Object[] args) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDynValue(String name,
Object value) |
String |
toString() |
void |
validate()
Checks its valid
|
public Object getDynValue(String name)
getDynValue
in interface DynObject
public void setDynValue(String name, Object value)
setDynValue
in interface DynObject
public void clear()
DataParameters
clear
in interface DataParameters
clear
in interface DynObject
protected void copyValuesTo(AbstractDataParameters target)
public DataParameters getCopy()
DataParameters
getCopy
in interface DataParameters
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public DynClass getDynClass()
getDynClass
in interface DynObject
public boolean hasDynValue(String name)
hasDynValue
in interface DynObject
public Object invokeDynMethod(String name, Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public Object invokeDynMethod(int code, Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public void validate() throws ValidateDataParametersException
DataParameters
validate
in interface DataParameters
ValidateDataParametersException
- if any problem was detectedprotected abstract DelegatedDynObject getDelegatedDynObject()
DynObject
to delegate to.DynObject