/usr/lib/bouml/xmi2import/141698.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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | class UmlActivityObject
!!!208002.cpp!!! init() : void
declareFct("node", "uml:ObjectNode", &importIt);
declareFct("containednode", "uml:ObjectNode", &importIt);
declareFct("node", "uml:DataStoreNode", &importIt);
declareFct("containednode", "uml:DataStoreNode", &importIt);
declareFct("node", "uml:CentralBufferNode", &importIt);
declareFct("containednode", "uml:CentralBufferNode", &importIt);
UmlActivityPin::init();
!!!207874.cpp!!! importIt(inout in : FileIn, inout token : Token, inout where : UmlItem) : void
where = where->container(anActivityObject, token, in);
if (where != 0) {
QCString s = token.valueOf("name");
UmlActivityObject * a = create(where, s);
if (a == 0)
in.error("cannot create activity object '"
+ s + "' in '" + where->name() + "'");
a->addItem(token.xmiId(), in);
QCString ste;
s = token.xmiType();
switch (((const char *) s)[0]) {
case 'D':
ste = "datastore";
break;
case 'C':
ste = "centralBuffer";
break;
default:
break;
}
a->import_it(in, token);
if (! ste.isNull())
a->set_Stereotype(ste);
}
!!!206210.cpp!!! setType(in idref : string) : void
UmlTypeSpec ts;
if (UmlItem::setType(idref, 0, ts))
set_Type(ts);
!!!243330.cpp!!! setType(inout token : Token) : void
UmlTypeSpec ts;
if (UmlItem::setType(token, 0, ts))
set_Type(ts);
!!!206338.cpp!!! setOrdering(in s : string, inout in : FileIn) : void
if (s == "unordered")
set_Ordering(unordered);
else if (s == "ordered")
set_Ordering(ordered);
else if (s == "LIFO")
set_Ordering(lifo);
else if (s == "FIFO")
set_Ordering(fifo);
else if (! s.isEmpty())
in.warning("wrong ordering '" + s + "'");
!!!206466.cpp!!! setSelection(in idref : string) : void
QMap<QCString, QCString>::Iterator it = OpaqueDefs.find(idref);
if (it != OpaqueDefs.end())
set_Selection(*it);
else
UnresolvedWithContext::add(this, idref, 2);
!!!206594.cpp!!! setInState(in s : string) : void
if (FromBouml && (s.left(8) != "BOUML_0x"))
set_InState(s);
else {
QMap<QCString, UmlItem *>::Iterator it = All.find(s);
if (it != All.end()) {
if ((*it)->kind() == aState)
set_InState((*it)->name());
}
else
UnresolvedWithContext::add(this, s, 1);
}
!!!209410.cpp!!! importMultiplicity(inout in : FileIn, inout token : Token, in upper : bool) : void
QCString s = token.valueOf("value");
if (!s.isEmpty() &&
(s != "Unspecified")) { // VP
QCString m = multiplicity();
if (m.isEmpty())
m = s;
else if (m != s) {
if (upper)
m += ".." + s;
else
m = s + ".." + m;
}
set_Multiplicity(m);
}
if (! token.closed())
in.finish(token.what());
!!!208130.cpp!!! import_it(inout in : FileIn, inout token : Token) : void
if (token.valueOf("iscontroltype") == "true")
set_IsControlType(TRUE);
QCString s;
if (!(s = token.valueOf("ordering")).isEmpty())
setOrdering(s, in);
if (!(s = token.valueOf("selection")).isEmpty())
setSelection(s);
if (!(s = token.valueOf("instate")).isEmpty())
setInState(s);
if (!(s = token.valueOf("type")).isEmpty())
setType(s);
if (! token.closed()) {
QCString k = token.what();
const char * kstr = k;
while (in.read(), !token.close(kstr)) {
s = token.what();
if (s == "selection") {
setSelection(token.xmiIdref());
if (! token.closed())
in.finish(s);
}
else if (s == "instate") {
setInState(token.xmiIdref());
if (! token.closed())
in.finish(s);
}
else if (s == "type") {
setType(token);
if (! token.closed())
in.finish(s);
}
else if (s == "lowervalue")
importMultiplicity(in, token, FALSE);
else if (s == "uppervalue")
importMultiplicity(in, token, TRUE);
else if (s == "upperbound") {
if (! token.closed())
in.finish(s);
}
else
UmlItem::import(in, token);
}
}
!!!210818.cpp!!! solve(in context : int, in idref : string) : void
switch (context) {
case 0:
// type
{
UmlTypeSpec ts;
if (getType(idref, ts))
set_Type(ts);
else if (!FileIn::isBypassedId(idref))
UmlCom::trace("activity object : unknown type reference '" + idref + "'<br>");
}
break;
case 1:
// state
{
QMap<QCString, UmlItem *>::Iterator it = All.find(idref);
if (it != All.end()) {
if ((*it)->kind() == aState)
set_InState((*it)->name());
}
else if (!FileIn::isBypassedId(idref))
UmlCom::trace("activity object : unknown state reference '" + idref + "'<br>");
}
break;
default:
// selection
{
QMap<QCString, QCString>::Iterator it = OpaqueDefs.find(idref);
if (it != OpaqueDefs.end())
set_Selection(*it);
else if (!FileIn::isBypassedId(idref))
UmlCom::trace("activity object : unknown opaque definition reference '" + idref + "'<br>");
}
break;
}
|