org.eclipse.modisco.jee.actions
Class DeploymentDescriptorDiscoverer

java.lang.Object
  extended by org.eclipse.modisco.jee.actions.DeploymentDescriptorDiscoverer
All Implemented Interfaces:
Discoverer
Direct Known Subclasses:
EjbJarDiscoverer, WebXmlDiscoverer

Deprecated. replaced by AbstractDeploymentDescriptorDiscoverer

@Deprecated
public abstract class DeploymentDescriptorDiscoverer
extends java.lang.Object
implements Discoverer

A default implementation for discovering JEE configuration file


Field Summary
static DiscoveryParameter PARAMETER_SERIALIZE_XMI
          Deprecated. A parameter key for indicating to serialize as an xmi file the obtained model.
static DiscoveryParameter PARAMETER_SILENT_MODE
          Deprecated. A parameter key for indicating to work without user interaction.
static DiscoveryParameter PARAMETER_TARGET_RESOURCE
          Deprecated. A parameter key for indicating an output target Resource instance.
 
Constructor Summary
DeploymentDescriptorDiscoverer()
          Deprecated.  
 
Method Summary
 Resource discoverElement(java.lang.Object source, URI target)
          Deprecated. Discovers a generic Config model and open MoDisco editor or default editor.
static java.lang.String getDescXmlVersion(Plugin plugin, java.lang.Object source, java.lang.String rootName, java.lang.String dtdUrl)
          Deprecated. Determine which version of DTD/XSD is used in the .xml file
static java.lang.String getDoctypeVersion(Plugin plugin, java.lang.Object source, java.lang.String rootName, java.lang.String baseUrl)
          Deprecated. Look for a DOCTYPE declaration, then a dtd one.
 Resource getResourceResult()
          Deprecated.  
static void saveResource(IProgressMonitor monitor, URI sourceURI, Resource resource)
          Deprecated. Save the Model on the disk
 void setResourceResult(Resource resourceResult)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.modisco.infra.discoverymanager.Discoverer
getDiscovererParameters, isApplicableTo
 

Field Detail

PARAMETER_SILENT_MODE

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


PARAMETER_SERIALIZE_XMI

public static final DiscoveryParameter PARAMETER_SERIALIZE_XMI
Deprecated. 
A parameter key for indicating to serialize as an xmi file the obtained model.


PARAMETER_TARGET_RESOURCE

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

Constructor Detail

DeploymentDescriptorDiscoverer

public DeploymentDescriptorDiscoverer()
Deprecated. 
Method Detail

getResourceResult

public Resource getResourceResult()
Deprecated. 

setResourceResult

public void setResourceResult(Resource resourceResult)
Deprecated. 

discoverElement

public Resource discoverElement(java.lang.Object source,
                                URI target)
Deprecated. 
Discovers a generic Config model and open MoDisco editor or default editor. This discoverer does not create additional physical artefact.

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

saveResource

public static void saveResource(IProgressMonitor monitor,
                                URI sourceURI,
                                Resource resource)
                         throws java.io.IOException
Deprecated. 
Save the Model on the disk

Parameters:
monitor -
sourceURI -
resource -
Throws:
java.io.IOException

getDescXmlVersion

public static java.lang.String getDescXmlVersion(Plugin plugin,
                                                 java.lang.Object source,
                                                 java.lang.String rootName,
                                                 java.lang.String dtdUrl)
Deprecated. 
Determine which version of DTD/XSD is used in the .xml file

Parameters:
source -
Returns:
the version of the .xml file

getDoctypeVersion

public static java.lang.String getDoctypeVersion(Plugin plugin,
                                                 java.lang.Object source,
                                                 java.lang.String rootName,
                                                 java.lang.String baseUrl)
Deprecated. 
Look for a DOCTYPE declaration, then a dtd one. Assume that the right DTD is declared right after the DOCTYPE

Parameters:
file -
Returns:
the version of the hibernate-configuration.xml file