![]() Data Model version 2.0.6 |
Method: getByNavigationfrom Class memops.api.Implementation.MemopsObject
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
|
Data Model Version 2.0.6 |
Go to Top |
Work done by the CCPN team. |
www.ccpn.ac.uk |