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 TreeNode
public void setNodeName(String nodeName)
setNodeName
in interface TreeNode
String
- public String getPath()
public void setPath(String path)
public String getGroupId()
getGroupId
in interface TreeNode
public void setGroupId(String groupId)
setGroupId
in interface TreeNode
String
- public String getArtifactId()
getArtifactId
in interface TreeNode
public void setArtifactId(String artifactId)
setArtifactId
in interface TreeNode
String
- public String getVersion()
getVersion
in interface TreeNode
public void setVersion(String version)
setVersion
in interface TreeNode
String
- public String getRepositoryId()
getRepositoryId
in interface TreeNode
public void setRepositoryId(String repositoryId)
setRepositoryId
in interface TreeNode
String
- public List<TreeNode> getChildren()
getChildren
in interface TreeNode
public List<TreeNode> listChildren() throws IOException
listChildren
in interface TreeNode
IOException
public TreeNode findChildByPath(String path, TreeNode.Type type) throws IOException
findChildByPath
in interface TreeNode
IOException
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.