|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.core.emf.EMFExtractor
public class EMFExtractor
The EMF implementation of the IExtractor
interface.
Constructor Summary | |
---|---|
EMFExtractor()
|
Method Summary | |
---|---|
void |
extract(EMFModel sourceModel,
java.io.OutputStream target,
java.lang.String fileExtension,
java.util.Map<java.lang.String,java.lang.Object> options)
Extracts an EMFModel to an OutputStream . |
void |
extract(IModel sourceModel,
java.io.OutputStream target,
java.util.Map<java.lang.String,java.lang.Object> options)
Extracts an IModel using the given options. |
void |
extract(IModel sourceModel,
java.lang.String target)
Extracts an IModel using default options. |
void |
extract(IModel sourceModel,
java.lang.String target,
java.util.Map<java.lang.String,java.lang.Object> options)
Extracts an IModel using the given options. Below the target parameter semantic. |
protected static void |
recreateResourceIfNeeded(EMFModel model,
org.eclipse.emf.common.util.URI uri,
java.lang.String contentType,
boolean contentTypeLookup)
Recreates the resource in order to save in the correct format matching the file extension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EMFExtractor()
Method Detail |
---|
public void extract(IModel sourceModel, java.lang.String target, java.util.Map<java.lang.String,java.lang.Object> options) throws ATLCoreException
file:/path
platform:/resource/path
extract
in interface IExtractor
sourceModel
- the IModel to extracttarget
- the target indication to extract the targetModeloptions
- the extraction parameters
ATLCoreException
IExtractor.extract(org.eclipse.m2m.atl.core.IModel, java.lang.String,
java.util.Map)
public void extract(IModel sourceModel, java.lang.String target) throws ATLCoreException
extract
in interface IExtractor
sourceModel
- the IModel to extracttarget
- the target indication to extract the targetModel
ATLCoreException
IExtractor.extract(org.eclipse.m2m.atl.core.IModel, java.lang.String)
public void extract(EMFModel sourceModel, java.io.OutputStream target, java.lang.String fileExtension, java.util.Map<java.lang.String,java.lang.Object> options) throws ATLCoreException
EMFModel
to an OutputStream
.
sourceModel
- the EMFModel
to extracttarget
- the target OutputStream
to extract the targetModelfileExtension
- the target file extension: defines the output format, default "xmi"options
- the extraction parameters
ATLCoreException
public void extract(IModel sourceModel, java.io.OutputStream target, java.util.Map<java.lang.String,java.lang.Object> options) throws ATLCoreException
extract
in interface IExtractor
sourceModel
- the IModel to extracttarget
- the OutputStream
where to extract the targetModeloptions
- the extraction parameters
ATLCoreException
IExtractor.extract(org.eclipse.m2m.atl.core.IModel, java.io.OutputStream,
java.util.Map)
protected static void recreateResourceIfNeeded(EMFModel model, org.eclipse.emf.common.util.URI uri, java.lang.String contentType, boolean contentTypeLookup) throws ATLCoreException
model
- the model to recreateuri
- the target URI
with the correct extensioncontentType
- the content type of the resource to savecontentTypeLookup
- specify whether the Extractor should automatically resolve the EPackage content type
ATLCoreException
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |