com.aelitis.azureus.core.tag.impl
Class TagWithState

java.lang.Object
  extended by com.aelitis.azureus.core.tag.impl.TagBase
      extended by com.aelitis.azureus.core.tag.impl.TagWithState
All Implemented Interfaces:
SimpleTimer.TimerTickReceiver, Tag
Direct Known Subclasses:
TagDownloadWithState

public abstract class TagWithState
extends TagBase


Field Summary
 
Fields inherited from class com.aelitis.azureus.core.tag.impl.TagBase
AT_BYTES_DOWN, AT_BYTES_UP, AT_CAN_BE_PUBLIC, AT_COLOR_ID, AT_DESCRIPTION, AT_EOA_PREFIX, AT_EOS_SCRIPT, AT_FL_COPY_COMP, AT_FL_INIT_LOC, AT_FL_MOVE_COMP, AT_GROUP, AT_IMAGE_ID, AT_MAX_TAGGABLES, AT_ORIGINAL_NAME, AT_PROPERTY_PREFIX, AT_PUBLIC, AT_RATELIMIT_DOWN, AT_RATELIMIT_MAX_AGGREGATE_SR, AT_RATELIMIT_MAX_AGGREGATE_SR_ACTION, AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY, AT_RATELIMIT_MAX_SR, AT_RATELIMIT_MAX_SR_ACTION, AT_RATELIMIT_MIN_SR, AT_RATELIMIT_UP, AT_RATELIMIT_UP_PRI, AT_REMOVAL_STRATEGY, AT_RSS_ENABLE, AT_VISIBLE, AT_XCODE_TARGET
 
Constructor Summary
protected TagWithState(TagTypeBase tt, int tag_id, Map map)
           
  TagWithState(TagTypeBase tt, int tag_id, String name)
           
 
Method Summary
 void addTaggable(Taggable t)
           
protected  void exportDetails(Map map, boolean do_contents)
           
 Set<Taggable> getTagged()
           
 int getTaggedCount()
           
 boolean hasTaggable(Taggable t)
           
protected  boolean isRemoved()
           
 void removeTag()
           
 void removeTaggable(Taggable t)
           
 void setTagName(String name)
           
 
Methods inherited from class com.aelitis.azureus.core.tag.impl.TagBase
addListener, addTag, addTagListener, canBePublic, checkMaximumTaggables, closing, createTagProperty, destroy, generate, getActionScript, getCanBePublicDefault, getColor, getDescription, getGroup, getImageID, getManager, getMaximumTaggables, getProperty, getPublicDefault, getRecentHistory, getRemovalStrategy, getSupportedActions, getSupportedProperties, getTag, getTagAggregateShareRatio, getTagCopyOnCompleteFolder, getTagDownloadTotal, getTaggables, getTagID, getTagInitialSaveFolder, getTagMaxAggregateShareRatio, getTagMaxAggregateShareRatioAction, getTagMaxAggregateShareRatioHasPriority, getTagMaxShareRatio, getTagMaxShareRatioAction, getTagMinShareRatio, getTagMoveOnCompleteFolder, getTagName, getTagName, getTagNameRaw, getTagSessionDownloadTotal, getTagSessionDownloadTotalCurrent, getTagSessionUploadTotal, getTagSessionUploadTotalCurrent, getTagType, getTagUID, getTagUploadTotal, getVisibleDefault, initialized, isActionEnabled, isColorDefault, isPublic, isTagAuto, isTagRSSFeedEnabled, isVisible, readBooleanAttribute, readLongAttribute, readStringAttribute, readStringListAttribute, removeListener, removeTagListener, resetTagSessionDownloadTotal, resetTagSessionUploadTotal, setActionEnabled, setActionScript, setCanBePublic, setColor, setDescription, setGroup, setImageID, setMaximumTaggables, setPublic, setRecentHistoryRetention, setRemovalStrategy, setTagCopyOnCompleteFolder, setTagInitialSaveFolder, setTagMaxAggregateShareRatio, setTagMaxAggregateShareRatioAction, setTagMaxAggregateShareRatioHasPriority, setTagMaxShareRatio, setTagMaxShareRatioAction, setTagMinShareRatio, setTagMoveOnCompleteFolder, setTagRSSFeedEnabled, setVisible, supportsAction, supportsTagCopyOnComplete, supportsTagInitialSaveFolder, supportsTagMoveOnComplete, sync, tick, writeBooleanAttribute, writeLongAttribute, writeStringAttribute, writeStringListAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aelitis.azureus.core.tag.Tag
getTaggableTypes
 

Constructor Detail

TagWithState

public TagWithState(TagTypeBase tt,
                    int tag_id,
                    String name)

TagWithState

protected TagWithState(TagTypeBase tt,
                       int tag_id,
                       Map map)
Method Detail

exportDetails

protected void exportDetails(Map map,
                             boolean do_contents)

setTagName

public void setTagName(String name)
                throws TagException
Overrides:
setTagName in class TagBase
Throws:
TagException

addTaggable

public void addTaggable(Taggable t)
Overrides:
addTaggable in class TagBase

removeTaggable

public void removeTaggable(Taggable t)
Overrides:
removeTaggable in class TagBase

removeTag

public void removeTag()
Overrides:
removeTag in class TagBase

isRemoved

protected boolean isRemoved()

getTaggedCount

public int getTaggedCount()

hasTaggable

public boolean hasTaggable(Taggable t)

getTagged

public Set<Taggable> getTagged()