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 |
---|
JSON(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.
|
org.json.JSONElement |
getValueAsJSON()
Return the data value as a JSONElement.
|
java.lang.String |
getValueAsString()
Return the data value as a String.
|
boolean |
isEqualsTo(java.lang.Object o)
Return true if the current value of the data is equal to a current object value.
|
short |
setStringValue(java.lang.String value)
Set the data String value.
|
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, getValueAsLong, getValueAsMap, getValueAsShort, getValueAsStructure, getValueAsUnion, getValueAsURL, getValueAsXML, hasChanged, isContinuous, isNumeric, setBooleanValue, setByteValue, setChanged, setCharValue, setDoubleValue, setDoubleValue, setFloatValue, setFloatValue, setIntValue, setLongValue, setShortValue, setValueFromInstance, touch
public JSON(ServiceDefinition.Data def)
def
- the ServiceDefinitionpublic short copy(Data<?> data)
public boolean isEqualsTo(java.lang.Object o)
Data
isEqualsTo
in class Data<JSONType>
o
- the specified object valuepublic short setStringValue(java.lang.String value)
setStringValue
in class Data<JSONType>
value
- the valueDataState
public short setValue(java.lang.Object value)
Object.toString()
on the input to set the value.public java.lang.Object getValue()
public java.lang.Object copyValue()
public Data<?> clone() throws java.lang.CloneNotSupportedException
public java.lang.String getValueAsString()
getValueAsString
in class Data<JSONType>
public org.json.JSONElement getValueAsJSON()
getValueAsJSON
in class Data<JSONType>
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence