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 SummaryFields inherited from interface com.inductiveautomation.ignition.common.model.values.QualifiedValueBAD, CONFIG_ERROR, DISABLED, EXPRESSION_EVAL_ERROR, INITIAL_VALUE, NOT_CONNECTED, NOT_FOUND, REFERENCE_NOT_FOUND, STALE, TRANSFORM_ERROR, TYPE_CONVERSION, UNKNOWN, UNSUPPORTED
- 
Constructor SummaryConstructorsConstructorDescriptionBasicQualifiedValue(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 SummaryModifier and TypeMethodDescriptionclone()booleanTests that the objects values are equal.booleanstatic QualifiedValuefromObject(Object obj) Creates a QualifiedValue "intelligently" from an object.getValue()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 ObjectIf the object is a QualifiedValue, will return the internal value, otherwise returns the object passed in.Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.model.values.QualifiedValuederive, derive, derive
- 
Constructor Details- 
BasicQualifiedValuepublic BasicQualifiedValue()
- 
BasicQualifiedValueCreates a BasicQualifiedValue with good quality and the current timestamp
- 
BasicQualifiedValue
- 
BasicQualifiedValueDeprecated.Provided for backward compatibility only, do not use in any new code
- 
BasicQualifiedValue
- 
BasicQualifiedValue
 
- 
- 
Method Details- 
getValue- Specified by:
- getValuein interface- QualifiedValue
 
- 
setValue
- 
getQuality- Specified by:
- getQualityin interface- QualifiedValue
 
- 
setQuality
- 
setQualityDeprecated.here for serialization compatibility.This needs to be here for serialization compatibility.
- 
getTimestamp- Specified by:
- getTimestampin interface- QualifiedValue
 
- 
setTimestamp
- 
equalsTests that the objects values are equal. DOES NOT TEST timestamp, because in most cases you want to leave it out. If you want to test it, call equals(val,true).
- 
equals- Specified by:
- equalsin interface- QualifiedValue
 
- 
hashCodepublic int hashCode()
- 
clone
- 
toString
- 
fromObjectCreates 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.
- 
updateTimestampCreates a copy of the value, but with a current-time timestamp.
- 
valueOfIf the object is a QualifiedValue, will return the internal value, otherwise returns the object passed in.
- 
unwrap
 
-