|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPlatformObject
org.eclipse.ptp.services.core.ServiceProvider
public abstract class ServiceProvider
An abstract base class for service provider implementations. 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.
| Field Summary | |
|---|---|
protected ServiceModelManager |
fManager
|
| Constructor Summary | |
|---|---|
ServiceProvider()
|
|
| Method Summary | |
|---|---|
IServiceProviderWorkingCopy |
copy()
|
boolean |
equals(Object obj)
|
boolean |
getBoolean(String key,
boolean defaultValue)
Returns the boolean value of the given key. |
String |
getConfigurationString()
Returns provider specific information for the current configuration. |
IServiceProviderDescriptor |
getDescriptor()
Get the descriptor for this service provider |
String |
getId()
Get the ID of this service provider, or null if this is a null provider. |
int |
getInt(String key,
int defaultValue)
Returns the int value of the given key. |
String |
getName()
Get the name of this service provider, or null if this is a null provider. |
Integer |
getPriority()
Get the priority for the the provider. |
Map<String,String> |
getProperties()
Returns an unmodifiable view of the properties that apply to this service provider. |
String |
getServiceId()
Get the service this service provider is for. |
String |
getString(String key,
String defaultValue)
Returns the string value of the given key. |
int |
hashCode()
|
protected void |
internalSetProperties(Map<String,String> properties)
|
Set<String> |
keySet()
Returns a set of all the property keys that apply to this service provider. |
void |
putBoolean(String key,
boolean value)
Sets the value of the given key to the given boolean |
void |
putInt(String key,
int value)
Sets the value of the given key to the given int |
void |
putString(String key,
String value)
Sets the value of the given key to the given string |
void |
restoreState(IMemento memento)
Restores the state of this provider from the given IMemento. |
void |
saveState(IMemento memento)
Saves the state of this provider in the given IMemento. |
void |
setDescriptor(IServiceProviderDescriptor descriptor)
Set the descriptor for this provider. |
void |
setProperties(Map<String,String> properties)
Add the properties in the supplied map to the properties of the service provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ptp.services.core.IServiceProvider |
|---|
isConfigured |
| Field Detail |
|---|
protected ServiceModelManager fManager
| Constructor Detail |
|---|
public ServiceProvider()
| Method Detail |
|---|
public IServiceProviderWorkingCopy copy()
copy in interface IServiceProviderpublic boolean equals(Object obj)
public boolean getBoolean(String key,
boolean defaultValue)
IServiceProvider
getBoolean in interface IServiceProviderkey - the keydefaultValue - The value to return if key not stored
public String getConfigurationString()
IServiceProvider
getConfigurationString in interface IServiceProviderpublic IServiceProviderDescriptor getDescriptor()
IServiceProvider
getDescriptor in interface IServiceProviderpublic String getId()
IServiceProviderDescriptor
getId in interface IServiceProviderDescriptor
public int getInt(String key,
int defaultValue)
IServiceProvider
getInt in interface IServiceProviderkey - the keydefaultValue - The value to return if key not stored
public String getName()
IServiceProviderDescriptor
getName in interface IServiceProviderDescriptorpublic Integer getPriority()
IServiceProviderDescriptor
getPriority in interface IServiceProviderDescriptorpublic Map<String,String> getProperties()
IServiceProvider
getProperties in interface IServiceProviderpublic String getServiceId()
IServiceProviderDescriptor
getServiceId in interface IServiceProviderDescriptor
public String getString(String key,
String defaultValue)
IServiceProvider
getString in interface IServiceProviderkey - the keydefaultValue - The value to return if key not stored
public int hashCode()
public Set<String> keySet()
IServiceProvider
keySet in interface IServiceProvider
public void putBoolean(String key,
boolean value)
IServiceProvider
putBoolean in interface IServiceProviderkey - the keyvalue - the value
public void putInt(String key,
int value)
IServiceProvider
putInt in interface IServiceProviderkey - the keyvalue - the value
public void putString(String key,
String value)
IServiceProvider
putString in interface IServiceProviderkey - the keyvalue - the valuepublic void restoreState(IMemento memento)
IMemento.
NOTE: This should only be implemented if a provider wishes to override
the default behavior.
memento - for restoring the provider's state.public void saveState(IMemento memento)
IMemento.
NOTE: This should only be implemented if a provider wishes to override
the default behavior.
memento - for saving the provider's state.public void setDescriptor(IServiceProviderDescriptor descriptor)
IServiceProvider
setDescriptor in interface IServiceProviderdescriptor - descriptor to setpublic void setProperties(Map<String,String> properties)
IServiceProvider
setProperties in interface IServiceProviderproperties - map containing the properties to be added.protected void internalSetProperties(Map<String,String> properties)
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||