org.eclipse.modisco.java.discoverer
Class DiscoverJavaModelFromClassFile

java.lang.Object
  extended by org.eclipse.modisco.infra.discovery.core.AbstractDiscoverer<T>
      extended by org.eclipse.modisco.infra.discovery.core.AbstractModelDiscoverer<IClassFile>
          extended by org.eclipse.modisco.java.discoverer.DiscoverJavaModelFromClassFile
All Implemented Interfaces:
IDiscoverer<IClassFile>

public class DiscoverJavaModelFromClassFile
extends AbstractModelDiscoverer<IClassFile>

Discover a Java model from a Java class file.


Field Summary
static java.lang.String ID
           
 
Constructor Summary
DiscoverJavaModelFromClassFile()
           
 
Method Summary
 boolean isApplicableTo(IClassFile classFile)
          To determine if the source object can be handled by the discoverer.
 
Methods inherited from class org.eclipse.modisco.infra.discovery.core.AbstractModelDiscoverer
discoverElement, getDefaultTargetURI, getTargetModel, getTargetURI, setSerializeTarget, setTargetModel, setTargetURI
 
Methods inherited from class org.eclipse.modisco.infra.discovery.core.AbstractDiscoverer
isAFolder, isAJavaProject, isAnIFileWithExtension, isAProject, setRefreshSourceBeforeDiscovery
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

DiscoverJavaModelFromClassFile

public DiscoverJavaModelFromClassFile()
Method Detail

isApplicableTo

public boolean isApplicableTo(IClassFile classFile)
Description copied from interface: IDiscoverer
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.

Some usual implementations are proposed on AbstractDiscoverer.

Parameters:
classFile - the selected object.
Returns:
true if the selected object is managed by this discoverer, false otherwise.