ontouml_py.model.enumerations.ontouml_enum
This module defines a base class for creating enumerations in OntoUML.
Module Contents
Classes
A metaclass that combines the functionalities of EnumMeta and ABCMeta. |
|
An abstract base class for OntoUML enumerations. |
- class ontouml_py.model.enumerations.ontouml_enum.EnumABCMeta
Bases:
enum.EnumMeta
,abc.ABCMeta
A metaclass that combines the functionalities of EnumMeta and ABCMeta.
This metaclass is used to create abstract base classes that are also enums, allowing for the creation of enums with abstract methods.
- class ontouml_py.model.enumerations.ontouml_enum.OntoumlEnum(*args, **kwds)
Bases:
enum.Enum
An abstract base class for OntoUML enumerations.
This class provides a framework for creating enumerations in OntoUML. It allows for the definition of enum members in subclasses, which can be used to represent various categorizations and types within the OntoUML model.
- classmethod get_members()
Return the keys of the enum members.
This method retrieves the keys (names) of all members of the enum class.
- Returns:
The keys of the enum members.
- Return type:
KeysView[str]