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 String TA_CATEGORY
           
static String TA_CONTENT_MAP
           
static String TA_DISPLAY_NAME
          Controls the displayed name of a download.
static String TA_NETWORKS
           
static String TA_PEER_SOURCES
           
static 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 String TA_SHARE_PROPERTIES
           
static String TA_TRACKER_CLIENT_EXTENSIONS
           
static String TA_USER_COMMENT
          The user-defined comment for a download.
 
Method Summary
 void addDefinedValue(String name)
          Adds a new value to the attribute set
 void addTorrentAttributeListener(TorrentAttributeListener l)
           
 String[] getDefinedValues()
          Returns the currently defined values for this attribute
 String getName()
           
 void removeDefinedValue(String name)
          Removes a value from the attribute set
 void removeTorrentAttributeListener(TorrentAttributeListener l)
           
 

Field Detail

TA_CATEGORY

static final String TA_CATEGORY
See Also:
Constant Field Values

TA_NETWORKS

static final String TA_NETWORKS
See Also:
Constant Field Values

TA_PEER_SOURCES

static final String TA_PEER_SOURCES
See Also:
Constant Field Values

TA_TRACKER_CLIENT_EXTENSIONS

static final String TA_TRACKER_CLIENT_EXTENSIONS
See Also:
Constant Field Values

TA_SHARE_PROPERTIES

static final String TA_SHARE_PROPERTIES
See Also:
Constant Field Values

TA_CONTENT_MAP

static final String TA_CONTENT_MAP
See Also:
Constant Field Values

TA_DISPLAY_NAME

static final 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 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 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

String getName()

getDefinedValues

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

Returns:

addDefinedValue

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

Parameters:
name -

removeDefinedValue

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

Parameters:
name -

addTorrentAttributeListener

void addTorrentAttributeListener(TorrentAttributeListener l)

removeTorrentAttributeListener

void removeTorrentAttributeListener(TorrentAttributeListener l)