Class TagDiff
java.lang.Object
com.inductiveautomation.ignition.common.config.PropertySetDiff
com.inductiveautomation.ignition.common.sqltags.tags.TagDiff
- All Implemented Interfaces:
Countable,Extendable<PropertySet>,Mergable<PropertySet>,MutablePropertyValueSource,PropertySet,PropertySetEdit,PropertyValueSource,MutableTag,Tag,Serializable,Comparable<Tag>,Iterable<PropertyValue>
- Direct Known Subclasses:
ComplexTagDiff
A Tag Diff represents an edit to a tag that may encompass various fields. It implements Tag only so that editing code
can uniformly treat editing tags and creating tag diffs.
- See Also:
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint<T> TRetrieves the value of the property, or null if this set doesn't contain that property.Gets the type of access rights for this tagReturns the list of alarm states for this taggetAttribute(Property<?> prop) Gets the value of the given tag attribute.<T> TgetAttrValue(TagProp prop) Returns the value in qualified form- along with quality and timestamp.Returns the datatype of this tag's value propertyWill get or create the event scripts diff.getName()Returns the name of the tag.Returns this tags permission model, if anygetType()Returns the type of this tag.booleanbooleanbooleanbooleanbooleanReturns the enabled bit for this tagbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidSets the type of access rights for this tag.voidsetAlarmStates(AlarmConfiguration config) voidsetAttribute(Property<?> prop, QualifiedValue value) Sets the value of the given tag attribute.voidsetCurrentValue(QualifiedValue value) Sets this tags value.voidsetDataType(DataType type) Sets the data type for this tag.voidsetEnabled(boolean en) Sets this tag enabled/disabledvoidsetEventScripts(TagEventScripts scripts) voidSets the name of this tagvoidvoidvoidMethods inherited from class com.inductiveautomation.ignition.common.config.PropertySetDiff
compactChanges, contains, getCount, getModified, getOrDefault, getOrElse, getProperties, getRaw, getRemoved, getValues, hasChanges, isExtended, isInherited, isModified, isRemoved, iterator, remove, revert, set, set, setRaw, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
mergeMethods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, getExtension, newDefaultInstance, newExtensionMethods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
getNonNull, getNonNull
-
Constructor Details
-
TagDiff
-
TagDiff
public TagDiff() -
TagDiff
-
-
Method Details
-
isScanClassChanged
public boolean isScanClassChanged() -
isNameChanged
public boolean isNameChanged() -
isDataTypeChanged
public boolean isDataTypeChanged() -
isEventScriptsModified
public boolean isEventScriptsModified() -
isDriverNameChanged
public boolean isDriverNameChanged() -
isAlarmStatesModified
public boolean isAlarmStatesModified() -
isEnabledChanged
public boolean isEnabledChanged() -
isValueChanged
public boolean isValueChanged() -
setType
-
isTypeChanged
public boolean isTypeChanged() -
isAccessRightsChanged
public boolean isAccessRightsChanged() -
isPermissionModelChanged
public boolean isPermissionModelChanged() -
getAlarmStates
Description copied from interface:TagReturns the list of alarm states for this tag- Specified by:
getAlarmStatesin interfaceTag
-
get
Description copied from interface:PropertyValueSourceRetrieves the value of the property, or null if this set doesn't contain that property.- Specified by:
getin interfacePropertyValueSource- Overrides:
getin classPropertySetDiff
-
getName
Description copied from interface:TagReturns the name of the tag. -
getType
Description copied from interface:TagReturns the type of this tag. -
getDataType
Description copied from interface:TagReturns the datatype of this tag's value property- Specified by:
getDataTypein interfaceTag
-
isEnabled
public boolean isEnabled()Description copied from interface:TagReturns the enabled bit for this tag -
getCurrentValue
Description copied from interface:TagReturns the value in qualified form- along with quality and timestamp.- Specified by:
getCurrentValuein interfaceTag
-
getAccessRights
Description copied from interface:TagGets the type of access rights for this tag- Specified by:
getAccessRightsin interfaceTag
-
getPermissionModel
Description copied from interface:TagReturns this tags permission model, if any- Specified by:
getPermissionModelin interfaceTag
-
getEventScripts
Will get or create the event scripts diff. *- Specified by:
getEventScriptsin interfaceTag
-
getAttribute
Description copied from interface:TagGets the value of the given tag attribute.- Specified by:
getAttributein interfaceTag
-
compareTo
- Specified by:
compareToin interfaceComparable<Tag>
-
setEnabled
public void setEnabled(boolean en) Description copied from interface:MutableTagSets this tag enabled/disabled- Specified by:
setEnabledin interfaceMutableTag
-
setName
Description copied from interface:MutableTagSets the name of this tag- Specified by:
setNamein interfaceMutableTag
-
setDataType
Description copied from interface:MutableTagSets the data type for this tag. The existing value will most likely be lost.- Specified by:
setDataTypein interfaceMutableTag
-
setAccessRights
Description copied from interface:MutableTagSets the type of access rights for this tag.- Specified by:
setAccessRightsin interfaceMutableTag
-
setPermissionModel
-
setAlarmStates
- Specified by:
setAlarmStatesin interfaceMutableTag
-
setEventScripts
- Specified by:
setEventScriptsin interfaceMutableTag
-
setAttribute
Description copied from interface:MutableTagSets the value of the given tag attribute. If the type of the argument is incorrect, an ClassCastException will be thrown.- Specified by:
setAttributein interfaceMutableTag- Throws:
ClassCastException
-
setCurrentValue
Description copied from interface:MutableTagSets this tags value. Will throw an ClassCastException if the value cannot be coerced into the datatype of this tag.- Specified by:
setCurrentValuein interfaceMutableTag- Throws:
ClassCastException
-
setValue
- Throws:
ClassCastException
-
getAttrValue
-