|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.export.ExportUtil
public final class ExportUtil
A utility class for graph export.
Method Summary | |
---|---|
static OutputStream |
createOutputStream(String path,
boolean isWorkspacePath)
Creates an output stream to a file that is located in the workspace or in the file system. |
static void |
transformKGraph2Model(String xtendFile,
String extension,
List<Object> parameters,
KNode node,
OutputStream outputStream,
Resource.Factory resourceFactory,
IKielerProgressMonitor monitor,
String... involvedMetamodels)
Transforms a kgraph into another model using a given Xtend transformation file, and writes the model to the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OutputStream createOutputStream(String path, boolean isWorkspacePath) throws IOException
path
- the file pathisWorkspacePath
- true if the file path is relative to the workspace
IOException
- thrown when the stream could not be openedpublic static void transformKGraph2Model(String xtendFile, String extension, List<Object> parameters, KNode node, OutputStream outputStream, Resource.Factory resourceFactory, IKielerProgressMonitor monitor, String... involvedMetamodels) throws IOException, TransformException
xtendFile
- the xtend file containing the transformationextension
- the name of the extension that starts the transformation
inside the xtend fileparameters
- a list of additional parameters for the transformation or null
if no additional parameters are requirednode
- the kgraph parent nodeoutputStream
- the output stream the target model instance will be serialized
toresourceFactory
- the resource factory used to serialize the modelmonitor
- the progress monitorinvolvedMetamodels
- the metamodels involved in the transformation
IOException
- thrown when the the xtend file could not be found or opened
TransformException
- thrown when the execution of the xtend transformation failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |