NOT_AVAILABLE, NOT_PRESENT, PRESENT, SEARCH_ALL, SEARCH_ARCHETYPE, SEARCH_ARTIFACT, SEARCH_GROUP, SEARCH_JARS, SEARCH_JAVADOCS, SEARCH_PACKAGING, SEARCH_PARENTS, SEARCH_PLUGIN, SEARCH_SHA1, SEARCH_SOURCES, SEARCH_TESTS| Constructor and Description |
|---|
FilteredIndex(org.eclipse.core.resources.IProject project,
IIndex index) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<IndexedArtifact> |
filter(Collection<IndexedArtifact> indexedArtifacts) |
protected IndexedArtifact |
filter(IndexedArtifact original) |
Collection<IndexedArtifact> |
find(Collection<SearchExpression> groupId,
Collection<SearchExpression> artifactId,
Collection<SearchExpression> version,
Collection<SearchExpression> packaging)
Performs a search for artifacts with given parameters.
|
Collection<IndexedArtifact> |
find(SearchExpression groupId,
SearchExpression artifactId,
SearchExpression version,
SearchExpression packaging)
Performs a search for artifacts with given parameters.
|
IndexedArtifactFile |
getIndexedArtifactFile(ArtifactKey artifact) |
IndexedArtifactFile |
identify(File file) |
Map<String,IndexedArtifact> |
search(SearchExpression expression,
String searchType)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
Map<String,IndexedArtifact> |
search(SearchExpression expression,
String searchType,
int classifier)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
public FilteredIndex(org.eclipse.core.resources.IProject project,
IIndex index)
public IndexedArtifactFile getIndexedArtifactFile(ArtifactKey artifact) throws org.eclipse.core.runtime.CoreException
getIndexedArtifactFile in interface IIndexorg.eclipse.core.runtime.CoreExceptionpublic IndexedArtifactFile identify(File file) throws org.eclipse.core.runtime.CoreException
public Collection<IndexedArtifact> find(SearchExpression groupId, SearchExpression artifactId, SearchExpression version, SearchExpression packaging) throws org.eclipse.core.runtime.CoreException
IIndexpublic Collection<IndexedArtifact> find(Collection<SearchExpression> groupId, Collection<SearchExpression> artifactId, Collection<SearchExpression> version, Collection<SearchExpression> packaging) throws org.eclipse.core.runtime.CoreException
IIndexIIndex.find(SearchExpression, SearchExpression, SearchExpression, SearchExpression), but here you are able
to pass in multiple values for all searches. All elements of collections will form an "OR" of one query.public Map<String,IndexedArtifact> search(SearchExpression expression, String searchType) throws org.eclipse.core.runtime.CoreException
IIndexpublic Map<String,IndexedArtifact> search(SearchExpression expression, String searchType, int classifier) throws org.eclipse.core.runtime.CoreException
IIndexprotected Collection<IndexedArtifact> filter(Collection<IndexedArtifact> indexedArtifacts)
protected IndexedArtifact filter(IndexedArtifact original)
Copyright © 2005–2021 Eclipse Foundation. All rights reserved.