/usr/lib/bouml/xmi2import/9729.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 | class UmlUseCase
!!!193282.cpp!!! container(in kind : anItemKind, in token : Token, inout in : FileIn) : UmlItem
switch (kind) {
case aClass:
case aClassInstance:
case anUseCase:
case aState:
case anActivity:
return this;
default:
return parent()->container(kind, token, in);
}
!!!218498.cpp!!! solve(in context : int, in idref : string) : void
QMap<QCString, UmlItem *>::Iterator it = All.find(idref);
if (it == All.end()) {
if (!FileIn::isBypassedId(idref))
UmlCom::trace("extend/include : unknown use case reference '" + idref + "'<br>");
}
else if ((*it)->kind() != anUseCase)
UmlCom::trace("'" + idref + "' is not a use case<br>");
else {
UmlItem * rel = UmlNcRelation::create(aDependency, this, *it);
if (rel == 0)
UmlCom::trace("cannot create dependency from '" + name() + "' to '" + (*it)->name() + "'");
else
rel->set_Stereotype((context) ? "extend" : "include ");
}
!!!193666.cpp!!! init() : void
declareFct("ownedmember", "uml:UseCase", &importIt);
declareFct("ownedusecase", "uml:UseCase", &importIt);
declareFct("packagedelement", "uml:UseCase", &importIt);
declareFct("extend", "uml:Extend", &importExtendInclude);
declareFct("include", "uml:Include", &importExtendInclude);
declareFct("extensionpoint", "uml:ExtensionPoint", &importExtensionPoint);
!!!195970.cpp!!! importIt(inout in : FileIn, inout token : Token, inout where : UmlItem) : void
where = where->container(anUseCase, token, in);
if (where != 0) {
QCString s = token.valueOf("name");
if (s.isEmpty()) {
static unsigned n = 0;
s.sprintf("anonymous_usecase_%u", ++n);
}
UmlUseCase * uc = create(where, s);
if (uc == 0)
in.error("cannot create use case '" + s +
"' in '" + where->name() + "'");
uc->addItem(token.xmiId(), in);
if (! token.closed()) {
QCString k = token.what();
const char * kstr = k;
while (in.read(), !token.close(kstr))
uc->UmlItem::import(in, token);
}
uc->unload(TRUE, FALSE);
}
!!!218370.cpp!!! importExtendInclude(inout in : FileIn, inout token : Token, inout where : UmlItem) : void
if (where->kind() == anUseCase) {
bool extend = (token.what() == "extend");
QCString other = token.valueOf((extend) ? "extendedcase" : "addition");
if (other.isEmpty())
in.warning((extend) ? "extendedCase is missing" : "addition is missing");
else {
QMap<QCString, UmlItem *>::Iterator it = All.find(other);
if (it != All.end())
where->solve(extend, other);
else
UnresolvedWithContext::add(where, other, extend);
}
}
if (! token.closed())
in.finish(token.what());
!!!129156.cpp!!! importExtensionPoint(inout in : FileIn, inout token : Token, inout where : UmlItem) : void
if (where->kind() == anUseCase) {
QCString ep = token.valueOf("name");
if (!ep.isEmpty()) {
QCString eps = ((UmlUseCase *) where)->extensionPoints();
if (! eps.isEmpty())
eps += "\n" + ep;
else
eps = ep;
((UmlUseCase *) where)->set_ExtensionPoints(eps);
}
}
if (! token.closed())
in.finish(token.what());
|