public class TagAttribute<T> extends java.lang.Object implements java.io.Serializable, Localized, java.lang.Comparable<TagAttribute<?>>, Property<T>
Modifier and Type | Field and Description |
---|---|
static TagAttribute<AlarmConfiguration> |
AlarmConfiguration |
static TagAttribute<AlarmStateList> |
AlarmStates |
static TagAttribute<TagPermissionsModel> |
PermissionModel |
static TagAttribute<TagType> |
TagTypeEnum |
Constructor and Description |
---|
TagAttribute() |
TagAttribute(TagAttribute<T> copy) |
Modifier and Type | Method and 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() |
public static final TagAttribute<TagPermissionsModel> PermissionModel
public static final TagAttribute<AlarmStateList> AlarmStates
public static final TagAttribute<AlarmConfiguration> AlarmConfiguration
public static final TagAttribute<TagType> TagTypeEnum
public TagAttribute()
public TagAttribute(TagAttribute<T> copy)
public static TagAttribute[] values()
public static TagAttribute getProp(java.lang.String name)
public boolean shouldIntern()
public boolean isWriteable()
public void setWritable(boolean writable)
public java.lang.String getName()
Property
public void setName(java.lang.String name)
public java.lang.Class<? extends T> getType()
public void setType(java.lang.Class<? extends T> type)
public T getDefaultValue()
getDefaultValue
in interface Property<T>
public void setDefaultValue(T defaultValue)
public DataTypeClass getTypeClass()
public static java.util.Set<TagAttribute> setOf(TagAttribute... props)
public static java.util.Set<TagAttribute> fullSet()
public java.lang.String name()
public int compareTo(TagAttribute o)
compareTo
in interface java.lang.Comparable<TagAttribute<?>>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object