Class TagAttribute<T>
java.lang.Object
com.inductiveautomation.ignition.common.sqltags.model.TagAttribute<T>
- All Implemented Interfaces:
Property<T>
,Localized
,Serializable
,Comparable<TagAttribute<?>>
public class TagAttribute<T>
extends Object
implements Serializable, Localized, Comparable<TagAttribute<?>>, Property<T>
Tag attributes are related to TagProp, but are usually more complicated data types.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TagAttribute<AlarmConfiguration>
static final TagAttribute<AlarmStateList>
static final TagAttribute<TagPermissionsModel>
static final TagAttribute<TagType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static Set<TagAttribute>
fullSet()
Returns the default value for this tag property.getName()
The "name" of this property.static TagAttribute
Returns the TagAttribute for the given name (Case insensitive).getType()
Returns the type of the tag property.int
hashCode()
boolean
name()
void
setDefaultValue
(T defaultValue) void
static Set<TagAttribute>
setOf
(TagAttribute... props) void
void
setWritable
(boolean writable) boolean
Returns whether the string value of this property should be "interned" for performance.toString()
static TagAttribute[]
values()
-
Field Details
-
PermissionModel
-
AlarmStates
-
AlarmConfiguration
-
TagTypeEnum
-
-
Constructor Details
-
TagAttribute
public TagAttribute() -
TagAttribute
-
-
Method Details
-
values
-
getProp
Returns the TagAttribute for the given name (Case insensitive). Returns null if there is no TagAttribute of that name. -
shouldIntern
public boolean shouldIntern()Returns whether the string value of this property should be "interned" for performance. -
isWriteable
public boolean isWriteable() -
setWritable
public void setWritable(boolean writable) -
getName
Description copied from interface:Property
The "name" of this property. Should be descriptive, but also unique. To this end, it is encouraged to make your keys fully qualified by prefixing them with your module id. For example: "mymod.MyProperty". Properties defined by the system start with "sys." -
setName
-
getType
Returns the type of the tag property. Some tag properties (notable the value property) can have variable type, in which case this will return Object -
setType
-
getDefaultValue
Returns the default value for this tag property.- Specified by:
getDefaultValue
in interfaceProperty<T>
-
setDefaultValue
-
getTypeClass
-
setOf
-
fullSet
-
name
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-
hashCode
public int hashCode() -
equals
-
toString
-
toString
-