String type = (String) userInputs.get("type");
if (type == null) {
return;
}
ClassDiagramType classDiagramType = null;
if (type.startsWith(ClassDiagramType.Simple.toString())) {
classDiagramType = ClassDiagramType.Simple;
} else if (type.startsWith(ClassDiagramType.Connected.toString())) {
classDiagramType = ClassDiagramType.Connected;
} else if (type.startsWith(ClassDiagramType.Related.toString())) {
classDiagramType = ClassDiagramType.Related;
}
final ClassDiagramType _classDiagramType = classDiagramType;
final boolean showMethods = (Boolean) userInputs.get("setMethods");
final ClassRenderingStrategy strategy = showMethods ? DefaultClassRenderingStrategy.SHOW_ALL_DECLARED_METHODS
: DefaultClassRenderingStrategy.SHOW_NO_FIELDS_OR_METHODS;