public interface IDiscoverer<T>
A basic implementation is provided in AbstractDiscoverer
.
In the context of model-driven reverse-engineering, a common category of
discoverers is characterized by injecting information into a result model.
Class AbstractModelDiscoverer
provides a basic implementation for
such discoverers.
Modifier and Type | Method and Description |
---|---|
void |
discoverElement(T source,
IProgressMonitor monitor)
Generic method to launch a discovery from a source element.
|
boolean |
isApplicableTo(T source)
To determine if the source object can be handled by the discoverer.
|
boolean isApplicableTo(T source)
Some usual implementations are proposed on AbstractDiscoverer
.
source
- the selected object.true
if the selected object is managed by this
discoverer, false
otherwise.void discoverElement(T source, IProgressMonitor monitor) throws DiscoveryException
Additional discovery parameters values (input or output) should be
managed using fields and methods annotated with a Parameter
annotation. See the class AbstractDiscoverer
as an example.
source
- the selected object.monitor
- a progress monitor used to report progress and respond to
cancellation. May be a NullProgressMonitor
if no
monitor is to be used.DiscoveryException
- abnormal discovery process termination