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 Details

  • Constructor Details

    • TagAttribute

      public TagAttribute()
    • TagAttribute

      public TagAttribute(TagAttribute<T> copy)
  • Method Details

    • values

      public static TagAttribute[] values()
    • getProp

      public static TagAttribute getProp(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 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."
      Specified by:
      getName in interface Property<T>
    • setName

      public void setName(String name)
    • getType

      public 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
      Specified by:
      getType in interface Property<T>
    • setType

      public void setType(Class<? extends T> type)
    • getDefaultValue

      public T getDefaultValue()
      Returns the default value for this tag property.
      Specified by:
      getDefaultValue in interface Property<T>
    • setDefaultValue

      public void setDefaultValue(T defaultValue)
    • getTypeClass

      public DataTypeClass getTypeClass()
    • setOf

      public static Set<TagAttribute> setOf(TagAttribute... props)
    • fullSet

      public static Set<TagAttribute> fullSet()
    • name

      public String name()
    • compareTo

      public int compareTo(TagAttribute o)
      Specified by:
      compareTo in interface Comparable<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(Locale locale)
      Specified by:
      toString in interface Localized