public abstract class AbstractTreeNode extends Object implements TreeNode
TreeNode.Type| 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(String path,
TreeNode.Type type)
Find a TreeNode based upon a path and Type check.
|
String |
getArtifactId()
Get the artifact id of this node.
|
List<TreeNode> |
getChildren()
Get the children of this node.
|
String |
getGroupId()
Get the group id of this node.
|
String |
getNodeName()
Get the name of the node.
|
String |
getPath()
Get the path of the node.
|
String |
getRepositoryId()
Get the repository id that this node is stored in.
|
TreeNode.Type |
getType()
Get the type of node.
|
String |
getVersion()
Get the version of this node.
|
boolean |
isLeaf()
Get flag that determines if the node is a leaf.
|
List<TreeNode> |
listChildren()
Get the children of this node.
|
void |
setArtifactId(String artifactId)
Set the artifact id of this node.
|
void |
setGroupId(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(String nodeName)
Set the name of the node.
|
void |
setPath(String path)
Set the path of the node.
|
void |
setRepositoryId(String repositoryId)
Set the repository id that this node is stored in.
|
void |
setType(TreeNode.Type type)
Set the type of node.
|
void |
setVersion(String version)
Set the version of this node.
|
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 String getNodeName()
getNodeName in interface TreeNodepublic void setNodeName(String nodeName)
setNodeName in interface TreeNodeString - public String getPath()
public void setPath(String path)
public String getGroupId()
getGroupId in interface TreeNodepublic void setGroupId(String groupId)
setGroupId in interface TreeNodeString - public String getArtifactId()
getArtifactId in interface TreeNodepublic void setArtifactId(String artifactId)
setArtifactId in interface TreeNodeString - public String getVersion()
getVersion in interface TreeNodepublic void setVersion(String version)
setVersion in interface TreeNodeString - public String getRepositoryId()
getRepositoryId in interface TreeNodepublic void setRepositoryId(String repositoryId)
setRepositoryId in interface TreeNodeString - public List<TreeNode> getChildren()
getChildren in interface TreeNodepublic List<TreeNode> listChildren() throws IOException
listChildren in interface TreeNodeIOExceptionpublic TreeNode findChildByPath(String path, TreeNode.Type type) throws IOException
findChildByPath in interface TreeNodeIOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.