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 |
---|
Xml(ServiceDefinition.Data def)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
org.mdiutil.xml.tree.XMLNode |
getValueAsXML()
Return the data value as an XMLNode.
|
org.mdiutil.xml.tree.XMLNode |
getValueAsXML(java.util.List<org.xml.sax.SAXParseException> exceptions)
Return the data value as an XMLNode.
|
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.
|
clone, 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, hasChanged, isContinuous, isNumeric, setBooleanValue, setByteValue, setChanged, setCharValue, setDoubleValue, setDoubleValue, setFloatValue, setFloatValue, setIntValue, setLongValue, setShortValue, setValueFromInstance, touch
public Xml(ServiceDefinition.Data def)
def
- the ServiceDefinitionpublic short copy(Data<?> data)
public boolean isEqualsTo(java.lang.Object o)
Data
isEqualsTo
in class Data<XMLType>
o
- the specified object valuepublic short setStringValue(java.lang.String value)
setStringValue
in class Data<XMLType>
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 java.lang.String getValueAsString()
getValueAsString
in class Data<XMLType>
public org.mdiutil.xml.tree.XMLNode getValueAsXML()
getValueAsXML
in class Data<XMLType>
public org.mdiutil.xml.tree.XMLNode getValueAsXML(java.util.List<org.xml.sax.SAXParseException> exceptions)
exceptions
- the list where to put the exceptions (maybe null)Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence