/usr/lib/bouml/xmi2import/129026.bodies is in bouml-plugouts-src 4.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | class UmlTransition
!!!220034.cpp!!! init() : void
declareFct("transition", "uml:Transition", &importIt);
declareFct("transition", "", &importIt); // Borland Together 2006 for Eclipse
Trigger::init();
!!!219906.cpp!!! solveThem() : void
QValueList<Transition>::Iterator iter;
for (iter = All.begin(); iter != All.end(); ++iter) {
Transition & transition = *iter;
QMap<QCString, UmlItem*>::Iterator isrc = UmlItem::All.find(transition.source);
QMap<QCString, UmlItem*>::Iterator itgt = UmlItem::All.find(transition.target);
if ((isrc == UmlItem::All.end()) /*&&
((isrc = Outgoings.find(transition.id)) == Outgoings.end())*/) {
if (!FileIn::isBypassedId(transition.source))
UmlCom::trace("transition '" + transition.id + "' : unknown source reference '" + transition.source + "'<br>");
}
else if ((itgt == UmlItem::All.end()) /*&&
((itgt = Incomings.find(transition.id)) == Incomings.end())*/) {
if (!FileIn::isBypassedId(transition.target))
UmlCom::trace("transition '" + transition.id + "' : unknown target reference '" + transition.target + "'<br>");
}
else {
UmlTransition * t = UmlTransition::create(*isrc, *itgt);
if (t == 0)
UmlCom::trace("cannot create transition '" + transition.id + "'<br>");
else {
UmlItem::All.insert(transition.id, t);
if (! transition.name.isEmpty())
t->set_Name(transition.name);
if (! transition.effect.isEmpty())
t->set_Activity(transition.effect);
if (! transition.trigger.isEmpty())
t->set_Trigger(transition.trigger);
else if (! transition.triggerRef.isEmpty()) {
QCString trig = Trigger::get(transition.triggerRef);
if (!trig.isNull())
t->set_Trigger(trig);
else if (!FileIn::isBypassedId(transition.triggerRef))
UmlCom::trace("transition '" + transition.id + "' : unknown trigger reference '" + transition.triggerRef + "'<br>");
}
if (! transition.guard.isEmpty())
t->set_Guard(transition.guard);
if (*isrc == *itgt)
t->set_IsExternal(transition.kind == "external");
t->unload(FALSE, FALSE);
}
}
}
All.clear();
!!!219778.cpp!!! importIt(inout in : FileIn, inout token : Token, inout where : UmlItem) : void
Transition & transition = *(All.append(Transition()));
QCString s;
transition.id = token.xmiId();
transition.name = token.valueOf("name");
transition.source = token.valueOf("source");
transition.target = token.valueOf("target");
transition.triggerRef = token.valueOf("trigger");
transition.kind = token.valueOf("kind");
if (! token.closed()) {
QCString k = token.what();
const char * kstr = k;
while (in.read(), !token.close(kstr)) {
s = token.what();
if (s == "trigger")
Trigger::add(in, token, transition.trigger, transition.triggerRef);
else if (s == "guard") {
if (! token.closed()) {
while (in.read(), !token.close("guard")) {
QCString s = token.what();
if (s == "specification") {
transition.guard = token.valueOf("body");
if (transition.guard.isNull())
transition.guard = token.valueOf("value"); // UMODEL
if (! token.closed()) {
while (in.read(), !token.close("specification")) {
QCString s = token.what();
if (s == "body")
transition.guard = in.body("body");
else if (! token.closed())
in.finish(s);
}
}
}
else if (! token.closed())
in.finish(s);
}
}
}
else if (s == "effect") {
QCString b = token.valueOf("body");
if (! b.isNull()) {
transition.effect = b;
if (! token.closed())
in.finish(s);
}
else if (! token.closed()) {
while (in.read(), !token.close("effect")) {
b = token.what();
if (b == "body") {
transition.effect = in.body("body");
in.finish(s);
break;
}
else if (! token.closed())
in.finish(b);
}
}
}
else if (! token.closed())
in.finish(s);
}
}
|