|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.index.treeview.AbstractTreeNode
public abstract class AbstractTreeNode
Base set of functionality for the TreeNode that all implementations will need.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.maven.index.treeview.TreeNode |
---|
TreeNode.Type |
Constructor Summary | |
---|---|
AbstractTreeNode(IndexTreeView tview,
TreeViewRequest request)
Constructor that takes an IndexTreeView implementation and a TreeNodeFactory implementation; |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTreeNode(IndexTreeView tview, TreeViewRequest request)
tview
- factory
- Method Detail |
---|
public TreeNode.Type getType()
getType
in interface TreeNode
public void setType(TreeNode.Type type)
setType
in interface TreeNode
Type
- public boolean isLeaf()
isLeaf
in interface TreeNode
public void setLeaf(boolean leaf)
setLeaf
in interface TreeNode
boolean
- public String getNodeName()
getNodeName
in interface TreeNode
public void setNodeName(String nodeName)
setNodeName
in interface TreeNode
String
- public String getPath()
getPath
in interface TreeNode
public void setPath(String path)
setPath
in interface TreeNode
String
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |