|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IServiceProvider
An IServiceProvider represents an instance of an IServiceProviderDescriptor, and there can be many instances for each IServiceProviderDescriptor. IServiceProvider contains attributes and other information for a particular service provider. EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the RDT team.
IService| Method Summary | |
|---|---|
IServiceProviderWorkingCopy |
copy()
|
boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
Returns the boolean value of the given key. |
java.lang.String |
getConfigurationString()
Deprecated. |
IServiceProviderDescriptor |
getDescriptor()
Get the descriptor for this service provider |
int |
getInt(java.lang.String key,
int defaultValue)
Returns the int value of the given key. |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns an unmodifiable view of the properties that apply to this service provider. |
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Returns the string value of the given key. |
boolean |
isConfigured()
Test if this service provider has been configured. |
java.util.Set<java.lang.String> |
keySet()
Deprecated. use getProperties().keySet() instead. |
void |
putBoolean(java.lang.String key,
boolean value)
Sets the value of the given key to the given boolean |
void |
putInt(java.lang.String key,
int value)
Sets the value of the given key to the given int |
void |
putString(java.lang.String key,
java.lang.String value)
Sets the value of the given key to the given string |
void |
setDescriptor(IServiceProviderDescriptor descriptor)
Set the descriptor for this provider. |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Add the properties in the supplied map to the properties of the service provider. |
| Methods inherited from interface org.eclipse.ptp.services.core.IServiceProviderDescriptor |
|---|
getId, getName, getPriority, getServiceId |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Method Detail |
|---|
IServiceProviderWorkingCopy copy()
boolean getBoolean(java.lang.String key,
boolean defaultValue)
key - the keydefaultValue - The value to return if key not stored
java.lang.String getConfigurationString()
IServiceProviderDescriptor getDescriptor()
int getInt(java.lang.String key,
int defaultValue)
key - the keydefaultValue - The value to return if key not stored
java.util.Map<java.lang.String,java.lang.String> getProperties()
java.lang.String getString(java.lang.String key,
java.lang.String defaultValue)
key - the keydefaultValue - The value to return if key not stored
boolean isConfigured()
java.util.Set<java.lang.String> keySet()
getProperties().keySet() instead.
void putBoolean(java.lang.String key,
boolean value)
key - the keyvalue - the value
void putInt(java.lang.String key,
int value)
key - the keyvalue - the value
void putString(java.lang.String key,
java.lang.String value)
key - the keyvalue - the valuevoid setDescriptor(IServiceProviderDescriptor descriptor)
descriptor - descriptor to setvoid setProperties(java.util.Map<java.lang.String,java.lang.String> map)
map - map containing the properties to be added.
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||