org.gudy.azureus2.pluginsimpl.local.torrent
Class TorrentAttributePluginImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.torrent.TorrentAttributePluginImpl
All Implemented Interfaces:
TorrentAttribute

public class TorrentAttributePluginImpl
extends Object

Author:
parg

Field Summary
 
Fields inherited from interface org.gudy.azureus2.plugins.torrent.TorrentAttribute
TA_CATEGORY, TA_CONTENT_MAP, TA_DISPLAY_NAME, TA_NETWORKS, TA_PEER_SOURCES, TA_RELATIVE_SAVE_PATH, TA_SHARE_PROPERTIES, TA_TRACKER_CLIENT_EXTENSIONS, TA_USER_COMMENT
 
Constructor Summary
protected TorrentAttributePluginImpl(String _name)
           
 
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()
           
protected  List getTorrentAttributeListeners()
           
protected  void notifyListeners(TorrentAttributeEvent ev)
           
 void removeDefinedValue(String name)
          Removes a value from the attribute set
 void removeTorrentAttributeListener(TorrentAttributeListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TorrentAttributePluginImpl

protected TorrentAttributePluginImpl(String _name)
Method Detail

getName

public String getName()
Specified by:
getName in interface TorrentAttribute

getDefinedValues

public String[] getDefinedValues()
Description copied from interface: TorrentAttribute
Returns the currently defined values for this attribute

Specified by:
getDefinedValues in interface TorrentAttribute
Returns:

addDefinedValue

public void addDefinedValue(String name)
Description copied from interface: TorrentAttribute
Adds a new value to the attribute set

Specified by:
addDefinedValue in interface TorrentAttribute

removeDefinedValue

public void removeDefinedValue(String name)
Description copied from interface: TorrentAttribute
Removes a value from the attribute set

Specified by:
removeDefinedValue in interface TorrentAttribute

addTorrentAttributeListener

public void addTorrentAttributeListener(TorrentAttributeListener l)
Specified by:
addTorrentAttributeListener in interface TorrentAttribute

removeTorrentAttributeListener

public void removeTorrentAttributeListener(TorrentAttributeListener l)
Specified by:
removeTorrentAttributeListener in interface TorrentAttribute

getTorrentAttributeListeners

protected List getTorrentAttributeListeners()

notifyListeners

protected void notifyListeners(TorrentAttributeEvent ev)