# eric6.Graphics.UMLDiagramBuilder

Module implementing the UML diagram builder base class.

### Global Attributes

None

### Classes

UMLDiagramBuilder | Class implementing the UML diagram builder base class.

### Functions

None

## UMLDiagramBuilder

Class implementing the UML diagram builder base class.

### Derived from

QObject

### Class Attributes

None

### Class Methods

None

### Methods

UMLDiagramBuilder | Constructor
buildDiagram | Public method to build the diagram.
getPersistenceData | Public method to get a string for data to be persisted.
initialize | Public method to initialize the object.
parsePersistenceData | Public method to parse persisted data.

### Static Methods

None

#### UMLDiagramBuilder (Constructor)

UMLDiagramBuilder(dialog, view, project)

Constructor

dialog
  reference to the UML dialog (UMLDialog)
view
  reference to the view object (UMLGraphicsView)
project
  reference to the project object (Project)

#### UMLDiagramBuilder.buildDiagram

buildDiagram()

Public method to build the diagram.

This class must be implemented in subclasses.

Raises NotImplementedError:
  raised to indicate that this class must be subclassed

#### UMLDiagramBuilder.getPersistenceData

getPersistenceData()

Public method to get a string for data to be persisted.

Returns:
  persisted data string (string)

#### UMLDiagramBuilder.initialize

initialize()

Public method to initialize the object.

#### UMLDiagramBuilder.parsePersistenceData

parsePersistenceData(version, data)

Public method to parse persisted data.

version
  version of the data (string)
data
  persisted data to be parsed (string)

Returns:
  flag indicating success (boolean)

Up