org.apache.maven.index.treeview
Class DefaultTreeNodeFactory

java.lang.Object
  extended by org.apache.maven.index.treeview.DefaultTreeNodeFactory
All Implemented Interfaces:
TreeNodeFactory

public class DefaultTreeNodeFactory
extends Object
implements TreeNodeFactory

A default implementation of TreeNodeFactory, that is fairly simple to extend.

Author:
Tamas Cservenak

Constructor Summary
DefaultTreeNodeFactory(String id)
           
 
Method Summary
 TreeNode createANode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path)
           
 TreeNode createArtifactNode(IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path)
           
 TreeNode 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)
           
 TreeNode 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)
           
 String getRepositoryId()
           
protected  TreeNode instantiateNode(IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTreeNodeFactory

public DefaultTreeNodeFactory(String id)
Method Detail

getRepositoryId

public String getRepositoryId()
Specified by:
getRepositoryId in interface TreeNodeFactory

createGNode

public TreeNode createGNode(IndexTreeView tview,
                            TreeViewRequest req,
                            String path,
                            String groupName)
Specified by:
createGNode in interface TreeNodeFactory

decorateGNode

protected TreeNode decorateGNode(IndexTreeView tview,
                                 TreeViewRequest req,
                                 String path,
                                 String groupName,
                                 TreeNode node)

createANode

public TreeNode createANode(IndexTreeView tview,
                            TreeViewRequest req,
                            ArtifactInfo ai,
                            String path)
Specified by:
createANode in interface TreeNodeFactory

decorateANode

protected TreeNode decorateANode(IndexTreeView tview,
                                 TreeViewRequest req,
                                 ArtifactInfo ai,
                                 String path,
                                 TreeNode node)

createVNode

public TreeNode createVNode(IndexTreeView tview,
                            TreeViewRequest req,
                            ArtifactInfo ai,
                            String path)
Specified by:
createVNode in interface TreeNodeFactory

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 interface TreeNodeFactory

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)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.