Package org.eclipse.tycho.p2.repository
Interface TychoRepositoryIndex
-
- All Known Implementing Classes:
FileBasedTychoRepositoryIndex
public interface TychoRepositoryIndex
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addGav(GAV gav)
Adds a GAV to the indexSet<GAV>
getProjectGAVs()
Receive the set of GAVs contained in this indexvoid
removeGav(GAV gav)
Remove a GAV from the index.void
save()
Changes performed viaaddGav(GAV)
,removeGav(GAV)
will only be reflected in the memory state of the index.
-
-
-
Method Detail
-
getProjectGAVs
Set<GAV> getProjectGAVs()
Receive the set of GAVs contained in this index- Returns:
- an unmodifiable defensive copy of the GAV set contained in this index
-
addGav
void addGav(GAV gav)
Adds a GAV to the index- Parameters:
gav
- notnull
-
removeGav
void removeGav(GAV gav)
Remove a GAV from the index.- Parameters:
gav
-
-
save
void save() throws IOException
Changes performed viaaddGav(GAV)
,removeGav(GAV)
will only be reflected in the memory state of the index. In case the index is bound some persistence location (e.g. a file seeFileBasedTychoRepositoryIndex#createArtifactsIndex(java.io.File)
) the method will store the current memory content to the persistence storage.- Throws:
IOException
-
-