API

The org.emftools.emf2gv.processor.core.StandaloneProcessor offers a static method named process accepting the following parameters :

ParameterTypeRequiredDefault value (if omitted)Description
modelRootsList<EObject>Y-The roots of the model(s) to represent.
gvFigureDescriptionGVFigureDescriptionNGeneratedThe graphical description containing the directive to apply to build the diagram.
workDirFileY-The working directory (in which is generated the graphviz source file)
targetImagePathStringY-The target diagram file path
processorCallbackIProcessorCallbackN-A callback allowing to stop the generation if the nodes count is too important
eObjectIconProviderIEObjectIconProviderNClasspathEObjectIconProviderThe component that konws which icons must be drawn for the given EObject
dotCommandStringNdotThe dot command
addValidationDecoratorsbooleanY-A boolean indicating if validation decorators must be added
keepGeneratedGvFilebooleanY-A boolean indicating if the generated Graphviz source file has to be kept
gvSourceEncondingStringNUTF-8The encoding to use for the generated graphviz source file
additionalFiltersList<OCLFilterExpression>NEmpty listadditional filters (boolean OCL expressions allowing to filter the EObjects)
loggerILoggerNStandard output loggerThe logger
monitorIProgressMonitorNNullProgressMonitorA progress monitor

All the optional parameters can be omitted.