Class TagAttribute<T>
- java.lang.Object
-
- com.inductiveautomation.ignition.common.sqltags.model.TagAttribute<T>
-
- All Implemented Interfaces:
Property<T>
,Localized
,java.io.Serializable
,java.lang.Comparable<TagAttribute<?>>
public class TagAttribute<T> extends java.lang.Object implements java.io.Serializable, Localized, java.lang.Comparable<TagAttribute<?>>, Property<T>
Tag attributes are related to TagProp, but are usually more complicated data types.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TagAttribute<AlarmConfiguration>
AlarmConfiguration
static TagAttribute<AlarmStateList>
AlarmStates
static TagAttribute<TagPermissionsModel>
PermissionModel
static TagAttribute<TagType>
TagTypeEnum
-
Constructor Summary
Constructors Constructor Description TagAttribute()
TagAttribute(TagAttribute<T> copy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TagAttribute o)
boolean
equals(java.lang.Object obj)
static java.util.Set<TagAttribute>
fullSet()
T
getDefaultValue()
Returns the default value for this tag property.java.lang.String
getName()
The "name" of this property.static TagAttribute
getProp(java.lang.String name)
Returns the TagAttribute for the given name (Case insensitive).java.lang.Class<? extends T>
getType()
Returns the type of the tag property.DataTypeClass
getTypeClass()
int
hashCode()
boolean
isWriteable()
java.lang.String
name()
void
setDefaultValue(T defaultValue)
void
setName(java.lang.String name)
static java.util.Set<TagAttribute>
setOf(TagAttribute... props)
void
setType(java.lang.Class<? extends T> type)
void
setWritable(boolean writable)
boolean
shouldIntern()
Returns whether the string value of this property should be "interned" for performance.java.lang.String
toString()
java.lang.String
toString(java.util.Locale locale)
static TagAttribute[]
values()
-
-
-
Field Detail
-
PermissionModel
public static final TagAttribute<TagPermissionsModel> PermissionModel
-
AlarmStates
public static final TagAttribute<AlarmStateList> AlarmStates
-
AlarmConfiguration
public static final TagAttribute<AlarmConfiguration> AlarmConfiguration
-
TagTypeEnum
public static final TagAttribute<TagType> TagTypeEnum
-
-
Constructor Detail
-
TagAttribute
public TagAttribute()
-
TagAttribute
public TagAttribute(TagAttribute<T> copy)
-
-
Method Detail
-
values
public static TagAttribute[] values()
-
getProp
public static TagAttribute getProp(java.lang.String name)
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
public java.lang.String 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
public void setName(java.lang.String name)
-
getType
public java.lang.Class<? extends T> 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
public void setType(java.lang.Class<? extends T> type)
-
getDefaultValue
public T getDefaultValue()
Returns the default value for this tag property.- Specified by:
getDefaultValue
in interfaceProperty<T>
-
setDefaultValue
public void setDefaultValue(T defaultValue)
-
getTypeClass
public DataTypeClass getTypeClass()
-
setOf
public static java.util.Set<TagAttribute> setOf(TagAttribute... props)
-
fullSet
public static java.util.Set<TagAttribute> fullSet()
-
name
public java.lang.String name()
-
compareTo
public int compareTo(TagAttribute o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<T>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-