public class XMLModelDiscoverer extends AbstractModelDiscoverer<IFile>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID |
| Constructor and Description |
|---|
XMLModelDiscoverer() |
| 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 file)
To determine if the source object can be handled by the discoverer.
|
void |
setIgnoreWhitespace(boolean ignoreWhitespace) |
void |
setLightweightModel(boolean lightweightModel) |
getDefaultTargetURI, getTargetModel, getTargetURI, setSerializeTarget, setTargetModel, setTargetURIisAFolder, isAJavaProject, isAnIFileWithExtension, isAProject, setRefreshSourceBeforeDiscoverypublic static final java.lang.String ID
@Parameter(name="IGNORE_WHITESPACE", description="Whether to ignore whitespace in text portions.") public void setIgnoreWhitespace(boolean ignoreWhitespace)
@Parameter(name="LIGHTWEIGHT", description="Minimize the memory use of the obtained model by ignoring comments and text portions consisting only of indentation or line delimiters.") public void setLightweightModel(boolean lightweightModel)
public boolean isApplicableTo(IFile file)
IDiscoverer
Some usual implementations are proposed on AbstractDiscoverer.
file - 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