Other Methods (in class)
Method
|
Return
|
Parameters
|
Comment
|
getByNavigation
|
Any
|
Any Set
|
Return object or element given a navigation sequence, or None if none found
Intended to provide fast, one-function-call access to
long range navigation, mainly for UML-embedded code.
NB there is no error checking on the input.
The function may fail without proper warning for incorrect input.
Also the function bypasses the API on get commands, so that load is
not triggered on MemopsRoot->TopObject links or partially filled
interpackage crosslinks
Programmer beware!
Navigation starts at self and follows the navigation sequence,
which consists of either string tags, or (tag,key) tuples.
- For a string tag the function gets the corresponding element.
Except at the end of the navigation sequence, this assumes that
the element has hicard==1, and is a link or complex data type attribute.
If the result evaluates false, a getattr is done instead.
This may trigger loading and follow derived links.
- For a (tag,key) tuple this assumes that the tag is the name of a
child link, and gets the child with the given key.
If no children are found and the object has an attribute isLoaded==False,
object.load() is tried.
- If at any stage in the lookup no object is found, None is returned
|
getExpandedKey
|
Any List
|
-
|
non-std. get expanded (object-free) version of full key, for comparing objects from different trees.
|
|