public abstract class ServiceProvider extends org.eclipse.core.runtime.PlatformObject implements IServiceProvider, IServiceProviderDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected ServiceModelManager |
fManager |
| Constructor and Description |
|---|
ServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
IServiceProviderWorkingCopy |
copy() |
boolean |
equals(java.lang.Object obj) |
boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
Returns the boolean value of the given key.
|
java.lang.String |
getConfigurationString()
Returns provider specific information for the current configuration.
|
IServiceProviderDescriptor |
getDescriptor()
Get the descriptor for this service provider
|
java.lang.String |
getId()
Get the ID of this service provider, or null if this is a null provider.
|
int |
getInt(java.lang.String key,
int defaultValue)
Returns the int value of the given key.
|
java.lang.String |
getName()
Get the name of this service provider, or null if this is a null provider.
|
java.lang.Integer |
getPriority()
Get the priority for the the provider.
|
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 |
getServiceId()
Get the service this service provider is for.
|
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Returns the string value of the given key.
|
int |
hashCode() |
protected void |
internalSetProperties(java.util.Map<java.lang.String,java.lang.String> properties) |
java.util.Set<java.lang.String> |
keySet()
Returns a set of all the property keys that apply to this
service provider.
|
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 |
restoreState(org.eclipse.ui.IMemento memento)
Restores the state of this provider from the given
IMemento. |
void |
saveState(org.eclipse.ui.IMemento memento)
Saves the state of this provider in the given
IMemento. |
void |
setDescriptor(IServiceProviderDescriptor descriptor)
Set the descriptor for this provider.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Add the properties in the supplied map to the properties
of the service provider.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisConfiguredprotected ServiceModelManager fManager
public IServiceProviderWorkingCopy copy()
copy in interface IServiceProviderpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean getBoolean(java.lang.String key,
boolean defaultValue)
IServiceProvidergetBoolean in interface IServiceProviderkey - the keydefaultValue - The value to return if key not storedpublic java.lang.String getConfigurationString()
IServiceProvidergetConfigurationString in interface IServiceProviderpublic IServiceProviderDescriptor getDescriptor()
IServiceProvidergetDescriptor in interface IServiceProviderpublic java.lang.String getId()
IServiceProviderDescriptorgetId in interface IServiceProviderDescriptorpublic int getInt(java.lang.String key,
int defaultValue)
IServiceProvidergetInt in interface IServiceProviderkey - the keydefaultValue - The value to return if key not storedpublic java.lang.String getName()
IServiceProviderDescriptorgetName in interface IServiceProviderDescriptorpublic java.lang.Integer getPriority()
IServiceProviderDescriptorgetPriority in interface IServiceProviderDescriptorpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
IServiceProvidergetProperties in interface IServiceProviderpublic java.lang.String getServiceId()
IServiceProviderDescriptorgetServiceId in interface IServiceProviderDescriptorpublic java.lang.String getString(java.lang.String key,
java.lang.String defaultValue)
IServiceProvidergetString in interface IServiceProviderkey - the keydefaultValue - The value to return if key not storedpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.Set<java.lang.String> keySet()
IServiceProviderkeySet in interface IServiceProviderpublic void putBoolean(java.lang.String key,
boolean value)
IServiceProviderputBoolean in interface IServiceProviderkey - the keyvalue - the valuepublic void putInt(java.lang.String key,
int value)
IServiceProviderputInt in interface IServiceProviderkey - the keyvalue - the valuepublic void putString(java.lang.String key,
java.lang.String value)
IServiceProviderputString in interface IServiceProviderkey - the keyvalue - the valuepublic void restoreState(org.eclipse.ui.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(org.eclipse.ui.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)
IServiceProvidersetDescriptor in interface IServiceProviderdescriptor - descriptor to setpublic void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
IServiceProvidersetProperties in interface IServiceProviderproperties - map containing the properties to be added.protected void internalSetProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.