Class BasicQualifiedValue
java.lang.Object
com.inductiveautomation.ignition.common.model.values.BasicQualifiedValue
- All Implemented Interfaces:
QualifiedValue, Serializable
- Direct Known Subclasses:
BasicQualifiedValue
The basic implementation of QualifiedValue.
Changes ----------- 8.0 - Changed from "Quality" to "QualityCode".
- See Also:
-
Field Summary
Fields inherited from interface QualifiedValue
AGGREGATE_NOT_FOUND, BAD, CONFIG_ERROR, DISABLED, EXPRESSION_EVAL_ERROR, INITIAL_VALUE, NOT_CONNECTED, NOT_FOUND, REFERENCE_NOT_FOUND, STALE, TRANSFORM_ERROR, TYPE_CONVERSION, UNKNOWN, UNSUPPORTED -
Constructor Summary
ConstructorsConstructorDescriptionBasicQualifiedValue(@Nullable Object value) Creates a BasicQualifiedValue with good quality and the current timestampBasicQualifiedValue(Object value, QualityCode quality) BasicQualifiedValue(Object value, QualityCode quality, Date timeStamp) BasicQualifiedValue(Object value, Quality quality, Date timeStamp) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanTests that the objects values are equal.booleanstatic QualifiedValuefromObject(Object obj) Creates a QualifiedValue "intelligently" from an object.@NonNull QualityCode@NonNull Date@Nullable ObjectgetValue()inthashCode()voidsetQuality(QualityCode code) voidsetQuality(DataQuality code) Deprecated.here for serialization compatibility.voidsetTimestamp(Date timestamp) voidtoString()static Objectstatic QualifiedValueCreates a copy of the value, but with a current-time timestamp.static @Nullable ObjectIf the object is a QualifiedValue, will return the internal value, otherwise returns the object passed in.static QualifiedValuewithTimestamp(QualifiedValue value, Date timestamp) Methods inherited from interface QualifiedValue
derive, derive, derive
-
Constructor Details
-
BasicQualifiedValue
public BasicQualifiedValue() -
BasicQualifiedValue
Creates a BasicQualifiedValue with good quality and the current timestamp -
BasicQualifiedValue
-
BasicQualifiedValue
Deprecated.Provided for backward compatibility only, do not use in any new code -
BasicQualifiedValue
-
BasicQualifiedValue
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceQualifiedValue
-
setValue
-
getQuality
- Specified by:
getQualityin interfaceQualifiedValue
-
setQuality
-
setQuality
Deprecated.here for serialization compatibility.This needs to be here for serialization compatibility. -
getTimestamp
- Specified by:
getTimestampin interfaceQualifiedValue
-
setTimestamp
-
equals
-
equals
- Specified by:
equalsin interfaceQualifiedValue
-
hashCode
-
clone
-
toString
-
fromObject
Creates a QualifiedValue "intelligently" from an object. If the object is already a QualifiedValue, then it won't "double-wrap" the object. Otherwise, it will make a new BasicQualifiedValue with a good quality. -
updateTimestamp
Creates a copy of the value, but with a current-time timestamp. -
valueOf
-
unwrap
-
withTimestamp
-