Package org.apache.maven.index.treeview
Class DefaultIndexTreeView
java.lang.Object
org.apache.maven.index.treeview.DefaultIndexTreeView
- All Implemented Interfaces:
- IndexTreeView
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected IteratorSearchResponsegetArtifacts(TreeNode root, TreeViewRequest request) protected IteratorSearchResponsegetArtifactsByG(String g, TreeViewRequest request) protected IteratorSearchResponsegetArtifactsByGA(String g, String a, TreeViewRequest request) protected IteratorSearchResponsegetArtifactsByGAV(String g, String a, String v, TreeViewRequest request) protected IteratorSearchResponsegetArtifactsByGAVField(String g, String a, String v, TreeViewRequest request) protected IteratorSearchResponsegetHintedArtifacts(TreeNode root, TreeViewRequest request) protected Indexerprotected StringgetPathForAi(ArtifactInfo ai, Field field) Builds a path out from ArtifactInfo.protected voidlistChildren(TreeNode root, TreeViewRequest request, Set<String> allGroups) listNodes(TreeViewRequest request) Returns the TreeNode, as calculated by passed in request, using index data.
- 
Constructor Details- 
DefaultIndexTreeView
 
- 
- 
Method Details- 
getIndexer
- 
listNodesDescription copied from interface:IndexTreeViewReturns the TreeNode, as calculated by passed in request, using index data.- Specified by:
- listNodesin interface- IndexTreeView
- Parameters:
- request-
- Returns:
- Throws:
- IOException
 
- 
listChildrenprotected void listChildren(TreeNode root, TreeViewRequest request, Set<String> allGroups) throws IOException - Parameters:
- root-
- request-
- allGroups-
- Throws:
- IOException
 
- 
getPathForAiBuilds a path out from ArtifactInfo. The field parameter controls "how deep" the path goes. Possible values are MAVEN.GROUP_ID (builds a path from groupId only), MAVEN.ARTIFACT_ID (builds a path from groupId + artifactId), MAVEN.VERSION (builds a path up to version) or anything else (including null) will build "full" artifact path.- Parameters:
- ai-
- field-
- Returns:
- path
 
- 
getGroups
- 
getArtifactsprotected IteratorSearchResponse getArtifacts(TreeNode root, TreeViewRequest request) throws IOException - Throws:
- IOException
 
- 
getHintedArtifactsprotected IteratorSearchResponse getHintedArtifacts(TreeNode root, TreeViewRequest request) throws IOException - Throws:
- IOException
 
- 
getArtifactsByGprotected IteratorSearchResponse getArtifactsByG(String g, TreeViewRequest request) throws IOException - Throws:
- IOException
 
- 
getArtifactsByGAprotected IteratorSearchResponse getArtifactsByGA(String g, String a, TreeViewRequest request) throws IOException - Throws:
- IOException
 
- 
getArtifactsByGAVprotected IteratorSearchResponse getArtifactsByGAV(String g, String a, String v, TreeViewRequest request) throws IOException - Throws:
- IOException
 
- 
getArtifactsByGAVFieldprotected IteratorSearchResponse getArtifactsByGAVField(String g, String a, String v, TreeViewRequest request) throws IOException - Throws:
- IOException
 
 
-