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, TagTypeSwarmTag
-
Nested Class Summary
Nested classes/interfaces inherited from class TagTypeBase
TagTypeBase.TagGroupImpl -
Field Summary
FieldsFields inherited from class TagTypeBase
AT_COLOR_IDFields inherited from interface TagType
TT_DOWNLOAD_CATEGORY, TT_DOWNLOAD_INTERNAL, TT_DOWNLOAD_MANUAL, TT_DOWNLOAD_STATE, TT_PEER_IPSET, TT_SWARM_TAG, TT_TAG_SUGGESTION -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTagTypeWithState(int tag_type, int tag_features, String tag_name) protectedTagTypeWithState(int tag_type, TaggableResolver _resolver, int tag_features, String tag_name) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Tagprotected TaggableResolverintgetTags()voidprotected voidremoveTaggable(TaggableResolver _resolver, Taggable taggable) protected TaggableMethods inherited from class TagTypeBase
addTagListener, addTagType, addTagTypeListener, closing, createTag, fireChanged, fireMetadataChanged, generate, generateConfig, getColorDefault, getTag, getTag, getTagAndTaggableMut, getTagGroup, getTagManager, getTagsForTaggable, getTagType, getTagTypeFeatures, getTagTypeName, hasTagTypeFeature, isTagTypeAuto, isTagTypePersistent, readBooleanAttribute, readLongAttribute, readLongListAttribute, readMapAttribute, readStringAttribute, readStringListAttribute, removeTagListener, removeTagType, removeTagTypeListener, requestAttention, setTagGroup, sync, taggableAdded, taggableRemoved, taggableSync, tagsOrMembershipChanged, writeBooleanAttribute, writeLongAttribute, writeLongListAttribute, writeMapAttribute, writeStringAttribute, writeStringListAttribute
-
Field Details
-
tags
-
resolver
-
-
Constructor Details
-
TagTypeWithState
-
TagTypeWithState
protected TagTypeWithState(int tag_type, TaggableResolver _resolver, int tag_features, String tag_name)
-
-
Method Details
-
resolveTaggable
- Overrides:
resolveTaggablein classTagTypeBase
-
getResolver
- Overrides:
getResolverin classTagTypeBase
-
removeTaggable
- Overrides:
removeTaggablein classTagTypeBase
-
createTag
- Throws:
TagException
-
addTag
- Specified by:
addTagin interfaceTagType- Overrides:
addTagin classTagTypeBase
-
removeTag
- Specified by:
removeTagin interfaceTagType- Overrides:
removeTagin classTagTypeBase
-
getTags
-
getTagCount
public int getTagCount()
-