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
Constructors -
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 TreeNodecreateNode(IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName, TreeNode.Type type) createVNode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path) protected TreeNodedecorateANode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) protected TreeNodedecorateArtifactNode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) protected TreeNodedecorateGNode(IndexTreeView tview, TreeViewRequest req, String path, String groupName, TreeNode node) protected TreeNodedecorateVNode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) protected TreeNodeinstantiateNode(IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName)
-
Constructor Details
-
DefaultTreeNodeFactory
-
-
Method Details
-
getRepositoryId
- Specified by:
getRepositoryIdin interfaceTreeNodeFactory
-
createGNode
public TreeNode createGNode(IndexTreeView tview, TreeViewRequest req, String path, String groupName) - Specified by:
createGNodein interfaceTreeNodeFactory
-
decorateGNode
protected TreeNode decorateGNode(IndexTreeView tview, TreeViewRequest req, String path, String groupName, TreeNode node) -
createANode
- Specified by:
createANodein interfaceTreeNodeFactory
-
decorateANode
protected TreeNode decorateANode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path, TreeNode node) -
createVNode
- Specified by:
createVNodein 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:
createArtifactNodein 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)
-