Package org.apache.maven.index.treeview
Class AbstractTreeNode
java.lang.Object
org.apache.maven.index.treeview.AbstractTreeNode
- All Implemented Interfaces:
- TreeNode
- Direct Known Subclasses:
- DefaultTreeNode
Base set of functionality for the TreeNode that all implementations will need.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.maven.index.treeview.TreeNodeTreeNode.Type
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractTreeNode(IndexTreeView tview, TreeViewRequest request) Constructor that takes an IndexTreeView implementation and a TreeNodeFactory implementation;
- 
Method SummaryModifier and TypeMethodDescriptionfindChildByPath(String path, TreeNode.Type type) Find a TreeNode based upon a path and Type check.Get the artifact id of this node.Get the children of this node.Get the group id of this node.Get the name of the node.getPath()Get the path of the node.Get the repository id that this node is stored in.getType()Get the type of node.Get the version of this node.booleanisLeaf()Get flag that determines if the node is a leaf.Get the children of this node.voidsetArtifactId(String artifactId) Set the artifact id of this node.voidsetGroupId(String groupId) Set the group id of this node.voidsetLeaf(boolean leaf) Set flag that determines if the node is a leaf.voidsetNodeName(String nodeName) Set the name of the node.voidSet the path of the node.voidsetRepositoryId(String repositoryId) Set the repository id that this node is stored in.voidsetType(TreeNode.Type type) Set the type of node.voidsetVersion(String version) Set the version of this node.
- 
Constructor Details- 
AbstractTreeNodeConstructor that takes an IndexTreeView implementation and a TreeNodeFactory implementation;- Parameters:
- tview-
- request-
 
 
- 
- 
Method Details- 
getTypeGet the type of node.
- 
setTypeSet the type of node.
- 
isLeafpublic boolean isLeaf()Get flag that determines if the node is a leaf.
- 
setLeafpublic void setLeaf(boolean leaf) Set flag that determines if the node is a leaf.
- 
getNodeNameGet the name of the node.- Specified by:
- getNodeNamein interface- TreeNode
- Returns:
- String
 
- 
setNodeNameSet the name of the node.- Specified by:
- setNodeNamein interface- TreeNode
- Parameters:
- nodeName-
 
- 
getPathGet the path of the node.
- 
setPathSet the path of the node.
- 
getGroupIdGet the group id of this node.- Specified by:
- getGroupIdin interface- TreeNode
- Returns:
- String
 
- 
setGroupIdSet the group id of this node.- Specified by:
- setGroupIdin interface- TreeNode
- Parameters:
- groupId-
 
- 
getArtifactIdGet the artifact id of this node.- Specified by:
- getArtifactIdin interface- TreeNode
- Returns:
- String
 
- 
setArtifactIdSet the artifact id of this node.- Specified by:
- setArtifactIdin interface- TreeNode
- Parameters:
- artifactId-
 
- 
getVersionGet the version of this node.- Specified by:
- getVersionin interface- TreeNode
- Returns:
- String
 
- 
setVersionSet the version of this node.- Specified by:
- setVersionin interface- TreeNode
- Parameters:
- version-
 
- 
getRepositoryIdGet the repository id that this node is stored in.- Specified by:
- getRepositoryIdin interface- TreeNode
- Returns:
- String
 
- 
setRepositoryIdSet the repository id that this node is stored in.- Specified by:
- setRepositoryIdin interface- TreeNode
- Parameters:
- repositoryId-
 
- 
getChildrenGet the children of this node. If this is a leaf node, null will be returned. This will NOT perform any actions on the index to retrieve the children, will only return children that have already been loaded via the listChildren method.- Specified by:
- getChildrenin interface- TreeNode
- Returns:
- List
 
- 
listChildrenGet the children of this node. If this is a leaf node, null will be returned. This will use the index to retrieve the list of child nodes.- Specified by:
- listChildrenin interface- TreeNode
- Returns:
- List
- Throws:
- IOException
 
- 
findChildByPathFind a TreeNode based upon a path and Type check.- Specified by:
- findChildByPathin interface- TreeNode
- Returns:
- TreeNode
- Throws:
- IOException
 
 
-