/usr/lib/bouml/xmi2/147458.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 136 137 138 | class UmlFragment
!!!148612.cpp!!! write(inout out : FileOut, in diagram : UmlItem, inout msgs : UmlSequenceMessage) : void
QCString oper = name();
if (oper == "ref")
write_ref(out, diagram, msgs);
else {
if ((oper != "alt") &&
(oper != "opt") &&
(oper != "loop") &&
(oper != "break") &&
(oper != "par") &&
(oper != "seq") &&
(oper != "strict") &&
(oper != "neg") &&
(oper != "critical") &&
(oper != "assert") &&
(oper != "ignore") &&
(oper != "consider"))
oper = "";
else {
static int rank = 0;
out.indent();
out << "<fragment xmi:type=\"uml:CombinedFragment\"";
out.id_prefix(diagram, "COMBINEDFRAGMENT", ++rank);
if (! covered.isEmpty()) {
out << " covered=\"";
UmlClassInstanceReference * lifeline = covered.first();
for (;;) {
out.ref_only(diagram, lifeline->lifeline());
lifeline = covered.next();
if (lifeline == 0)
break;
out << ' ';
}
out << '"';
}
out << " interactionOperator=\"" << oper << "\">\n";
out.indent(+1);
}
const QVector<UmlFragmentCompartment> & subs = compartments();
unsigned n = subs.size();
for (unsigned i = 0; i != n; i += 1)
subs.at(i)->write(out, diagram, msgs, oper);
if (!oper.isEmpty()) {
out.indent(-1);
out.indent();
out << "</fragment>\n";
}
}
!!!149764.cpp!!! cover(in msg : UmlSequenceMessage) : void
if (covered.findRef(msg->from()) == -1)
covered.append(msg->from());
if (covered.findRef(msg->to()) == -1)
covered.append(msg->to());
if (container() != 0)
container()->fragment()->cover(msg);
!!!231042.cpp!!! write_ref(inout out : FileOut, in diagram : UmlItem, inout msgs : UmlSequenceMessage) : void
static int rank = 0;
out.indent();
out << "<fragment xmi:type=\"uml:InteractionUse\"";
out.id_prefix(diagram, "INTERACTIONUSE", ++rank);
const QVector<UmlClassInstanceReference> & v = UmlBaseFragment::covered();
unsigned n;
unsigned index;
n = v.count();
if (n != 0) {
out << " covered=\"";
index = 0;
for (;;) {
out.ref_only(diagram, v.at(index)->lifeline());
if (++index == n)
break;
out << ' ';
}
out << '"';
}
UmlDiagram * d = refer();
if (d != 0) {
switch (d->kind()) {
case aSequenceDiagram:
case aCollaborationDiagram:
out.ref(d, "refersTo", "INTERACTION_");
if (arguments().isEmpty())
out << "/>\n";
else {
static int rank = 0;
out << ">\n";
out.indent();
out << "\t<argument xmi:type=\"uml:OpaqueExpression\"";
out.id_prefix(d, "INTER_ARG_EXPR_", ++rank);
out << ">\n";
out.indent();
out << "\t\t<body>";
out.quote(arguments());
out << "</body>\n";
out.indent();
out << "\t</argument>\n";
out.indent();
out << "</fragment>\n";
}
break;
default:
out << "/>\n";
break;
}
}
else
out << "/>\n";
// remove internal messages and compartment
const QVector<UmlFragmentCompartment> & subs = compartments();
n = subs.size();
for (index = 0; index != n; index += 1)
subs.at(index)->bypass(msgs);
|