public class ImmutableInMemoryMetadataRepository
extends java.lang.Object
implements org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
Modifier and Type | Field and Description |
---|---|
private QueryableCollection |
units |
Constructor and Description |
---|
ImmutableInMemoryMetadataRepository(java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units) |
Modifier and Type | Method and Description |
---|---|
void |
addInstallableUnits(java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits) |
void |
addReferences(java.util.Collection<? extends org.eclipse.equinox.p2.repository.IRepositoryReference> references) |
void |
compress(org.eclipse.equinox.p2.core.IPool<org.eclipse.equinox.p2.metadata.IInstallableUnit> iuPool) |
org.eclipse.core.runtime.IStatus |
executeBatch(org.eclipse.equinox.p2.repository.IRunnableWithProgress runnable,
org.eclipse.core.runtime.IProgressMonitor monitor) |
<T> T |
getAdapter(java.lang.Class<T> adapter) |
java.lang.String |
getDescription() |
java.net.URI |
getLocation() |
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.lang.String |
getProperty(java.lang.String key) |
java.lang.String |
getProvider() |
org.eclipse.equinox.p2.core.IProvisioningAgent |
getProvisioningAgent() |
java.util.Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> |
getReferences() |
java.lang.String |
getType() |
java.lang.String |
getVersion() |
boolean |
isModifiable() |
org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
query(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
removeAll() |
boolean |
removeInstallableUnits(java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits) |
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value) |
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value,
org.eclipse.core.runtime.IProgressMonitor monitor) |
private final QueryableCollection units
public ImmutableInMemoryMetadataRepository(java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)
public org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IInstallableUnit> query(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query, org.eclipse.core.runtime.IProgressMonitor monitor)
query
in interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public org.eclipse.core.runtime.IStatus executeBatch(org.eclipse.equinox.p2.repository.IRunnableWithProgress runnable, org.eclipse.core.runtime.IProgressMonitor monitor)
executeBatch
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public java.net.URI getLocation()
getLocation
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.lang.String getType()
getType
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.lang.String getVersion()
getVersion
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.lang.String getName()
getName
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.lang.String getDescription()
getDescription
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.lang.String getProvider()
getProvider
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.util.Map<java.lang.String,java.lang.String> getProperties()
getProperties
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.lang.String getProperty(java.lang.String key)
getProperty
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public org.eclipse.equinox.p2.core.IProvisioningAgent getProvisioningAgent()
getProvisioningAgent
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public <T> T getAdapter(java.lang.Class<T> adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public java.util.Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()
getReferences
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public boolean isModifiable()
isModifiable
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.lang.String setProperty(java.lang.String key, java.lang.String value)
setProperty
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public java.lang.String setProperty(java.lang.String key, java.lang.String value, org.eclipse.core.runtime.IProgressMonitor monitor)
setProperty
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
public void addInstallableUnits(java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits)
addInstallableUnits
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public void addReferences(java.util.Collection<? extends org.eclipse.equinox.p2.repository.IRepositoryReference> references)
addReferences
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public boolean removeInstallableUnits(java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits)
removeInstallableUnits
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public void removeAll()
removeAll
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public void compress(org.eclipse.equinox.p2.core.IPool<org.eclipse.equinox.p2.metadata.IInstallableUnit> iuPool)
compress
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository