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 |
---|
Enum(ServiceDefinition.Data def)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
short |
copy(Data<?> data)
Copy the value of another Data.
|
java.lang.Integer |
getValue()
Return the data value.
|
int |
getValueAsInt()
Return the data value as an int.
|
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 specified object value.
|
boolean |
isState(EnumType.State state)
Return true if a value of the type is of a specified state.
|
boolean |
isState(java.lang.String name)
Return true if a value of the data is of a specified state.
|
short |
setIntValue(int value)
Set the data int value to set the state.
|
short |
setValue(java.lang.Object value)
Set the data value to set the state.
|
clone, copy, copy, copyValue, getDataChangeBehavior, getDefinition, getDescription, getName, getTopic, getType, getValue, getValueAsArray, getValueAsBoolean, getValueAsByte, getValueAsChar, getValueAsData, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFloat, getValueAsJSON, getValueAsLong, getValueAsMap, getValueAsShort, getValueAsStructure, getValueAsUnion, getValueAsURL, getValueAsXML, hasChanged, isContinuous, isNumeric, setBooleanValue, setByteValue, setChanged, setCharValue, setDoubleValue, setDoubleValue, setFloatValue, setFloatValue, setLongValue, setShortValue, setStringValue, setValueFromInstance, touch
public Enum(ServiceDefinition.Data def)
def
- the ServiceDefinitionpublic short copy(Data<?> data)
public boolean isState(java.lang.String name)
name
- the state namepublic boolean isState(EnumType.State state)
state
- the statepublic boolean isEqualsTo(java.lang.Object o)
isEqualsTo
in class Data<EnumType>
o
- the specified object valuepublic short setValue(java.lang.Object value)
public short setIntValue(int value)
setIntValue
in class Data<EnumType>
value
- the valueDataState
public java.lang.Integer getValue()
public int getValueAsInt()
getValueAsInt
in class Data<EnumType>
public java.lang.String getValueAsString()
getValueAsString
in class Data<EnumType>
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence