Package com.biglybt.core.tag.impl
Class TagTypeWithState
- java.lang.Object
-
- com.biglybt.core.tag.impl.TagTypeBase
-
- com.biglybt.core.tag.impl.TagTypeWithState
-
- All Implemented Interfaces:
TagListener
,TagType
- Direct Known Subclasses:
GlobalManagerImpl.DownloadStateTagger
,SpeedLimitHandler.IPSetTagType
,TagTypeDownloadInternal
,TagTypeDownloadManual
public class TagTypeWithState extends TagTypeBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.biglybt.core.tag.impl.TagTypeBase
TagTypeBase.TagGroupImpl
-
-
Field Summary
Fields Modifier and Type Field Description private TaggableResolver
resolver
private CopyOnWriteList<Tag>
tags
-
Fields inherited from class com.biglybt.core.tag.impl.TagTypeBase
AT_COLOR_ID
-
Fields inherited from interface com.biglybt.core.tag.TagType
TT_DOWNLOAD_CATEGORY, TT_DOWNLOAD_INTERNAL, TT_DOWNLOAD_MANUAL, TT_DOWNLOAD_STATE, TT_PEER_IPSET, TT_TAG_SUGGESTION
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TagTypeWithState(int tag_type, int tag_features, java.lang.String tag_name)
protected
TagTypeWithState(int tag_type, TaggableResolver _resolver, int tag_features, java.lang.String tag_name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTag(Tag t)
protected TaggableResolver
getResolver()
int
getTagCount()
java.util.List<Tag>
getTags()
void
removeTag(Tag t)
protected void
removeTaggable(TaggableResolver _resolver, Taggable taggable)
protected Taggable
resolveTaggable(java.lang.String id)
-
Methods inherited from class com.biglybt.core.tag.impl.TagTypeBase
addTagListener, addTagType, addTagTypeListener, closing, createTag, fireChanged, fireMembershipChanged, fireMetadataChanged, generate, generateConfig, getColorDefault, getTag, getTag, getTagGroup, getTagManager, getTagsForTaggable, getTagType, getTagTypeFeatures, getTagTypeName, hasTagTypeFeature, isTagTypeAuto, isTagTypePersistent, readBooleanAttribute, readLongAttribute, readLongListAttribute, readMapAttribute, readStringAttribute, readStringListAttribute, removeTagListener, removeTagType, removeTagTypeListener, requestAttention, setTagGroup, sync, taggableAdded, taggableRemoved, taggableSync, writeBooleanAttribute, writeLongAttribute, writeLongListAttribute, writeMapAttribute, writeStringAttribute, writeStringListAttribute
-
-
-
-
Field Detail
-
tags
private final CopyOnWriteList<Tag> tags
-
resolver
private TaggableResolver resolver
-
-
Constructor Detail
-
TagTypeWithState
protected TagTypeWithState(int tag_type, int tag_features, java.lang.String tag_name)
-
TagTypeWithState
protected TagTypeWithState(int tag_type, TaggableResolver _resolver, int tag_features, java.lang.String tag_name)
-
-
Method Detail
-
resolveTaggable
protected Taggable resolveTaggable(java.lang.String id)
- Overrides:
resolveTaggable
in classTagTypeBase
-
getResolver
protected TaggableResolver getResolver()
- Overrides:
getResolver
in classTagTypeBase
-
removeTaggable
protected void removeTaggable(TaggableResolver _resolver, Taggable taggable)
- Overrides:
removeTaggable
in classTagTypeBase
-
addTag
public void addTag(Tag t)
- Specified by:
addTag
in interfaceTagType
- Overrides:
addTag
in classTagTypeBase
-
removeTag
public void removeTag(Tag t)
- Specified by:
removeTag
in interfaceTagType
- Overrides:
removeTag
in classTagTypeBase
-
getTags
public java.util.List<Tag> getTags()
-
getTagCount
public int getTagCount()
-
-