Class AbstractTag
java.lang.Object
com.inductiveautomation.ignition.common.sqltags.tags.AbstractTag
- All Implemented Interfaces:
MutableTag
,Tag
,Comparable<Tag>
- Direct Known Subclasses:
AbstractClientTag
,FolderTag
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessRightsType
protected boolean
protected TagEventScripts
protected String
protected TagPermissionsModel
protected DataType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected QualifiedValue
coerceValue
(QualifiedValue value) Coerces the value inside the argument QualifiedValue to this tag's datatype, if that value is not null.int
Gets the type of access rights for this taggetAttribute
(Property<?> prop) Gets the value of the given tag attribute.Returns the value in qualified form- along with quality and timestamp.Returns the datatype of this tag's value propertygetName()
Returns the name of the tag.Returns this tags permission model, if anyboolean
boolean
Returns the enabled bit for this tagstatic void
removeChild
(String name) void
setAccessRights
(AccessRightsType accessRights) Sets the type of access rights for this tag.void
setAttribute
(Property<?> prop, QualifiedValue value) Sets the value of the given tag attribute.void
setCurrentValue
(QualifiedValue value) Sets this tags value.void
setDataType
(DataType type) Sets the data type for this tag.void
setEnabled
(boolean en) Sets this tag enabled/disabledvoid
setEventScripts
(TagEventScripts scripts) void
Sets the name of this tagvoid
setPermissionModel
(TagPermissionsModel permissionModel) void
setRawAttributes
(Map<Property<?>, Object> value) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.common.sqltags.model.MutableTag
setAlarmStates
Methods inherited from interface com.inductiveautomation.ignition.common.sqltags.model.Tag
getAlarmStates, getType
-
Field Details
-
attributes
-
type
-
accessRights
-
permissionModel
-
eventScripts
-
enabled
protected boolean enabled -
name
-
-
Constructor Details
-
AbstractTag
protected AbstractTag() -
AbstractTag
-
-
Method Details
-
getChild
-
removeChild
-
getName
Description copied from interface:Tag
Returns the name of the tag. -
setName
Description copied from interface:MutableTag
Sets the name of this tag- Specified by:
setName
in interfaceMutableTag
-
getCurrentValue
Description copied from interface:Tag
Returns the value in qualified form- along with quality and timestamp.- Specified by:
getCurrentValue
in interfaceTag
-
setCurrentValue
Description copied from interface:MutableTag
Sets this tags value. Will throw an ClassCastException if the value cannot be coerced into the datatype of this tag.- Specified by:
setCurrentValue
in interfaceMutableTag
- Throws:
ClassCastException
-
setValue
- Throws:
ClassCastException
-
coerceValue
Coerces the value inside the argument QualifiedValue to this tag's datatype, if that value is not null.- Throws:
ClassCastException
-
getDataType
Description copied from interface:Tag
Returns the datatype of this tag's value property- Specified by:
getDataType
in interfaceTag
-
isEnabled
public boolean isEnabled()Description copied from interface:Tag
Returns the enabled bit for this tag -
setEnabled
public void setEnabled(boolean en) Description copied from interface:MutableTag
Sets this tag enabled/disabled- Specified by:
setEnabled
in interfaceMutableTag
-
setDataType
Description copied from interface:MutableTag
Sets the data type for this tag. The existing value will most likely be lost.- Specified by:
setDataType
in interfaceMutableTag
-
getChildren
-
addChild
-
getAttribute
Description copied from interface:Tag
Gets the value of the given tag attribute.- Specified by:
getAttribute
in interfaceTag
-
setAttribute
Description copied from interface:MutableTag
Sets the value of the given tag attribute. If the type of the argument is incorrect, an ClassCastException will be thrown.- Specified by:
setAttribute
in interfaceMutableTag
- Throws:
ClassCastException
-
getRawAttributes
-
setRawAttributes
-
getAccessRights
Description copied from interface:Tag
Gets the type of access rights for this tag- Specified by:
getAccessRights
in interfaceTag
-
setAccessRights
Description copied from interface:MutableTag
Sets the type of access rights for this tag.- Specified by:
setAccessRights
in interfaceMutableTag
-
getPermissionModel
Description copied from interface:Tag
Returns this tags permission model, if any- Specified by:
getPermissionModel
in interfaceTag
-
setPermissionModel
-
getEventScripts
- Specified by:
getEventScripts
in interfaceTag
-
setEventScripts
- Specified by:
setEventScripts
in interfaceMutableTag
-
isAlarmingSupported
public boolean isAlarmingSupported() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Tag>
-
main
-