/usr/lib/bouml/xmi/7169.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 | class UmlClass
!!!128772.cpp!!! ref(inout out : FileOut) : void
if ((stereotype() == "actor") ||
((parent()->kind() != aClassView) &&
(parent()->kind() != aClass)))
out << "<UML:Actor";
else if (stereotype() == "interface")
out << "<UML:Interface";
else
out << "<UML:Class";
out.idref(this);
out << "/>";
!!!145666.cpp!!! write(inout out : FileOut) : void
if (! _written) {
_written = TRUE;
// parent already written
out.indent();
out << "<UML:Classifier.feature>\n";
out.indent(+1);
}
!!!145538.cpp!!! write_if_needed(inout out : FileOut) : bool
// even if the class doen't have children
parent()->write(out);
if ((stereotype() == "actor") ||
((parent()->kind() != aClassView) &&
(parent()->kind() != aClass)))
// force it to be an actor
write_actor(out);
else {
switch (_lang) {
case Cpp:
if (cppDecl().isEmpty())
return FALSE;
break;
case Java:
if (javaDecl().isEmpty())
return FALSE;
default:
break;
}
bool interf = (stereotype() == "interface");
out.indent();
out << ((interf) ? "<UML:Interface name=\"" : "<UML:Class name=\"");
out.quote(name());
out << '"';
out.id(this);
out << " visibility=\"public\" isAbstract=\""
<< ((isAbstract()) ? "true" : "false")
<< "\" isActive=\"false\" >\n";
out.indent(+1);
if (! interf)
write_stereotype(out);
write_annotation(out);
write_description_properties(out);
const QVector<UmlItem> ch = children();
unsigned n = ch.size();
bool used = FALSE;
bool haveRel= FALSE;
for (unsigned i = 0; i != n; i += 1) {
switch (ch[i]->kind()) {
case aNcRelation:
break;
case aRelation:
haveRel = TRUE;
break;
default:
used |= ch[i]->write_if_needed(out);
}
}
if (used) {
out.indent(-1);
out.indent();
out << "</UML:Classifier.feature>\n";
}
out.indent(-1);
out.indent();
out << ((interf) ? "</UML:Interface>\n" : "</UML:Class>\n");
if (haveRel) {
for (unsigned i = 0; i != n; i += 1)
if (ch[i]->kind() == aRelation)
used |= ch[i]->write_if_needed(out);
}
}
unload();
return TRUE;
!!!129924.cpp!!! write_actor(inout out : FileOut) : void
out.indent();
out << "<UML:Actor name=\"" << name() << '"';
out.id(this);
out << " visibility=\"public\" isAbstract=\""
<< ((isAbstract()) ? "true" : "false")
<< "\" isActive=\"false\" >\n";
out.indent(+1);
if (stereotype() != "actor")
write_stereotype(out);
write_description_properties(out);
out.indent(-1);
out.indent();
out << "</UML:Actor>\n";
const QVector<UmlItem> ch = children();
unsigned n = ch.size();
for (unsigned i = 0; i != n; i += 1)
if (ch[i]->kind() == aRelation)
ch[i]->write_if_needed(out);
|