Table Of Contents

Previous topic

node.ext.uml

Next topic

node.ext.uml.classes

This Page

node.ext.uml.core

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.core.UMLElement(*args, **kw)
XMI = None
abstract = True
check_model_constraints()
copy(*args, **kw)
detach(*args, **kw)
index
insertafter(newnode, refnode)
insertbefore(newnode, refnode)
insertfirst(newnode)
insertlast(newnode)
maxoccurs
name
node(uuid)
normalizedname
overwrite_recursiv_on_copy = True
set_uuid_for(node, override=False, recursiv=False)
stereotype(stereotypename)
stereotypes
swap(node_a, node_b)
uuid
xmiid = None
xminame = None
interface node.ext.uml.interfaces.IUMLElement

Extends: node.interfaces.INode

An XMI Element.

check_model_constraints(self)

Since some rules cannot be evaluated at instantiation time this function should be called on model elements by the interpreter when building the concrete model.

Don’t confuse this with “Constraint” from UML specification

All “check_model_constraints” methods through the whole inheritance hierarchy should be called. It’s up to the implementation to call the superclass’ “check_model_constraints” implementation.

For example, consider a model element which must have a parent:
node[‘element’] = Element()

Element does not have a parent at instatiation time.

normalizedname

Cleaned name of UML element name consists of [a..z A..Z 0..9 _] and does not start with [0..9].

XMI

the current IXMIFlavor instance

stereotype(name)

returns stereotype by name.

xmiid

XMI identifier as string

xminame

XMI name, should be used as canonical name for code generation

maxoccurs

UML: maximum occurencies. integer expected.

stereotypes

list of INode filtered contained stereotypes

iscomplex

UML: complex or not. boolean expected

class node.ext.uml.core.Profile(*args, **kw)
abstract = False
interface node.ext.uml.interfaces.IProfile

Extends: node.ext.uml.interfaces.IUMLElement

UML Profile.

class node.ext.uml.core.Datatype(*args, **kw)
interface node.ext.uml.interfaces.IDatatype

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

UML datatype.

class node.ext.uml.core.Stereotype(name=None)
abstract = False
check_model_constraints()
profile
taggedvalue(taggedvaluename)
taggedvalues
interface node.ext.uml.interfaces.IStereotype

Extends: node.ext.uml.interfaces.IUMLElement

UML stereotype

From uml reference book “tagged value: A tag-value pair attached to a modeling element to hold some piece of information. Each tagged value is shown in the form tag = value. it always is part of a stereotype.

taggedvalues

List of ITaggedvalue filtered contained taggedvalues.

taggedvalue(name)

returns tagged value by tag name.

profiles

UID of UML profile this stereotype belongs to.

class node.ext.uml.core.TaggedValue(*args, **kw)
abstract = False
value = None
interface node.ext.uml.interfaces.ITaggedValue

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

UML tagged value.

value

The value

class node.ext.uml.core.Package(*args, **kw)
abstract = False
activities
classes
interfaces
packages
profiles
interface node.ext.uml.interfaces.IPackage

Extends: node.ext.uml.interfaces.IUMLElement

An UML Package element.

activities

List of IActivities defined in the package

interfaces

list of INode filters contained classes

profiles

list of UML profiles loaded with this package

classes

list of INode filtered contained classes

packages

list of INode filtered contained packages

class node.ext.uml.core.Model(*args, **kw)
abstract = False
datatypes
interface node.ext.uml.interfaces.IModel

Extends: node.ext.uml.interfaces.IPackage, node.interfaces.IRoot

UML Model Element.

datatypes

list of (INode filtered) contained datatypes