pyumldiagrams.Definitions
Attributes
Syntactic sugar to define a list of parameters. |
|
Syntactic sugar to define a list of methods. |
|
Syntactic sugar to define a list of UML Lines. |
|
Classes
todo:: These should move to the Internal package |
|
Defines the size of the input UML definitions; |
|
Defines the visibility of either methods or fields |
|
Defines a single parameter for a method |
|
Create a collection of name/value pairs. |
|
Defines a single method in a single UML class |
|
Defines a single instance variable |
|
The class definition. Currently, does not support instance properties. |
|
The type of UML line you wish to draw. Currently, bare associations are not supported. |
|
Defines a line between many points; Index 0 the start of the line; That last point |
|
A UML Line definition includes its type |
|
An enumeration that determines how to draw various UML and other graphical elements |
|
Defines a rectangle |
|
This is just typing syntactical sugar on how to define an Ellipse. |
Functions
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- pyumldiagrams.Definitions.ClassName
- pyumldiagrams.Definitions.createPositionFactory() codeallybasic.Position.Position
- class pyumldiagrams.Definitions.DiagramPadding
todo:: These should move to the Internal package
- class pyumldiagrams.Definitions.Size
Defines the size of the input UML definitions;
- class pyumldiagrams.Definitions.VisibilityType(*args, **kwds)
Bases:
enum.Enum
Defines the visibility of either methods or fields
- Public = '+'
- Private = '-'
- Protected = '#'
- static toEnum(strValue: str) VisibilityType
Converts the input string to the line type enum :param strValue: The serialized string representation
Returns: The line type enumeration
- class pyumldiagrams.Definitions.DefaultValueDefinition
Bases:
BaseDefinition
- class pyumldiagrams.Definitions.ParameterDefinition
Bases:
DefaultValueDefinition
Defines a single parameter for a method
- pyumldiagrams.Definitions.Parameters
Syntactic sugar to define a list of parameters.
- class pyumldiagrams.Definitions.DisplayMethodParameters(*args, **kwds)
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- DISPLAY = 'Display'
- DO_NOT_DISPLAY = 'DoNotDisplay'
- UNSPECIFIED = 'Unspecified'
- pyumldiagrams.Definitions.createParametersFactory() Parameters
- class pyumldiagrams.Definitions.MethodDefinition
Bases:
BaseDefinition
Defines a single method in a single UML class
- visibility: VisibilityType
Defines the method visibility. See VisibilityType
- parameters: Parameters
Define the parameters for a particular method
- pyumldiagrams.Definitions.Methods
Syntactic sugar to define a list of methods.
- class pyumldiagrams.Definitions.FieldDefinition
Bases:
DefaultValueDefinition
Defines a single instance variable
- visibility: VisibilityType
Defines the field visibility. See VisibilityType
- pyumldiagrams.Definitions.Fields
- class pyumldiagrams.Definitions.ShapeDefinition
Bases:
BaseDefinition
- position: codeallybasic.Position.Position
The position of the UML class symbol. See Position
- class pyumldiagrams.Definitions.ClassDefinition
Bases:
ShapeDefinition
The class definition. Currently, does not support instance properties.
- displayMethodParameters: DisplayMethodParameters
If True display the method parameters; If UNSPECIFIED defer to global
- pyumldiagrams.Definitions.ClassDefinitions
- pyumldiagrams.Definitions.Content
- pyumldiagrams.Definitions.Contents
- class pyumldiagrams.Definitions.NoteDefinition
Bases:
ShapeDefinition
- pyumldiagrams.Definitions.UmlNoteDefinitions
- class pyumldiagrams.Definitions.LineType(*args, **kwds)
Bases:
enum.Enum
The type of UML line you wish to draw. Currently, bare associations are not supported.
- Inheritance = 0
- Interface = 1
- Aggregation = 3
- Composition = 7
- Association = 9
- NoteLink = 11
- Lollipop = 13
- pyumldiagrams.Definitions.LinePositions
- class pyumldiagrams.Definitions.LineDefinition
Defines a line between many points; Index 0 the start of the line; That last point is the end of the line
- linePositions: LinePositions
- class pyumldiagrams.Definitions.UmlLineDefinition
Bases:
LineDefinition
A UML Line definition includes its type
- cardinalityDestination: str = ''
Cardinality values used for composition, aggregation, and association links
- namePosition: codeallybasic.Position.Position
- sourceCardinalityPosition: codeallybasic.Position.Position
- destinationCardinalityPosition: codeallybasic.Position.Position
- pyumldiagrams.Definitions.UmlLineDefinitions
Syntactic sugar to define a list of UML Lines.
- class pyumldiagrams.Definitions.UmlLollipopDefinition
-
- attachmentSide: codeallyadvanced.ui.AttachmentSide.AttachmentSide = None
- position: codeallybasic.Position.Position
- pyumldiagrams.Definitions.UmlLollipopDefinitions
- class pyumldiagrams.Definitions.RenderStyle(*args, **kwds)
Bases:
enum.Enum
An enumeration that determines how to draw various UML and other graphical elements
- Draw = 'D'
Just draw the outline
- Fill = 'F'
Just fill in the area associated with the shape
- DrawFill = 'DF'
Do both when drawing the UML shape or figure
- class pyumldiagrams.Definitions.RectangleDefinition
Defines a rectangle
- renderStyle: RenderStyle
How to draw the rectangle. See RenderStyle
- position: codeallybasic.Position.Position
Where to put the rectangle. See Position
- class pyumldiagrams.Definitions.EllipseDefinition
Bases:
RectangleDefinition
This is just typing syntactical sugar on how to define an Ellipse.