Package org.apache.maven.index.treeview
Class DefaultIndexTreeView
java.lang.Object
org.apache.maven.index.treeview.DefaultIndexTreeView
- All Implemented Interfaces:
IndexTreeView
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
listNodes
Description copied from interface:IndexTreeViewReturns the TreeNode, as calculated by passed in request, using index data.- Specified by:
listNodesin interfaceIndexTreeView- Returns:
- Throws:
IOException
-
listChildren
protected void listChildren(TreeNode root, TreeViewRequest request, Set<String> allGroups) throws IOException - Parameters:
root-request-allGroups-- Throws:
IOException
-
getPathForAi
Builds 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
-
getArtifacts
protected IteratorSearchResponse getArtifacts(TreeNode root, TreeViewRequest request) throws IOException - Throws:
IOException
-
getHintedArtifacts
protected IteratorSearchResponse getHintedArtifacts(TreeNode root, TreeViewRequest request) throws IOException - Throws:
IOException
-
getArtifactsByG
protected IteratorSearchResponse getArtifactsByG(String g, TreeViewRequest request) throws IOException - Throws:
IOException
-
getArtifactsByGA
protected IteratorSearchResponse getArtifactsByGA(String g, String a, TreeViewRequest request) throws IOException - Throws:
IOException
-
getArtifactsByGAV
protected IteratorSearchResponse getArtifactsByGAV(String g, String a, String v, TreeViewRequest request) throws IOException - Throws:
IOException
-
getArtifactsByGAVField
protected IteratorSearchResponse getArtifactsByGAVField(String g, String a, String v, TreeViewRequest request) throws IOException - Throws:
IOException
-