public abstract class AbstractTreeNode extends java.lang.Object implements TreeNode
TreeNode.Type
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
artifactId
The artifact id of this node.
|
private java.util.List<TreeNode> |
children
The children of this node.
|
private java.lang.String |
groupId
The group id of this node.
|
private boolean |
leaf
Flag that determines if the node is a leaf.
|
private java.lang.String |
nodeName
The name of the node.
|
private java.lang.String |
path
The path of the node.
|
private java.lang.String |
repositoryId
The repository id that this node is stored in.
|
private TreeViewRequest |
request |
private IndexTreeView |
treeView |
private java.lang.String |
type
The type of node.
|
private java.lang.String |
version
The version of this node.
|
Constructor and Description |
---|
AbstractTreeNode(IndexTreeView tview,
TreeViewRequest request)
Constructor that takes an IndexTreeView implementation and a TreeNodeFactory implementation;
|
Modifier and Type | Method and Description |
---|---|
TreeNode |
findChildByPath(java.lang.String path,
TreeNode.Type type)
Find a TreeNode based upon a path and Type check.
|
java.lang.String |
getArtifactId()
Get the artifact id of this node.
|
java.util.List<TreeNode> |
getChildren()
Get the children of this node.
|
java.lang.String |
getGroupId()
Get the group id of this node.
|
java.lang.String |
getNodeName()
Get the name of the node.
|
java.lang.String |
getPath()
Get the path of the node.
|
java.lang.String |
getRepositoryId()
Get the repository id that this node is stored in.
|
TreeNode.Type |
getType()
Get the type of node.
|
java.lang.String |
getVersion()
Get the version of this node.
|
boolean |
isLeaf()
Get flag that determines if the node is a leaf.
|
java.util.List<TreeNode> |
listChildren()
Get the children of this node.
|
void |
setArtifactId(java.lang.String artifactId)
Set the artifact id of this node.
|
void |
setGroupId(java.lang.String groupId)
Set the group id of this node.
|
void |
setLeaf(boolean leaf)
Set flag that determines if the node is a leaf.
|
void |
setNodeName(java.lang.String nodeName)
Set the name of the node.
|
void |
setPath(java.lang.String path)
Set the path of the node.
|
void |
setRepositoryId(java.lang.String repositoryId)
Set the repository id that this node is stored in.
|
void |
setType(TreeNode.Type type)
Set the type of node.
|
void |
setVersion(java.lang.String version)
Set the version of this node.
|
private java.lang.String type
private boolean leaf
private java.lang.String nodeName
private java.lang.String path
private java.util.List<TreeNode> children
private java.lang.String groupId
private java.lang.String artifactId
private java.lang.String version
private java.lang.String repositoryId
private final transient IndexTreeView treeView
private final transient TreeViewRequest request
public AbstractTreeNode(IndexTreeView tview, TreeViewRequest request)
tview
- factory
- public TreeNode.Type getType()
public void setType(TreeNode.Type type)
public boolean isLeaf()
public void setLeaf(boolean leaf)
public java.lang.String getNodeName()
getNodeName
in interface TreeNode
public void setNodeName(java.lang.String nodeName)
setNodeName
in interface TreeNode
String
- public java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.String getGroupId()
getGroupId
in interface TreeNode
public void setGroupId(java.lang.String groupId)
setGroupId
in interface TreeNode
String
- public java.lang.String getArtifactId()
getArtifactId
in interface TreeNode
public void setArtifactId(java.lang.String artifactId)
setArtifactId
in interface TreeNode
String
- public java.lang.String getVersion()
getVersion
in interface TreeNode
public void setVersion(java.lang.String version)
setVersion
in interface TreeNode
String
- public java.lang.String getRepositoryId()
getRepositoryId
in interface TreeNode
public void setRepositoryId(java.lang.String repositoryId)
setRepositoryId
in interface TreeNode
String
- public java.util.List<TreeNode> getChildren()
getChildren
in interface TreeNode
public java.util.List<TreeNode> listChildren() throws java.io.IOException
listChildren
in interface TreeNode
java.io.IOException
public TreeNode findChildByPath(java.lang.String path, TreeNode.Type type) throws java.io.IOException
findChildByPath
in interface TreeNode
java.io.IOException