IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.common.core.service
Interface IProvider

All Known Subinterfaces:
IDecoratorProvider, ILayoutNodesProvider, IPropertiesProvider
All Known Implementing Classes:
AbstractPatternLibrary, AbstractProvider

public interface IProvider

The interface for all service providers. Specifies a part of the contract between a service and its providers:

Service implementers are expected to expose service specific classes implementing this interface.

Service provider implementers never need to implement this interface directly, they instead derive their provider implementation from the service specific implementation of this interface.


Method Summary
 void addProviderChangeListener(IProviderChangeListener listener)
          Adds the specified listener to the list of provider change listeners for this provider.
 boolean provides(IOperation operation)
          Indicates whether this provider provides the specified operation.
 void removeProviderChangeListener(IProviderChangeListener listener)
          Removes the specified listener from the list of provider change listeners for this provider.
 

Method Detail

addProviderChangeListener

public void addProviderChangeListener(IProviderChangeListener listener)
Adds the specified listener to the list of provider change listeners for this provider.

Parameters:
listener - The listener to be added.

provides

public boolean provides(IOperation operation)
Indicates whether this provider provides the specified operation.

Providers generally cast the operation to a service specific IOperation-derived class in order to determine whether they support the request.

Parameters:
operation - The operation in question.
Returns:
true if this provider provides the operation; false otherwise.

removeProviderChangeListener

public void removeProviderChangeListener(IProviderChangeListener listener)
Removes the specified listener from the list of provider change listeners for this provider.

Parameters:
listener - The listener to be removed.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.