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 |
---|
Obj(ServiceDefinition.Data def)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Data<?> |
clone() |
short |
copy(Data<?> data)
Copy the value of another Data.
|
java.lang.Object |
copyValue()
Copy the current value and return it.
|
java.lang.Object |
getValue()
Return the data value.
|
java.lang.String |
getValueAsString()
Return the data value as a String.
|
boolean |
isInstanceChanged()
Return true if the underlying instance has changed (it will be true if it is a different object).
|
short |
setValue(java.lang.Object value)
Set the data value.
|
copy, copy, getDataChangeBehavior, getDefinition, getDescription, getName, getTopic, getType, getValue, getValueAsArray, getValueAsBoolean, getValueAsByte, getValueAsChar, getValueAsData, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFloat, getValueAsInt, getValueAsJSON, getValueAsLong, getValueAsMap, getValueAsShort, getValueAsStructure, getValueAsUnion, getValueAsURL, getValueAsXML, hasChanged, isContinuous, isEqualsTo, isNumeric, setBooleanValue, setByteValue, setChanged, setCharValue, setDoubleValue, setDoubleValue, setFloatValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, setValueFromInstance, touch
public Obj(ServiceDefinition.Data def)
def
- the ServiceDefinitionpublic boolean isInstanceChanged()
public short copy(Data<?> data)
copy
in class Data<ObjectType>
data
- the dataDataState
public short setValue(java.lang.Object value)
setValue
in class Data<ObjectType>
value
- the valueDataState
public java.lang.Object getValue()
getValue
in class Data<ObjectType>
public java.lang.String getValueAsString()
getValueAsString
in class Data<ObjectType>
public java.lang.Object copyValue()
copyValue
in class Data<ObjectType>
public Data<?> clone() throws java.lang.CloneNotSupportedException
clone
in class Data<ObjectType>
java.lang.CloneNotSupportedException
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence