Class ShareResourceDirContentsImpl.shareNode
java.lang.Object
com.biglybt.pifimpl.local.sharing.ShareResourceDirContentsImpl.shareNode
- All Implemented Interfaces:
ShareResource
,ShareResourceDirContents
- Enclosing class:
- ShareResourceDirContentsImpl
protected class ShareResourceDirContentsImpl.shareNode
extends Object
implements ShareResourceDirContents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected File
protected ShareResource[]
protected ShareResourceDirContents
Fields inherited from interface com.biglybt.pif.sharing.ShareResource
ST_DIR, ST_DIR_CONTENTS, ST_FILE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
shareNode
(ShareResourceDirContents _parent, File _node, List kids) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
boolean
void
delete()
void
delete
(boolean force) getAttribute
(TorrentAttribute attribute) get the defined attributes for this resourcegetName()
getRoot()
int
getType()
boolean
boolean
boolean
void
void
void
setAttribute
(TorrentAttribute attribute, String value) protected void
setParent
(ShareResourceDirContents _parent) void
setProperties
(Map<String, String> props, boolean internal)
-
Field Details
-
node_parent
-
node
-
node_children
-
-
Constructor Details
-
Method Details
-
getParent
- Specified by:
getParent
in interfaceShareResource
-
getType
public int getType()- Specified by:
getType
in interfaceShareResource
-
getName
- Specified by:
getName
in interfaceShareResource
-
setAttribute
- Specified by:
setAttribute
in interfaceShareResource
-
getAttribute
- Specified by:
getAttribute
in interfaceShareResource
- Returns:
- null if no value defined
-
getAttributes
Description copied from interface:ShareResource
get the defined attributes for this resource- Specified by:
getAttributes
in interfaceShareResource
- Returns:
-
delete
- Specified by:
delete
in interfaceShareResource
- Throws:
ShareResourceDeletionVetoException
-
delete
- Specified by:
delete
in interfaceShareResource
- Throws:
ShareException
ShareResourceDeletionVetoException
-
canBeDeleted
- Specified by:
canBeDeleted
in interfaceShareResource
- Throws:
ShareResourceDeletionVetoException
-
isDeleted
public boolean isDeleted()- Specified by:
isDeleted
in interfaceShareResource
-
getRoot
- Specified by:
getRoot
in interfaceShareResourceDirContents
-
isRecursive
public boolean isRecursive()- Specified by:
isRecursive
in interfaceShareResourceDirContents
-
getChildren
- Specified by:
getChildren
in interfaceShareResourceDirContents
-
getProperties
- Specified by:
getProperties
in interfaceShareResource
-
setProperties
- Specified by:
setProperties
in interfaceShareResource
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in interfaceShareResource
-