Class ProjectTag
- java.lang.Object
-
- com.inductiveautomation.ignition.common.sqltags.tags.AbstractTag
-
- com.inductiveautomation.factorypmi.application.sqltags.AbstractClientTag
-
- com.inductiveautomation.factorypmi.application.sqltags.project.ProjectTag
-
- All Implemented Interfaces:
ClientTag
,Diagnosable
,MutableTag
,Tag
,TagNode
,TagScriptMonitor
,java.lang.Comparable<Tag>
public class ProjectTag extends AbstractClientTag
ProjectTags are what we call Client Tags. (ClientTag is System > Client Tag)
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.factorypmi.application.sqltags.AbstractClientTag
appContext, deleted, LOGGER, name, pathContext
-
Fields inherited from class com.inductiveautomation.ignition.common.sqltags.tags.AbstractTag
accessRights, attributes, enabled, eventScripts, permissionModel, type
-
-
Constructor Summary
Constructors Constructor Description ProjectTag()
ProjectTag(Tag tag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TagBinding
createTagBinding()
Creates a new TagBinding object if this tag should have some sort of binding.java.util.Map<Property<?>,java.lang.Object>
getAttributes()
TagType
getType()
Returns the type of this tag.void
setAttributes(java.util.Map<TagProp,java.lang.Object> map)
void
setCurrentValue(QualifiedValue obj)
Sets this tags value.void
setEnabled(boolean enabled)
Sets this tag enabled/disabledvoid
startBinding(VisionClientContext appContext, TagPath pathContext, TagChangeListener rootListener)
Starts any binding for the tag, such as an expression binding or a SQL query bindingvoid
stopBinding()
Stops any binding activities for this tag-
Methods inherited from class com.inductiveautomation.factorypmi.application.sqltags.AbstractClientTag
applyDiff, checkName, findChild, fireScriptEvent, fireTagChange, getAlarmStates, getAttribute, getChildren, getCurrentValue, getName, getPath, getValueRaw, hasPermission, isAlarmingSupported, notifyTagDeleted, onScriptError, onScriptSuccess, removeChild, sampleDiagnostics, setAccessRights, setAlarmStates, setAlarmStates, setAttribute, setEventScripts, setName, setTypeAndValue, setTypeAndValue, setTypeAndValue, transferState, updateRuntimeQuality
-
Methods inherited from class com.inductiveautomation.ignition.common.sqltags.tags.AbstractTag
addChild, coerceValue, compareTo, getAccessRights, getChild, getDataType, getEventScripts, getPermissionModel, getRawAttributes, isEnabled, main, setDataType, setPermissionModel, setRawAttributes, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.factorypmi.application.sqltags.ClientTag
addChild
-
Methods inherited from interface com.inductiveautomation.ignition.common.sqltags.model.MutableTag
setDataType
-
Methods inherited from interface com.inductiveautomation.ignition.common.sqltags.model.Tag
getAccessRights, getDataType, getEventScripts, getPermissionModel, isEnabled
-
-
-
-
Constructor Detail
-
ProjectTag
public ProjectTag()
-
ProjectTag
public ProjectTag(Tag tag)
-
-
Method Detail
-
setCurrentValue
public void setCurrentValue(QualifiedValue obj) throws java.lang.ClassCastException
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
- Overrides:
setCurrentValue
in classAbstractClientTag
- Throws:
java.lang.ClassCastException
-
createTagBinding
protected TagBinding createTagBinding() throws java.lang.Exception
Creates a new TagBinding object if this tag should have some sort of binding.- Returns:
- the appropriate TagBinding, or null if this is a memory tag
- Throws:
java.lang.Exception
- if no expression is defined for non-memory tags
-
startBinding
public void startBinding(VisionClientContext appContext, TagPath pathContext, TagChangeListener rootListener)
Description copied from interface:ClientTag
Starts any binding for the tag, such as an expression binding or a SQL query binding- Specified by:
startBinding
in interfaceClientTag
- Overrides:
startBinding
in classAbstractClientTag
-
stopBinding
public void stopBinding()
Description copied from interface:ClientTag
Stops any binding activities for this tag- Specified by:
stopBinding
in interfaceClientTag
- Overrides:
stopBinding
in classAbstractClientTag
-
setEnabled
public void setEnabled(boolean enabled)
Description copied from interface:MutableTag
Sets this tag enabled/disabled- Specified by:
setEnabled
in interfaceMutableTag
- Overrides:
setEnabled
in classAbstractClientTag
-
getType
public TagType getType()
Description copied from interface:Tag
Returns the type of this tag.
-
getAttributes
public java.util.Map<Property<?>,java.lang.Object> getAttributes()
-
setAttributes
public void setAttributes(java.util.Map<TagProp,java.lang.Object> map)
-
-