org.eclipse.modisco.jee.webapp.discoverer
Class WebXmlDiscoverer2

java.lang.Object
  extended by org.eclipse.modisco.infra.discovery.core.AbstractDiscoverer<T>
      extended by org.eclipse.modisco.infra.discovery.core.AbstractModelDiscoverer<T>
          extended by org.eclipse.modisco.jee.actions.AbstractDeploymentDescriptorDiscoverer<IFile>
              extended by org.eclipse.modisco.jee.webapp.discoverer.WebXmlDiscoverer2
All Implemented Interfaces:
IDiscoverer<IFile>

public class WebXmlDiscoverer2
extends AbstractDeploymentDescriptorDiscoverer<IFile>

Discover web.xml generic model action.


Field Summary
static java.lang.String DTD_URL
           
static java.lang.String ID
           
static java.lang.String ROOT_NAME
           
 
Constructor Summary
WebXmlDiscoverer2()
           
 
Method Summary
 void discoverElement(java.io.File file, IProgressMonitor monitor)
          Alternate discoverer service with File as input instead of IFile.
 boolean isApplicableTo(IFile source)
          To determine if the source object can be handled by the discoverer.
 
Methods inherited from class org.eclipse.modisco.jee.actions.AbstractDeploymentDescriptorDiscoverer
getDescXmlVersion, getDoctypeVersion
 
Methods inherited from class org.eclipse.modisco.infra.discovery.core.AbstractModelDiscoverer
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

ROOT_NAME

public static final java.lang.String ROOT_NAME
See Also:
Constant Field Values

DTD_URL

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

WebXmlDiscoverer2

public WebXmlDiscoverer2()
Method Detail

isApplicableTo

public boolean isApplicableTo(IFile source)
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:
source - the selected object.
Returns:
true if the selected object is managed by this discoverer, false otherwise.

discoverElement

public void discoverElement(java.io.File file,
                            IProgressMonitor monitor)
                     throws DiscoveryException
Alternate discoverer service with File as input instead of IFile. If you want to discover an IFile, use IDiscoverer.discoverElement(Object, IProgressMonitor) instead

Specified by:
discoverElement in interface IDiscoverer<IFile>
Overrides:
discoverElement in class AbstractModelDiscoverer<IFile>
Parameters:
file - the file to discover
monitor - a progress monitor (may be a NullProgressMonitor if progress monitoring is not desired)
Throws:
DiscoveryException