Class BaseTorrentAttributeImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.torrent.BaseTorrentAttributeImpl
-
- All Implemented Interfaces:
TorrentAttribute
- Direct Known Subclasses:
TorrentAttributeCategoryImpl
,TorrentAttributeDisplayNameImpl
,TorrentAttributeNetworksImpl
,TorrentAttributePeerSourcesImpl
,TorrentAttributePluginImpl
,TorrentAttributeRelativeSavePathImpl
,TorrentAttributeSharePropertiesImpl
,TorrentAttributeTrackerClientExtImpl
,TorrentAttributeUserCommentImpl
abstract class BaseTorrentAttributeImpl extends java.lang.Object implements TorrentAttribute
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List
listeners
-
Fields inherited from interface com.biglybt.pif.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
Constructors Modifier Constructor Description protected
BaseTorrentAttributeImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addDefinedValue(java.lang.String name)
Adds a new value to the attribute setvoid
addTorrentAttributeListener(TorrentAttributeListener l)
java.lang.String[]
getDefinedValues()
Returns the currently defined values for this attributeabstract java.lang.String
getName()
protected java.util.List
getTorrentAttributeListeners()
protected void
notifyListeners(TorrentAttributeEvent ev)
void
removeDefinedValue(java.lang.String name)
Removes a value from the attribute setvoid
removeTorrentAttributeListener(TorrentAttributeListener l)
-
-
-
Method Detail
-
getName
public abstract java.lang.String getName()
- Specified by:
getName
in interfaceTorrentAttribute
-
getDefinedValues
public java.lang.String[] getDefinedValues()
Description copied from interface:TorrentAttribute
Returns the currently defined values for this attribute- Specified by:
getDefinedValues
in interfaceTorrentAttribute
- Returns:
-
addDefinedValue
public void addDefinedValue(java.lang.String name)
Description copied from interface:TorrentAttribute
Adds a new value to the attribute set- Specified by:
addDefinedValue
in interfaceTorrentAttribute
-
removeDefinedValue
public void removeDefinedValue(java.lang.String name)
Description copied from interface:TorrentAttribute
Removes a value from the attribute set- Specified by:
removeDefinedValue
in interfaceTorrentAttribute
-
addTorrentAttributeListener
public void addTorrentAttributeListener(TorrentAttributeListener l)
- Specified by:
addTorrentAttributeListener
in interfaceTorrentAttribute
-
removeTorrentAttributeListener
public void removeTorrentAttributeListener(TorrentAttributeListener l)
- Specified by:
removeTorrentAttributeListener
in interfaceTorrentAttribute
-
getTorrentAttributeListeners
protected java.util.List getTorrentAttributeListeners()
-
notifyListeners
protected void notifyListeners(TorrentAttributeEvent ev)
-
-