public class TagDiff extends PropertySetDiff implements MutableTag, java.io.Serializable
Constructor and Description |
---|
TagDiff() |
TagDiff(PropertySet copy) |
TagDiff(java.lang.String name,
TagType type) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Tag o) |
static TagDiff |
fromBase64String(java.lang.String str) |
<T> T |
get(Property<T> prop)
Retrieves the value of the property, or null if this set doesn't contain that property.
|
AccessRightsType |
getAccessRights()
Gets the type of access rights for this tag
|
AlarmConfiguration |
getAlarmStates()
Returns the list of alarm states for this tag
|
TagValue |
getAttribute(TagProp prop)
Gets the value of the given tag attribute.
|
<T> T |
getAttrValue(TagProp prop) |
DataType |
getDataType()
Returns the datatype of this tag's value property
|
TagEventScripts |
getEventScripts()
Will get or create the event scripts diff.
|
java.lang.String |
getName()
Returns the name of the tag.
|
TagPermissionsModel |
getPermissionModel()
Returns this tags permission model, if any
|
TagType |
getType()
Returns the type of this tag.
|
TagValue |
getValue()
Returns the value in qualified form- along with quality and timestamp.
|
boolean |
isAccessRightsChanged() |
boolean |
isAlarmingSupported()
Returns true if this tag supports alarming, false otherwise
|
boolean |
isAlarmStatesModified() |
boolean |
isDataTypeChanged() |
boolean |
isDriverNameChanged() |
boolean |
isEnabled()
Returns the enabled bit for this tag
|
boolean |
isEnabledChanged() |
boolean |
isEventScriptsModified() |
boolean |
isNameChanged() |
boolean |
isPermissionModelChanged() |
boolean |
isScanClassChanged() |
boolean |
isTypeChanged() |
boolean |
isValueChanged() |
void |
setAccessRights(AccessRightsType type)
Sets the type of access rights for this tag.
|
void |
setAlarmStates(AlarmConfiguration config) |
void |
setAttribute(TagProp prop,
TagValue value)
Sets the value of the given tag attribute.
|
void |
setDataType(DataType type)
Sets the data type for this tag.
|
void |
setEnabled(boolean en)
Sets this tag enabled/disabled
|
void |
setEventScripts(TagEventScripts scripts) |
void |
setName(java.lang.String name)
Sets the name of this tag
|
void |
setPermissionModel(TagPermissionsModel model)
Sets the tag's permission model
|
void |
setType(TagType type) |
void |
setValue(TagValue value)
Sets this tags value.
|
java.lang.String |
toBase64String() |
compactChanges, contains, getCount, getOrDefault, getOrElse, getProperties, getRaw, getRemoved, getValues, hasChanges, isExtended, isInherited, isModified, isRemoved, iterator, merge, remove, revert, set, set, setRaw, toString
public TagDiff(PropertySet copy)
public TagDiff()
public TagDiff(java.lang.String name, TagType type)
public boolean isScanClassChanged()
public boolean isNameChanged()
public boolean isDataTypeChanged()
public boolean isEventScriptsModified()
public boolean isDriverNameChanged()
public boolean isAlarmStatesModified()
public boolean isEnabledChanged()
public boolean isValueChanged()
public void setType(TagType type)
public boolean isTypeChanged()
public java.lang.String toBase64String() throws java.io.IOException
java.io.IOException
public static TagDiff fromBase64String(java.lang.String str)
public boolean isAccessRightsChanged()
public boolean isPermissionModelChanged()
public AlarmConfiguration getAlarmStates()
Tag
getAlarmStates
in interface Tag
public <T> T get(Property<T> prop)
PropertyValueSource
get
in interface PropertyValueSource
get
in class PropertySetDiff
public java.lang.String getName()
Tag
public TagType getType()
Tag
public DataType getDataType()
Tag
getDataType
in interface Tag
public boolean isEnabled()
Tag
public TagValue getValue()
Tag
public AccessRightsType getAccessRights()
Tag
getAccessRights
in interface Tag
public TagPermissionsModel getPermissionModel()
Tag
getPermissionModel
in interface Tag
public TagEventScripts getEventScripts()
getEventScripts
in interface Tag
public boolean isAlarmingSupported()
Tag
isAlarmingSupported
in interface Tag
public TagValue getAttribute(TagProp prop)
Tag
getAttribute
in interface Tag
public int compareTo(Tag o)
compareTo
in interface java.lang.Comparable<Tag>
public void setEnabled(boolean en)
MutableTag
setEnabled
in interface MutableTag
public void setName(java.lang.String name)
MutableTag
setName
in interface MutableTag
public void setDataType(DataType type)
MutableTag
setDataType
in interface MutableTag
public void setAccessRights(AccessRightsType type)
MutableTag
setAccessRights
in interface MutableTag
public void setPermissionModel(TagPermissionsModel model)
MutableTag
setPermissionModel
in interface MutableTag
public void setAlarmStates(AlarmConfiguration config)
setAlarmStates
in interface MutableTag
public void setEventScripts(TagEventScripts scripts)
setEventScripts
in interface MutableTag
public void setAttribute(TagProp prop, TagValue value) throws java.lang.ClassCastException
MutableTag
setAttribute
in interface MutableTag
java.lang.ClassCastException
public void setValue(TagValue value) throws java.lang.ClassCastException
MutableTag
setValue
in interface MutableTag
java.lang.ClassCastException
public <T> T getAttrValue(TagProp prop)