Package com.biglybt.pif.sharing
Interface ShareResource
- All Known Subinterfaces:
ShareResourceDir
,ShareResourceDirContents
,ShareResourceFile
- All Known Implementing Classes:
ShareResourceDirContentsImpl
,ShareResourceDirContentsImpl.shareNode
,ShareResourceDirImpl
,ShareResourceFileImpl
,ShareResourceFileOrDirImpl
,ShareResourceImpl
public interface ShareResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
boolean
void
delete()
void
delete
(boolean force) getAttribute
(TorrentAttribute attribute) get the defined attributes for this resourcegetName()
int
getType()
boolean
boolean
void
void
void
setAttribute
(TorrentAttribute attribute, String value) void
setProperties
(Map<String, String> props, boolean internal)
-
Field Details
-
ST_FILE
static final int ST_FILE- See Also:
-
ST_DIR
static final int ST_DIR- See Also:
-
ST_DIR_CONTENTS
static final int ST_DIR_CONTENTS- See Also:
-
-
Method Details
-
getType
int getType() -
getName
String getName() -
delete
-
delete
-
setAttribute
-
getAttribute
- Parameters:
attribute
-- Returns:
- null if no value defined
-
getAttributes
TorrentAttribute[] getAttributes()get the defined attributes for this resource- Returns:
-
getProperties
-
setProperties
-
isPersistent
boolean isPersistent() -
canBeDeleted
-
isDeleted
boolean isDeleted() -
getParent
ShareResourceDirContents getParent()
-