The org.emftools.emf2gv.processor.core.StandaloneProcessor
offers a static method named process
accepting the following parameters :
Parameter | Type | Required | Default value (if omitted) | Description |
---|---|---|---|---|
modelRoots | List<EObject> | Y | - | The roots of the model(s) to represent. |
gvFigureDescription | GVFigureDescription | N | Generated | The graphical description containing the directive to apply to build the diagram. |
workDir | File | Y | - | The working directory (in which is generated the graphviz source file) |
targetImagePath | String | Y | - | The target diagram file path |
processorCallback | IProcessorCallback | N | - | A callback allowing to stop the generation if the nodes count is too important |
eObjectIconProvider | IEObjectIconProvider | N | ClasspathEObjectIconProvider | The component that konws which icons must be drawn for the given EObject |
dotCommand | String | N | dot | The dot command |
addValidationDecorators | boolean | Y | - | A boolean indicating if validation decorators must be added |
keepGeneratedGvFile | boolean | Y | - | A boolean indicating if the generated Graphviz source file has to be kept |
gvSourceEnconding | String | N | UTF-8 | The encoding to use for the generated graphviz source file |
additionalFilters | List<OCLFilterExpression> | N | Empty list | additional filters (boolean OCL expressions allowing to filter the EObjects) |
logger | ILogger | N | Standard output logger | The logger |
monitor | IProgressMonitor | N | NullProgressMonitor | A progress monitor |
All the optional parameters can be omitted.