Data.Any, Data.Array, Data.Bool, Data.Byte, Data.Char, Data.Double, Data.Enum, Data.Float, Data.Int, Data.JSON, Data.Long, Data.MapData, Data.Nil, Data.Obj, Data.Short, Data.Str, Data.Structure, Data.Switch, Data.Union, Data.Url, Data.Void, Data.Xml
STATE_INVALID, STATE_MODIFIED, STATE_UNCHANGED
Constructor and Description |
---|
MapData(ServiceDefinition.Data def)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Data<?> |
clone() |
short |
copy(Data<?> data)
Copy the value of another Data.
|
java.util.Map<java.lang.Object,java.lang.Object> |
copyValue()
Copy the current value and return it.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getValue()
Return the data value.
|
boolean |
getValueAsData(Data<?> data)
Apply the value on another data map.
|
short |
setMapValue(java.util.Map<java.lang.Object,java.lang.Object> value)
Set the array value.
|
short |
setValue(java.lang.Object value)
Set the data value.
|
void |
setValue(java.lang.Object v,
java.lang.Object key)
Set the value of an element of the array.
|
copy, copy, getDataChangeBehavior, getDefinition, getDescription, getName, getTopic, getType, getValue, getValueAsArray, getValueAsBoolean, getValueAsByte, getValueAsChar, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFloat, getValueAsInt, getValueAsJSON, getValueAsLong, getValueAsMap, getValueAsShort, getValueAsString, getValueAsStructure, getValueAsUnion, getValueAsURL, getValueAsXML, hasChanged, isContinuous, isEqualsTo, isNumeric, setBooleanValue, setByteValue, setChanged, setCharValue, setDoubleValue, setDoubleValue, setFloatValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, setValueFromInstance, touch
public MapData(ServiceDefinition.Data def)
def
- the ServiceDefinitionpublic short copy(Data<?> data)
public short setMapValue(java.util.Map<java.lang.Object,java.lang.Object> value)
value
- the valueDataState
public short setValue(java.lang.Object value)
public void setValue(java.lang.Object v, java.lang.Object key)
v
- the valuekey
- the keypublic java.util.Map<java.lang.Object,java.lang.Object> getValue()
public boolean getValueAsData(Data<?> data)
getValueAsData
in class Data<MapType>
data
- the data mappublic java.util.Map<java.lang.Object,java.lang.Object> copyValue()
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence