Table Of Contents

Previous topic

node.ext.uml.core

Next topic

node.ext.uml.utils

This Page

node.ext.uml.classes

Includes zope interfaces from node.ext.uml.interfaces.

Literature: [1] OMG Unified Modeling LanguageTM (OMG UML), Superstructure. Version 2.2.

[2] The Unified Modeling Language Reference Manual Second Edition. James Rumbaugh, Ivar Jacobson, Grady Booch. Addison-Wesley, 2005

[3] Unified Modeling Language Specification (version 2.1)

API

class node.ext.uml.classes._TypedElement(name=None)
type
class node.ext.uml.classes.Class(*args, **kw)
isAbstract = False
operations
interface node.ext.uml.interfaces.IClass

Extends: node.ext.uml.interfaces.IUMLElement

UML Class Element.

A class describes a set of objects that share the same specifications of features, constraints, and semantics. ([1], pg. 49)

UML2.2 Associations AGX implementation
nestedClassifier: Classifier [*] none
ownedAttribute : Property [*] attributes
ownedOperation : Operation [*] operations/ methods/ other behavior
/ superClass : Class [*] i.e. python: __class__.__bases__

From Classifier (from Kernel, Dependencies, PowerTypes): isAbstract: Boolean

isAbstract

If true, the Classifier does not provide a complete declaration and can typically not be instantiated.

operations

list of INode filters contained operation

attributes

list of INode filters contained attributes

class node.ext.uml.classes.Interface(*args, **kw)
operations
interface node.ext.uml.interfaces.IInterface

Extends: node.ext.uml.interfaces.IUMLElement

UML Interface Element.

operations

list of INode filters contained operation

class node.ext.uml.classes.Property(name=None)
interface node.ext.uml.interfaces.IProperty

Extends: node.ext.uml.interfaces.IUMLElement

UML Attribute Element

type

Type of the element - usally referenced

class node.ext.uml.classes.Operation(*args, **kw)
parameter
interface node.ext.uml.interfaces.IOperation

Extends: node.ext.uml.interfaces.IUMLElement

UML Operation Element.

parameter

IOperationParameter implementing Element

class node.ext.uml.classes.Parameter(name=None)
interface node.ext.uml.interfaces.IParameter

Extends: node.ext.uml.interfaces.IUMLElement, node.interfaces.ILeaf

UML Parameter Element of Operation.

default

Default value of the element, optional

type

Type of the element - usally referenced

class node.ext.uml.classes.Generalization(name=None)
general
specific
interface node.ext.uml.interfaces.IGeneralization

Extends: node.ext.uml.interfaces.IUMLElement

UML Generalization Element.

see [3], pg. 71

A generalization is a taxonomic relationship between a more general classifier and a more specific classifier. Each instance of the specific classifier is also an indirect instance of the general classifier. Thus, the specific classifier inherits the features of the more general classifier.

An owned element of of some classifier.

specific

References the specializing classifier in the Generalization relationship. Subsets DirectedRelationship::source and Element::owner

general

References the general classifier in the Generalization relationship. Subsets DirectedRelationship::target

class node.ext.uml.classes.InterfaceRealization(name=None)
contract
implementingClassifier
interface node.ext.uml.interfaces.IInterfaceRealization

Extends: node.ext.uml.interfaces.IUMLElement

UML InterfaceRealization Element.

see [3], pg. 89

An InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship signifies that the realizing classifier conforms to the contract specified by the Interface.

implementingClassifier

References the BehavioredClassifier that owns this Interfacerealization (i.e., the classifier that realizes the Interface to which it points). (Subsets Dependency::client, Element::owner.

contract

References the Interface specifying the conformance contract. (Subsets Dependency::supplier).

class node.ext.uml.classes.Association(name=None)
memberEnds
ownedEnds
interface node.ext.uml.interfaces.IAssociation

Extends: node.ext.uml.interfaces.IUMLElement

UML Association Element.

see [3], pg. 39

“An association describes a set of tuples whose values refer to typed instances. An instance of an association is called a link.”

The association itself is very general. It can be a simple association, a navigable association, a shared or composite aggregation (and more).

It can be member of a classifier or part of a package, dependend on its usage.

ownedEnds

The ends that are owned by the association itself. This is an ordered association. SubsetsAssociation::memberEnd Classifier::feature, andNamespace::ownedMember.

memberEnds

Each end represents participation of instances of the classifier connected to the end in links of the association. This is an ordered association. Subsets Namespace::member.

class node.ext.uml.classes.AssociationEnd(name=None)
AGGREGATIONS = ['shared', 'composite']
COMPOSITE = 'composite'
SHARED = 'shared'
association
type
interface node.ext.uml.interfaces.IAssociationEnd

Extends: node.ext.uml.interfaces.IUMLElement

OwnedElement of Associations or Classes.

navigable

Indicates wether the end is navigable or not, bool

uppervalue

Multiplicity upper range

aggregationkind

see [3], pg. 38: AggregationKind is an enumeration type that specifies the literals for defining the kind of aggregation of a property. Its one of the following literal values. shared: Indicates that the property has shared aggregation. composite: Indicates that the property is aggregated compositely, i.e., the composite object has responsibilityfor the existence and storage of the composedobjects (parts).

lowervalue

Multiplicity lower range

type

Element this end points to.

class node.ext.uml.classes.Dependency(name=None)
client
supplier
interface node.ext.uml.interfaces.IDependency

Extends: node.ext.uml.interfaces.IUMLElement

UML Dependency Element.

see [3], pg. 62

“A dependency is a relationship that signifies that a single or a set of model elements requires other model elements for their specification or implementation. This means that the complete semantics of the depending elements is either semantically or structurally dependent on the definition of the supplier element(s).

supplier

The element(s) independent of the client element(s), in the same respect and the same dependency relationship. In some directed dependency relationships (such as Refinement Abstractions), a common convention in the domain of class-based OO software is to put the more abstract element in this role. Despite this convention, users of UML may stipulate a sense of dependency suitable for their domain, which makes a more abstract element dependent on that which is more specific. Subsets DirectedRelationship::target.

client

modeler, and is a stipulation. Subsets DirectedRelationship::source.