org.gudy.azureus2.plugins.torrent
Interface TorrentAttribute

All Known Implementing Classes:
TorrentAttributeCategoryImpl, TorrentAttributeDisplayNameImpl, TorrentAttributeNetworksImpl, TorrentAttributePeerSourcesImpl, TorrentAttributePluginImpl, TorrentAttributeRelativeSavePathImpl, TorrentAttributeSharePropertiesImpl, TorrentAttributeTrackerClientExtImpl, TorrentAttributeUserCommentImpl

public interface TorrentAttribute

Author:
parg

Field Summary
static java.lang.String TA_CATEGORY
           
static java.lang.String TA_CONTENT_MAP
           
static java.lang.String TA_DISPLAY_NAME
          Controls the displayed name of a download.
static java.lang.String TA_NETWORKS
           
static java.lang.String TA_PEER_SOURCES
           
static java.lang.String TA_RELATIVE_SAVE_PATH
          Defines a relative file path for this download - this attribute is used when moving downloads for completion or removal - this path is relative to the default download directories.
static java.lang.String TA_SHARE_PROPERTIES
           
static java.lang.String TA_TRACKER_CLIENT_EXTENSIONS
           
static java.lang.String TA_USER_COMMENT
          The user-defined comment for a download.
 
Method Summary
 void addDefinedValue(java.lang.String name)
          Adds a new value to the attribute set
 void addTorrentAttributeListener(TorrentAttributeListener l)
           
 java.lang.String[] getDefinedValues()
          Returns the currently defined values for this attribute
 java.lang.String getName()
           
 void removeDefinedValue(java.lang.String name)
          Removes a value from the attribute set
 void removeTorrentAttributeListener(TorrentAttributeListener l)
           
 

Field Detail

TA_CATEGORY

static final java.lang.String TA_CATEGORY
See Also:
Constant Field Values

TA_NETWORKS

static final java.lang.String TA_NETWORKS
See Also:
Constant Field Values

TA_PEER_SOURCES

static final java.lang.String TA_PEER_SOURCES
See Also:
Constant Field Values

TA_TRACKER_CLIENT_EXTENSIONS

static final java.lang.String TA_TRACKER_CLIENT_EXTENSIONS
See Also:
Constant Field Values

TA_SHARE_PROPERTIES

static final java.lang.String TA_SHARE_PROPERTIES
See Also:
Constant Field Values

TA_CONTENT_MAP

static final java.lang.String TA_CONTENT_MAP
See Also:
Constant Field Values

TA_DISPLAY_NAME

static final java.lang.String TA_DISPLAY_NAME
Controls the displayed name of a download.

Since:
2.5.0.0
See Also:
Constant Field Values

TA_USER_COMMENT

static final java.lang.String TA_USER_COMMENT
The user-defined comment for a download.

Since:
2.5.0.1
See Also:
Constant Field Values

TA_RELATIVE_SAVE_PATH

static final java.lang.String TA_RELATIVE_SAVE_PATH
Defines a relative file path for this download - this attribute is used when moving downloads for completion or removal - this path is relative to the default download directories.

Since:
2.5.0.1
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()

getDefinedValues

java.lang.String[] getDefinedValues()
Returns the currently defined values for this attribute

Returns:

addDefinedValue

void addDefinedValue(java.lang.String name)
Adds a new value to the attribute set

Parameters:
name -

removeDefinedValue

void removeDefinedValue(java.lang.String name)
Removes a value from the attribute set

Parameters:
name -

addTorrentAttributeListener

void addTorrentAttributeListener(TorrentAttributeListener l)

removeTorrentAttributeListener

void removeTorrentAttributeListener(TorrentAttributeListener l)