org.eclipse.gmt.modisco.xml.discoverer.actions
Class XMLModelDiscoverer

java.lang.Object
  extended by org.eclipse.gmt.modisco.xml.discoverer.actions.XMLModelDiscoverer
All Implemented Interfaces:
Discoverer

Deprecated. use XMLModelDiscoverer2 instead

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

Discover generic XML model action.


Field Summary
static DiscoveryParameter PARAMETER_IGNORE_WHITESPACES
          Deprecated. A parameter key for ignoring whitespace in text portions.
static DiscoveryParameter PARAMETER_LIGHTWEIGHT_MODEL
          Deprecated. A parameter key for minimizing the memory use of the obtained model.
static DiscoveryParameter PARAMETER_SERIALIZE_XMI
          Deprecated. A parameter key for serializing the obtained model as an XMI file
static DiscoveryParameter PARAMETER_SILENT_MODE
          Deprecated. not used with the new framework
static DiscoveryParameter PARAMETER_TARGET_RESOURCE
          Deprecated. A parameter key for indicating a target Resource instance as output.
 
Constructor Summary
XMLModelDiscoverer()
          Deprecated.  
 
Method Summary
 Resource discoverElement(java.lang.Object source, URI target)
          Deprecated. Discovers a generic XML model and opens the MoDisco editor or default editor.
 java.util.List<DiscoveryParameter> getDiscovererParameters()
          Deprecated. Get a complete list of all parameters available in this discoverer.
 Resource getResourceResult()
          Deprecated.  
 boolean isApplicableTo(java.lang.Object source)
          Deprecated. To determine if the source object can be handled by the discoverer.
 void setResourceResult(Resource aResourceResult)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_SILENT_MODE

@Deprecated
public static final DiscoveryParameter PARAMETER_SILENT_MODE
Deprecated. not used with the new framework
A parameter key for working without user interaction.


PARAMETER_IGNORE_WHITESPACES

public static final DiscoveryParameter PARAMETER_IGNORE_WHITESPACES
Deprecated. 
A parameter key for ignoring whitespace in text portions.


PARAMETER_LIGHTWEIGHT_MODEL

public static final DiscoveryParameter PARAMETER_LIGHTWEIGHT_MODEL
Deprecated. 
A parameter key for minimizing the memory use of the obtained model. If true : comments are ignored, text portions with only indentation and line delimiters are ignored.


PARAMETER_SERIALIZE_XMI

public static final DiscoveryParameter PARAMETER_SERIALIZE_XMI
Deprecated. 
A parameter key for serializing the obtained model as an XMI file


PARAMETER_TARGET_RESOURCE

public static final DiscoveryParameter PARAMETER_TARGET_RESOURCE
Deprecated. 
A parameter key for indicating a target Resource instance as output.

Constructor Detail

XMLModelDiscoverer

public XMLModelDiscoverer()
Deprecated. 
Method Detail

isApplicableTo

public final 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

public final Resource discoverElement(java.lang.Object source,
                                      URI target)
Deprecated. 
Discovers a generic XML model and opens the MoDisco editor or default editor. This discoverer does not create additional physical artifacts.

Specified by:
discoverElement in interface Discoverer
Parameters:
source - an IFile instance pointing to XML contents
target - should be null here.
Returns:
the EMF resource of the target model discovered from source.

getDiscovererParameters

public final 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.

setResourceResult

public void setResourceResult(Resource aResourceResult)
Deprecated. 

getResourceResult

public Resource getResourceResult()
Deprecated.