public class DMXWebModel extends Object implements Serializable
DMXModel
, this class must be
safe for use within session. No data is allowed to be shared among sessions.Constructor and Description |
---|
DMXWebModel(DMXModel model)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String name)
Returns variable with specified name/ID.
|
Object |
getDataValue(String dataId)
Returns value of model data with specified ID.
|
Map<String,Object> |
getDataValues(String... dataIds)
Returns values of model data with specified IDs.
|
void |
setDataValues(Map<String,Object> map)
Sets values for data specified in a map.
|
void |
setValue(String id,
Object value)
Sets the value of the variable with specified ID.
|
public DMXWebModel(DMXModel model)
model
- source data modelpublic Object get(String name)
name
- variable name/IDpublic void setValue(String id, Object value)
id
- variable IDvalue
- variable valuepublic Map<String,Object> getDataValues(String... dataIds)
dataIds
- IDs of data to getpublic Object getDataValue(String dataId)
dataId
- ID under which data is registeredCopyright © 2012-2014 Vektor Software. All Rights Reserved.