org.eclipse.gmt.modisco.kdm.source.discoverer.actions
Class DiscoverSourceModelFromContainer

java.lang.Object
  extended by org.eclipse.gmt.modisco.kdm.source.discoverer.actions.DiscoverSourceModelFromContainer
All Implemented Interfaces:
Discoverer

Deprecated. Use instead DiscoverSourceModelFromJavaElement or DiscoverSourceModelFromResource in plug-in org.eclipse.modisco.kdm.source.discoverer.

@Deprecated
public class DiscoverSourceModelFromContainer
extends java.lang.Object
implements Discoverer

Author:
Gabriel Barbier

Field Summary
static DiscoveryParameter PARAMETER_SILENT_MODE
          Deprecated. A parameter key for indicating to work without user interaction.
 
Constructor Summary
DiscoverSourceModelFromContainer()
          Deprecated.  
 
Method Summary
 Resource discoverElement(java.lang.Object source, URI target)
          Deprecated. 
 java.util.List<DiscoveryParameter> getDiscovererParameters()
          Deprecated. Get a complete list of all parameters available in this discoverer.
 boolean isApplicableTo(java.lang.Object source)
          Deprecated. To determine if the source object can be handled by the discoverer.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_SILENT_MODE

public static final DiscoveryParameter PARAMETER_SILENT_MODE
Deprecated. 
A parameter key for indicating to work without user interaction.

Constructor Detail

DiscoverSourceModelFromContainer

public DiscoverSourceModelFromContainer()
Deprecated. 
Method Detail

isApplicableTo

public boolean isApplicableTo(java.lang.Object source)
Deprecated. 
Description copied from interface: Discoverer
To determine if the source object can be handled by the discoverer. Each discoverer has to implement this method with its own criteria to filter the selected object. If the source object is managed by this discoverer, the discoverer menu will be available in the pop-up menu when users click with the contextual button (right-click), and in the discoverer launch configuration types.

Specified by:
isApplicableTo in interface Discoverer
Parameters:
source - the selected object.
Returns:
true if the selected object is managed by this discoverer, false otherwise.

discoverElement

@Deprecated
public Resource discoverElement(java.lang.Object source,
                                           URI target)
Deprecated. 

Description copied from interface: Discoverer
Execute the discovery task from the selected object. This is a method adapted to a common use of discoverers.

Specified by:
discoverElement in interface Discoverer
Parameters:
source - the selected object.
target - the target URI (can be null)
Returns:
the EMF resource of the target model discovered from source.

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

getDiscovererParameters

public java.util.List<DiscoveryParameter> getDiscovererParameters()
Deprecated. 
Description copied from interface: Discoverer
Get a complete list of all parameters available in this discoverer. Further information should be provided to indicate features of each parameter; for example, direction kind (in, out, in-out), whether the parameter is optional or not ...

Specified by:
getDiscovererParameters in interface Discoverer
Returns:
the set of parameter names provided by this discoverer.