Class BasicQualifiedValue
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.model.values.BasicQualifiedValue
 
- 
- All Implemented Interfaces:
- QualifiedValue,- java.io.Serializable
 - Direct Known Subclasses:
- BasicQualifiedValue
 
 public class BasicQualifiedValue extends java.lang.Object implements QualifiedValue, java.io.Serializable The basic implementation of QualifiedValue.Changes ----------- 8.0 - Changed from "Quality" to "QualityCode". - See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields 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 SummaryConstructors Constructor Description BasicQualifiedValue()BasicQualifiedValue(QualifiedValue copy)BasicQualifiedValue(java.lang.Object value)Creates a BasicQualifiedValue with good quality and the current timestampBasicQualifiedValue(java.lang.Object value, QualityCode quality)BasicQualifiedValue(java.lang.Object value, QualityCode quality, java.util.Date timeStamp)BasicQualifiedValue(java.lang.Object value, Quality quality, java.util.Date timeStamp)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BasicQualifiedValueclone()booleanequals(java.lang.Object arg0)Tests that the objects values are equal.booleanequals(java.lang.Object val, boolean includeTimestamp)static QualifiedValuefromObject(java.lang.Object obj)Creates a QualifiedValue "intelligently" from an object.QualityCodegetQuality()java.util.DategetTimestamp()java.lang.ObjectgetValue()inthashCode()voidsetQuality(QualityCode code)voidsetQuality(DataQuality code)Deprecated.here for serialization compatibility.voidsetTimestamp(java.util.Date timestamp)voidsetValue(java.lang.Object value)java.lang.StringtoString()static java.lang.Objectunwrap(java.lang.Object object)static QualifiedValueupdateTimestamp(QualifiedValue copy)Creates a copy of the value, but with a current-time timestamp.static java.lang.ObjectvalueOf(java.lang.Object object)If 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, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.model.values.QualifiedValuederive, derive, derive
 
- 
 
- 
- 
- 
Constructor Detail- 
BasicQualifiedValuepublic BasicQualifiedValue() 
 - 
BasicQualifiedValuepublic BasicQualifiedValue(@Nullable java.lang.Object value)Creates a BasicQualifiedValue with good quality and the current timestamp
 - 
BasicQualifiedValuepublic BasicQualifiedValue(java.lang.Object value, QualityCode quality)
 - 
BasicQualifiedValue@Deprecated public BasicQualifiedValue(java.lang.Object value, Quality quality, java.util.Date timeStamp)Deprecated.Provided for backward compatibility only, do not use in any new code
 - 
BasicQualifiedValuepublic BasicQualifiedValue(java.lang.Object value, QualityCode quality, java.util.Date timeStamp)
 - 
BasicQualifiedValuepublic BasicQualifiedValue(QualifiedValue copy) 
 
- 
 - 
Method Detail- 
getValue@Nullable public java.lang.Object getValue() - Specified by:
- getValuein interface- QualifiedValue
 
 - 
setValuepublic void setValue(@Nullable java.lang.Object value)
 - 
getQualitypublic QualityCode getQuality() - Specified by:
- getQualityin interface- QualifiedValue
 
 - 
setQualitypublic void setQuality(QualityCode code) 
 - 
setQuality@Deprecated public void setQuality(DataQuality code) Deprecated.here for serialization compatibility.This needs to be here for serialization compatibility.
 - 
getTimestamppublic java.util.Date getTimestamp() - Specified by:
- getTimestampin interface- QualifiedValue
 
 - 
setTimestamppublic void setTimestamp(java.util.Date timestamp) 
 - 
equalspublic boolean equals(java.lang.Object arg0) Tests 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).- Overrides:
- equalsin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object val, boolean includeTimestamp)- Specified by:
- equalsin interface- QualifiedValue
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
clonepublic BasicQualifiedValue clone() - Overrides:
- clonein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
fromObjectpublic static QualifiedValue fromObject(java.lang.Object obj) 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.
 - 
updateTimestamppublic static QualifiedValue updateTimestamp(QualifiedValue copy) Creates a copy of the value, but with a current-time timestamp.
 - 
valueOf@Nullable public static java.lang.Object valueOf(@Nullable java.lang.Object object)If the object is a QualifiedValue, will return the internal value, otherwise returns the object passed in.
 - 
unwrappublic static java.lang.Object unwrap(@Nullable java.lang.Object object)
 
- 
 
-