public abstract class CombineArchiveContentNode extends Object implements Comparable<CombineArchiveContentNode>
Modifier and Type | Field and Description |
---|---|
protected CombineArchiveNode |
archiveNode
the corresponding archive node
|
protected String |
name
The name.
|
Constructor and Description |
---|
CombineArchiveContentNode(String name,
CombineArchiveNode archiveNode)
Instantiates a new combine archive content node.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CombineArchiveContentNode caen) |
abstract void |
generateTreeModel(DefaultMutableTreeNode parent)
Generate tree model.
|
CombineArchiveNode |
getArchiveNode()
Gets the corresponding archive node.
|
abstract Collection<CombineArchiveEntryNode> |
getArchivesNodes()
Gets the archives nodes rooted in this subtree.
|
String |
getName()
Gets the name.
|
abstract boolean |
isFolder()
Checks if is folder.
|
abstract void |
rename(String newName)
Rename this entry.
|
String |
toString() |
protected String name
protected CombineArchiveNode archiveNode
public CombineArchiveContentNode(String name, CombineArchiveNode archiveNode)
name
- the namearchiveNode
- the corresponding archive nodepublic CombineArchiveNode getArchiveNode()
public String getName()
public abstract boolean isFolder()
public int compareTo(CombineArchiveContentNode caen)
compareTo
in interface Comparable<CombineArchiveContentNode>
public abstract Collection<CombineArchiveEntryNode> getArchivesNodes()
public abstract void generateTreeModel(DefaultMutableTreeNode parent)
parent
- the parentpublic abstract void rename(String newName) throws IOException
newName
- the new nameIOException
Copyright © 2014. All rights reserved.