public class EjbJarDiscoverer2 extends AbstractDeploymentDescriptorDiscoverer<IFile>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DTD_URL |
static java.lang.String |
ID |
static java.lang.String |
ROOT_NAME |
| Constructor and Description |
|---|
EjbJarDiscoverer2() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDescXmlVersion, getDoctypeVersiongetDefaultTargetURI, getTargetModel, getTargetURI, setSerializeTarget, setTargetModel, setTargetURIisAFolder, isAJavaProject, isAnIFileWithExtension, isAProject, setRefreshSourceBeforeDiscoverypublic static final java.lang.String ROOT_NAME
public static final java.lang.String DTD_URL
public static final java.lang.String ID
public boolean isApplicableTo(IFile source)
IDiscoverer
Some usual implementations are proposed on AbstractDiscoverer.
source - the selected object.true if the selected object is managed by this
discoverer, false otherwise.public void discoverElement(java.io.File file,
IProgressMonitor monitor)
throws DiscoveryException
IFile, use
IDiscoverer.discoverElement(Object, IProgressMonitor) insteaddiscoverElement in interface IDiscoverer<IFile>discoverElement in class AbstractModelDiscoverer<IFile>file - the file to discovermonitor - a progress monitor (may be a
NullProgressMonitor if progress monitoring is not
desired)DiscoveryException