Package org.contextmapper.dsl.generator
Class ContextMapGenerator
java.lang.Object
org.eclipse.xtext.generator.AbstractGenerator
org.contextmapper.dsl.generator.AbstractContextMapGenerator
org.contextmapper.dsl.generator.ContextMapGenerator
- All Implemented Interfaces:
org.eclipse.xtext.generator.IGenerator2
-
Field Summary
Fields inherited from class org.contextmapper.dsl.generator.AbstractContextMapGenerator
contextMappingModel, resourceSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether team BCs and generic BCs are clustered or not.void
clusterTeams
(boolean clusterTeams) Defines whether team BCs and generic BCs in the generated Context Map ar clustered or not.protected org.contextmapper.contextmap.generator.ContextMapGenerator
protected void
generateFromContextMap
(ContextMap cmlContextMap, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI) boolean
boolean
void
printAdditionalLabels
(boolean printAdditionalLabels) Defines whether additional labels for the relationship name and implementation technology are printed or not.void
setContextMapFormats
(ContextMapFormat... formats) Changes the formats which will be generated when calling the generator.void
setHeight
(int height) Changes/fixes the height of the generated image.void
setLabelSpacingFactor
(int labelSpacingFactor) Changes the spacing used to avoid label overlappings (factor between 1 and 20).void
setWidth
(int width) Changes/fixes the width of the generated image.Methods inherited from class org.contextmapper.dsl.generator.AbstractContextMapGenerator
doGenerate
Methods inherited from class org.eclipse.xtext.generator.AbstractGenerator
afterGenerate, beforeGenerate
-
Constructor Details
-
ContextMapGenerator
public ContextMapGenerator()
-
-
Method Details
-
generateFromContextMap
protected void generateFromContextMap(ContextMap cmlContextMap, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI) - Specified by:
generateFromContextMap
in classAbstractContextMapGenerator
-
setContextMapFormats
Changes the formats which will be generated when calling the generator.- Parameters:
formats
- the formats which shall be generated
-
setLabelSpacingFactor
public void setLabelSpacingFactor(int labelSpacingFactor) Changes the spacing used to avoid label overlappings (factor between 1 and 20).- Parameters:
labelSpacingFactor
- the factor to be used
-
setWidth
public void setWidth(int width) Changes/fixes the width of the generated image. If the width is fixed, the height will be adjusted dynamically! -
setHeight
public void setHeight(int height) Changes/fixes the height of the generated image. If the height is fixed, the width will be adjusted dynamically! -
printAdditionalLabels
public void printAdditionalLabels(boolean printAdditionalLabels) Defines whether additional labels for the relationship name and implementation technology are printed or not. -
printAdditionalLabels
public boolean printAdditionalLabels() -
clusterTeams
public void clusterTeams(boolean clusterTeams) Defines whether team BCs and generic BCs in the generated Context Map ar clustered or not. Only relevant for team maps.- Parameters:
clusterTeams
- boolean that indicates whether team BCs and generic BCs shall be clustered
-
clusterTeams
public boolean clusterTeams()Indicates whether team BCs and generic BCs are clustered or not.- Returns:
- true, if team BCs and generic BCs are clustered, false otherwise
-
createContextMapGenerator
protected org.contextmapper.contextmap.generator.ContextMapGenerator createContextMapGenerator() -
isGraphvizInstalled
public boolean isGraphvizInstalled()
-