/usr/lib/bouml/xmi2/7041.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 139 140 141 142 143 144 145 146 147 148 149 | class UmlAttribute
!!!145922.cpp!!! write(inout out : FileOut) : void
QCString stp = parent()->stereotype();
bool enum_item = (stp == "enum_pattern") ||
((stp == "enum") && (stereotype() != "attribute"));
const char * k;
const char * kk;
if (enum_item) {
k = "ownedLiteral";
kk = " xmi:type=\"uml:EnumerationLiteral\" name=\"";
}
else {
k = "ownedAttribute";
kk = " xmi:type=\"uml:Property\" name=\"";
}
switch (_lang) {
case Uml:
out.indent();
out << "<" << k << kk << name() << '"';
break;
case Cpp:
if (cppDecl().isEmpty())
return;
out.indent();
out << "<" << k << kk << true_name(name(), cppDecl()) << '"';
break;
default: // Java
if (javaDecl().isEmpty())
return;
out.indent();
out << "<" << k << kk << true_name(name(), javaDecl()) << '"';
break;
}
out.id(this);
if (! enum_item) {
write_visibility(out);
write_scope(out);
if (isReadOnly())
out << " isReadOnly=\"true\"";
if (isDerived()) {
out << " isDerived=\"true\"";
if (isDerivedUnion())
out << " isDerivedUnion=\"true\"";
}
if (isOrdered())
out << " isOrdered=\"true\"";
if (isUnique())
out << " isUnique=\"true\"";
}
out << ">\n";
out.indent(+1);
if (! enum_item) {
const UmlTypeSpec & t = type();
switch (_lang) {
case Uml:
UmlItem::write_type(out, t);
break;
case Cpp:
if ((t.type != 0) || !t.explicit_type.isEmpty())
write_cpp_type(out);
break;
default: // java
if ((t.type != 0) || !t.explicit_type.isEmpty())
write_java_type(out);
}
write_multiplicity(out, multiplicity(), this);
}
write_default_value(out, defaultValue(), this);
write_constraint(out);
write_annotation(out);
write_description_properties(out);
out.indent(-1);
out.indent();
out << "</" << k << ">\n";
unload();
!!!148866.cpp!!! write_cpp_type(inout out : FileOut) : void
// note : doesn't manage function/operation pointer
QCString s = cppDecl();
int index;
remove_comments(s);
// remove keywords not linked to the type
if ((index = s.find("${static}")) != -1)
s.replace(index, 9, " ");
if ((index = s.find("${mutable}")) != -1)
s.replace(index, 10, (isCppMutable()) ? "mutable " : "");
if ((index = s.find("${volatile}")) != -1)
s.replace(index, 11, (isVolatile()) ? "volatile " : "");
if ((index = s.find("${value}")) != -1)
s.replace(index, 8, " ");
if ((index = s.find("${h_value}")) != -1)
s.replace(index, 10, " ");
// replace keywords linked to the type
if ((index = s.find("${const}")) != -1)
s.replace(index, 8, isReadOnly() ? "const " : "");
UmlTypeSpec t = type();
if (t.type == 0)
t.explicit_type = CppSettings::type(t.explicit_type);
out.indent();
out << "<type xmi:type=\"uml:Class\"";
write_type(out, t, s, "${name}", "${type}");
out << "/>\n";
!!!149378.cpp!!! write_java_type(inout out : FileOut) : void
QCString s = javaDecl();
int index;
remove_comments(s);
// remove keywords not linked to the type
if ((index = s.find("${visibility}")) != -1)
s.replace(index, 13, " ");
if ((index = s.find("${static}")) != -1)
s.replace(index, 9, " ");
if ((index = s.find("${final}")) != -1)
s.replace(index, 8, " ");
if ((index = s.find("${transient}")) != -1)
s.replace(index, 12, " ");
if ((index = s.find("${volatile}")) != -1)
s.replace(index, 11, " ");
if ((index = s.find("${value}")) != -1)
s.replace(index, 8, " ");
if ((index = s.find("${@}")) != -1)
s.replace(index, 4, " ");
UmlTypeSpec t = type();
if (t.type == 0)
t.explicit_type = JavaSettings::type(t.explicit_type);
out.indent();
out << "<type xmi:type=\"uml:Class\"";
write_type(out, t, s, "${name}", "${type}");
out << "/>\n";
|