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 Fileprotected ShareResource[]protected ShareResourceDirContentsFields inherited from interface ShareResource
ST_DIR, ST_DIR_CONTENTS, ST_FILE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedshareNode(ShareResourceDirContents _parent, File _node, List kids) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanvoiddelete()voiddelete(boolean force) getAttribute(TorrentAttribute attribute) get the defined attributes for this resourcegetName()getRoot()intgetType()booleanbooleanbooleanvoidvoidvoidsetAttribute(TorrentAttribute attribute, String value) protected voidsetParent(ShareResourceDirContents _parent) voidsetProperties(Map<String, String> props, boolean internal)
-
Field Details
-
node_parent
-
node
-
node_children
-
-
Constructor Details
-
Method Details
-
getParent
- Specified by:
getParentin interfaceShareResource
-
getType
public int getType()- Specified by:
getTypein interfaceShareResource
-
getName
- Specified by:
getNamein interfaceShareResource
-
setAttribute
- Specified by:
setAttributein interfaceShareResource
-
getAttribute
- Specified by:
getAttributein interfaceShareResource- Parameters:
attribute-- Returns:
- null if no value defined
-
getAttributes
Description copied from interface:ShareResourceget the defined attributes for this resource- Specified by:
getAttributesin interfaceShareResource- Returns:
-
delete
- Specified by:
deletein interfaceShareResource- Throws:
ShareResourceDeletionVetoException
-
delete
- Specified by:
deletein interfaceShareResource- Throws:
ShareExceptionShareResourceDeletionVetoException
-
canBeDeleted
- Specified by:
canBeDeletedin interfaceShareResource- Throws:
ShareResourceDeletionVetoException
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceShareResource
-
getRoot
- Specified by:
getRootin interfaceShareResourceDirContents
-
isRecursive
public boolean isRecursive()- Specified by:
isRecursivein interfaceShareResourceDirContents
-
getChildren
- Specified by:
getChildrenin interfaceShareResourceDirContents
-
getProperties
- Specified by:
getPropertiesin interfaceShareResource
-
setProperties
- Specified by:
setPropertiesin interfaceShareResource
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistentin interfaceShareResource
-