|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of contents contained in this repositorypublic interface IRepository<T>
A p2 repository contains either metadata or artifacts related to software provisioning. This base interface defines properties common to all types of repositories.
Field Summary | |
---|---|
static int |
ENABLED
An option flag constant (value 1) indicating an enabled repository. |
static int |
NONE
General purpose zero-valued bit mask constant. |
static String |
PREFERENCE_NODE
The node identifier for repository secure preference store. |
static String |
PROP_COMPRESSED
The key for a boolean property indicating that repository metadata is stored in compressed form. |
static String |
PROP_DESCRIPTION
The key for a string property providing a human-readable description for the repository. |
static String |
PROP_MIRRORS_BASE_URL
The key for a string property providing the common base URL that should be replaced with the mirror URL. |
static String |
PROP_MIRRORS_URL
The key for a string property providing a URL that can return mirrors of this repository. |
static String |
PROP_NAME
The key for a string property providing a human-readable name for the repository. |
static String |
PROP_NICKNAME
The key for a string property providing a user-defined name for the repository. |
static String |
PROP_PASSWORD
The key for a string property providing the password to an authenticated URL. |
static String |
PROP_SYSTEM
The key for a boolean property indicating that the repository is a system repository. |
static String |
PROP_TIMESTAMP
The key for a string property containing the time when the repository was last modified. |
static String |
PROP_USERNAME
The key for a string property providing the user name to an authenticated URL. |
static int |
TYPE_ARTIFACT
A repository type constant (value 1) representing an artifact repository. |
static int |
TYPE_METADATA
A repository type constant (value 0) representing a metadata repository. |
Method Summary | |
---|---|
String |
getDescription()
Returns a brief description of the repository. |
URI |
getLocation()
Returns the location of this repository. |
String |
getName()
Returns the name of the repository. |
Map<String,String> |
getProperties()
Returns a read-only collection of the properties of the repository. |
String |
getProperty(String key)
Returns the repository property with the given key, or null
if no such property is defined |
String |
getProvider()
Returns the name of the provider of the repository. |
IProvisioningAgent |
getProvisioningAgent()
Returns the provisioning agent that manages this repository |
String |
getType()
Returns a string representing the type of the repository. |
String |
getVersion()
Returns a string representing the version for the repository type. |
boolean |
isModifiable()
Returns true if this repository can be modified, and
false otherwise. |
String |
setProperty(String key,
String value)
Sets the value of the property with the given key. |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Methods inherited from interface org.eclipse.equinox.p2.query.IQueryable |
---|
query |
Field Detail |
---|
static final String PROP_SYSTEM
IRepositoryManager
.
IRepositoryManager.getRepositoryProperty(URI, String)
,
Constant Field Valuesstatic final String PROP_COMPRESSED
getProperties()
,
Constant Field Valuesstatic final String PROP_NAME
IRepositoryManager.getRepositoryProperty(URI, String)
,
getProperties()
,
Constant Field Valuesstatic final String PROP_NICKNAME
IRepositoryManager
.
IRepositoryManager.getRepositoryProperty(URI, String)
,
Constant Field Valuesstatic final String PROP_DESCRIPTION
IRepositoryManager.getRepositoryProperty(URI, String)
,
getProperties()
,
Constant Field Valuesstatic final String PROP_MIRRORS_BASE_URL
getProperties()
,
Constant Field Valuesstatic final String PROP_MIRRORS_URL
getProperties()
,
Constant Field Valuesstatic final String PROP_TIMESTAMP
getProperties()
,
Constant Field Valuesstatic final String PROP_USERNAME
PREFERENCE_NODE
,
Constant Field Valuesstatic final String PROP_PASSWORD
PREFERENCE_NODE
,
Constant Field Valuesstatic final String PREFERENCE_NODE
static final int TYPE_METADATA
static final int TYPE_ARTIFACT
static final int NONE
static final int ENABLED
Method Detail |
---|
URI getLocation()
String getName()
String getType()
String getVersion()
String getDescription()
String getProvider()
Map<String,String> getProperties()
String getProperty(String key)
null
if no such property is defined
key
- the property key
null
IProvisioningAgent getProvisioningAgent()
boolean isModifiable()
true
if this repository can be modified, and
false
otherwise. Attempts to change the contents of
an unmodifiable repository will fail.
String setProperty(String key, String value)
null
will
remove the corresponding key from the properties of this repository.
key
- The property keyvalue
- The new property value, or null
to remove the key
null
if there was no old value
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.