public class CombineArchiveEntryNode extends CombineArchiveContentNode
archiveNode, name
Constructor and Description |
---|
CombineArchiveEntryNode(String name,
de.unirostock.sems.cbarchive.ArchiveEntry entry,
CombineArchiveNode archiveNode)
Instantiates a new combine archive entry node.
|
Modifier and Type | Method and Description |
---|---|
void |
generateTreeModel(DefaultMutableTreeNode parent)
Generate tree model.
|
de.unirostock.sems.cbarchive.ArchiveEntry |
getArchiveEntry()
Gets the corresponding archive entry.
|
Collection<CombineArchiveEntryNode> |
getArchivesNodes()
Gets the archives nodes rooted in this subtree.
|
boolean |
isFolder()
Checks if is folder.
|
void |
move(String newPath)
Move this entry into another folder.
|
void |
rename(String newName)
Rename this entry.
|
void |
setArchiveEntry(de.unirostock.sems.cbarchive.ArchiveEntry entry)
Gets the corresponding archive entry.
|
compareTo, getArchiveNode, getName, toString
public CombineArchiveEntryNode(String name, de.unirostock.sems.cbarchive.ArchiveEntry entry, CombineArchiveNode archiveNode)
name
- the nameentry
- the corresponding entryarchiveNode
- public void setArchiveEntry(de.unirostock.sems.cbarchive.ArchiveEntry entry)
entry
- the new entrypublic de.unirostock.sems.cbarchive.ArchiveEntry getArchiveEntry()
public boolean isFolder()
isFolder
in class CombineArchiveContentNode
public void generateTreeModel(DefaultMutableTreeNode parent)
generateTreeModel
in class CombineArchiveContentNode
parent
- the parentpublic Collection<CombineArchiveEntryNode> getArchivesNodes()
CombineArchiveContentNode
getArchivesNodes
in class CombineArchiveContentNode
public void move(String newPath) throws IOException
newPath
- the new pathIOException
public void rename(String newName) throws IOException
CombineArchiveContentNode
rename
in class CombineArchiveContentNode
newName
- the new nameIOException
Copyright © 2014. All rights reserved.