Package com.biglybt.core.tag.impl
Class TagBase.TagPropertyImpl
- java.lang.Object
-
- com.biglybt.core.tag.impl.TagBase.TagPropertyImpl
-
- All Implemented Interfaces:
TagFeatureProperties.TagProperty
- Enclosing class:
- TagBase
private class TagBase.TagPropertyImpl extends java.lang.Object implements TagFeatureProperties.TagProperty
-
-
Field Summary
Fields Modifier and Type Field Description private CopyOnWriteList<TagFeatureProperties.TagPropertyListener>
listeners
private java.lang.String
name
private int
type
-
Constructor Summary
Constructors Modifier Constructor Description private
TagPropertyImpl(java.lang.String _name, int _type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(TagFeatureProperties.TagPropertyListener listener)
java.lang.String
explainTaggable(Taggable taggable)
java.lang.Boolean
getBoolean()
java.lang.Long
getLong()
java.lang.String
getName(boolean localize)
java.lang.String
getString()
java.lang.String[]
getStringList()
Tag
getTag()
int
getType()
boolean
isEnabled()
void
removeListener(TagFeatureProperties.TagPropertyListener listener)
void
setBoolean(java.lang.Boolean value)
void
setEnabled(boolean enabled)
void
setLong(java.lang.Long value)
void
setStringList(java.lang.String[] value)
void
syncListeners()
-
-
-
Field Detail
-
name
private final java.lang.String name
-
type
private final int type
-
listeners
private final CopyOnWriteList<TagFeatureProperties.TagPropertyListener> listeners
-
-
Method Detail
-
getTag
public Tag getTag()
- Specified by:
getTag
in interfaceTagFeatureProperties.TagProperty
-
getType
public int getType()
- Specified by:
getType
in interfaceTagFeatureProperties.TagProperty
-
getName
public java.lang.String getName(boolean localize)
- Specified by:
getName
in interfaceTagFeatureProperties.TagProperty
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceTagFeatureProperties.TagProperty
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfaceTagFeatureProperties.TagProperty
-
setStringList
public void setStringList(java.lang.String[] value)
- Specified by:
setStringList
in interfaceTagFeatureProperties.TagProperty
-
getStringList
public java.lang.String[] getStringList()
- Specified by:
getStringList
in interfaceTagFeatureProperties.TagProperty
-
setBoolean
public void setBoolean(java.lang.Boolean value)
- Specified by:
setBoolean
in interfaceTagFeatureProperties.TagProperty
-
getBoolean
public java.lang.Boolean getBoolean()
- Specified by:
getBoolean
in interfaceTagFeatureProperties.TagProperty
-
setLong
public void setLong(java.lang.Long value)
- Specified by:
setLong
in interfaceTagFeatureProperties.TagProperty
-
getLong
public java.lang.Long getLong()
- Specified by:
getLong
in interfaceTagFeatureProperties.TagProperty
-
getString
public java.lang.String getString()
- Specified by:
getString
in interfaceTagFeatureProperties.TagProperty
-
addListener
public void addListener(TagFeatureProperties.TagPropertyListener listener)
- Specified by:
addListener
in interfaceTagFeatureProperties.TagProperty
-
removeListener
public void removeListener(TagFeatureProperties.TagPropertyListener listener)
- Specified by:
removeListener
in interfaceTagFeatureProperties.TagProperty
-
syncListeners
public void syncListeners()
- Specified by:
syncListeners
in interfaceTagFeatureProperties.TagProperty
-
explainTaggable
public java.lang.String explainTaggable(Taggable taggable)
- Specified by:
explainTaggable
in interfaceTagFeatureProperties.TagProperty
-
-