public class BasicTagPropertyValue extends TagStoreObject<TagValue> implements java.io.Serializable, TagPropertyValue
TagPropertyValue.HashKey
Modifier and Type | Field and Description |
---|---|
static int |
HINT_CONFIGPROP
Hint indicating that this is a core property that will require a tag reload
|
static int |
HINT_PERSISTENT
Hint that the value should be stored and loaded on startup
|
Constructor and Description |
---|
BasicTagPropertyValue() |
BasicTagPropertyValue(EntityId id,
TagValue value,
DataTypeClass dType,
int... hints)
Constructor for storing the tag's "Value" property
|
BasicTagPropertyValue(EntityId id,
TagValue value,
TagProp property)
Constructor for storing an arbitrary property - DO NOT USE for Tag's Value! Use other constructor instead, in
order to set the correct data type.
|
BasicTagPropertyValue(TagPropertyValue copy) |
Modifier and Type | Method and Description |
---|---|
DataTypeClass |
getDataTypeClass() |
protected int |
getHints() |
TagProp |
getProperty() |
TagValue |
getValue() |
boolean |
hasHint(int hint)
Indicates whether the value has the hint specified.
|
boolean |
hasHintConfig() |
boolean |
hasHintPersistent() |
protected void |
setDataTypeClass(DataTypeClass value) |
void |
setHint(int hint,
boolean on)
Sets or unsets the specified hint.
|
protected void |
setHints(int value) |
protected void |
setProperty(TagProp value) |
java.lang.String |
toString() |
getEntity, getId, setEntity, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
public static final int HINT_PERSISTENT
public static final int HINT_CONFIGPROP
public BasicTagPropertyValue(EntityId id, TagValue value, DataTypeClass dType, int... hints)
id
- value
- dType
- public BasicTagPropertyValue(TagPropertyValue copy)
public BasicTagPropertyValue()
public DataTypeClass getDataTypeClass()
getDataTypeClass
in interface TagPropertyValue
protected void setDataTypeClass(DataTypeClass value)
public TagProp getProperty()
getProperty
in interface TagPropertyValue
protected void setProperty(TagProp value)
protected int getHints()
protected void setHints(int value)
public boolean hasHint(int hint)
hint
- public void setHint(int hint, boolean on)
hint
- on
- public TagValue getValue()
getValue
in interface TagPropertyValue
public boolean hasHintConfig()
hasHintConfig
in interface TagPropertyValue
public boolean hasHintPersistent()
hasHintPersistent
in interface TagPropertyValue
public java.lang.String toString()
toString
in class java.lang.Object