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
Modifier and Type | Method and Description |
---|---|
SimpleType |
getType()
Return the Data type.
|
java.lang.Object |
getValue()
Return 0.
|
java.util.List<java.lang.Object> |
getValueAsArray()
Return the data value as an array.
|
boolean |
getValueAsBoolean()
Return the data value as a boolean.
|
byte |
getValueAsByte()
Return the data value as a byte.
|
char |
getValueAsChar()
Return the data value as a char.
|
double |
getValueAsDouble()
Return the data value as a double.
|
double |
getValueAsDouble(short unit)
Return the data value as a double, in a specified unit.
|
float |
getValueAsFloat()
Return the data value as a float.
|
float |
getValueAsFloat(short unit)
Return the data value as a float, in a specified unit.
|
int |
getValueAsInt()
Return the value of as an int.
|
long |
getValueAsLong()
Return the data value as a long.
|
short |
getValueAsShort()
Return the data value as a short.
|
java.lang.String |
getValueAsString()
Return the data value as a String.
|
java.util.List<java.lang.Object> |
getValueAsStructure()
Return the data value as a Structure.
|
java.util.List<java.lang.Object> |
getValueAsUnion()
Return the data value as an Union.
|
boolean |
isEqualsTo(java.lang.Object o)
Return false.
|
short |
setValue(java.lang.Object value)
Do nothing and returns
DataState.STATE_INVALID . |
clone, copy, copy, copy, copyValue, getDataChangeBehavior, getDefinition, getDescription, getName, getTopic, getValue, getValueAsData, getValueAsJSON, getValueAsMap, getValueAsURL, getValueAsXML, hasChanged, isContinuous, isNumeric, setBooleanValue, setByteValue, setChanged, setCharValue, setDoubleValue, setDoubleValue, setFloatValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, setValueFromInstance, touch
public SimpleType getType()
getType
in class Data<SimpleType>
public boolean isEqualsTo(java.lang.Object o)
isEqualsTo
in class Data<SimpleType>
o
- the specified object valuepublic short setValue(java.lang.Object value)
DataState.STATE_INVALID
.setValue
in class Data<SimpleType>
value
- the valueSTATE_INVALID
public java.lang.Object getValue()
getValue
in class Data<SimpleType>
public char getValueAsChar()
getValueAsChar
in class Data<SimpleType>
public double getValueAsDouble()
getValueAsDouble
in class Data<SimpleType>
public double getValueAsDouble(short unit)
getValueAsDouble
in class Data<SimpleType>
unit
- the unitpublic float getValueAsFloat()
getValueAsFloat
in class Data<SimpleType>
public float getValueAsFloat(short unit)
getValueAsFloat
in class Data<SimpleType>
unit
- the unitpublic byte getValueAsByte()
getValueAsByte
in class Data<SimpleType>
public boolean getValueAsBoolean()
getValueAsBoolean
in class Data<SimpleType>
public int getValueAsInt()
getValueAsInt
in class Data<SimpleType>
public long getValueAsLong()
getValueAsLong
in class Data<SimpleType>
public short getValueAsShort()
getValueAsShort
in class Data<SimpleType>
public java.lang.String getValueAsString()
getValueAsString
in class Data<SimpleType>
public java.util.List<java.lang.Object> getValueAsArray()
getValueAsArray
in class Data<SimpleType>
public java.util.List<java.lang.Object> getValueAsStructure()
getValueAsStructure
in class Data<SimpleType>
public java.util.List<java.lang.Object> getValueAsUnion()
getValueAsUnion
in class Data<SimpleType>
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence