Package org.apache.maven.index.treeview
Class DefaultTreeNodeFactory
java.lang.Object
org.apache.maven.index.treeview.DefaultTreeNodeFactory
- All Implemented Interfaces:
TreeNodeFactory
A default implementation of TreeNodeFactory, that is fairly simple to extend.
- Author:
- Tamas Cservenak
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateANode
(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path) createArtifactNode
(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path) createGNode
(IndexTreeView tview, TreeViewRequest req, String path, String groupName) protected TreeNode
createNode
(IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName, TreeNode.Type type) createVNode
(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path) protected TreeNode
decorateANode
(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) protected TreeNode
decorateArtifactNode
(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) protected TreeNode
decorateGNode
(IndexTreeView tview, TreeViewRequest req, String path, String groupName, TreeNode node) protected TreeNode
decorateVNode
(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) protected TreeNode
instantiateNode
(IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName)
-
Constructor Details
-
DefaultTreeNodeFactory
-
-
Method Details
-
getRepositoryId
- Specified by:
getRepositoryId
in interfaceTreeNodeFactory
-
createGNode
public TreeNode createGNode(IndexTreeView tview, TreeViewRequest req, String path, String groupName) - Specified by:
createGNode
in interfaceTreeNodeFactory
-
decorateGNode
protected TreeNode decorateGNode(IndexTreeView tview, TreeViewRequest req, String path, String groupName, TreeNode node) -
createANode
- Specified by:
createANode
in interfaceTreeNodeFactory
-
decorateANode
protected TreeNode decorateANode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) -
createVNode
- Specified by:
createVNode
in interfaceTreeNodeFactory
-
decorateVNode
protected TreeNode decorateVNode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) -
createArtifactNode
public TreeNode createArtifactNode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path) - Specified by:
createArtifactNode
in interfaceTreeNodeFactory
-
decorateArtifactNode
protected TreeNode decorateArtifactNode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) -
createNode
protected TreeNode createNode(IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName, TreeNode.Type type) -
instantiateNode
protected TreeNode instantiateNode(IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName)
-