Fix reset of properties with default value
[qt:qtmodeling.git] / src / uml / qobjects / qumlobjectflowobject.cpp
1 /****************************************************************************
2 **
3 ** Copyright (C) 2013 Sandro S. Andrade <sandroandrade@kde.org>
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtUml module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.  For licensing terms and
14 ** conditions see http://qt.digia.com/licensing.  For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file.  Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights.  These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file.  Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 #include "qumlobjectflowobject_p.h"
42 #include "private/qmodelingobject_p.h"
43
44 #include <QtUml/QUmlObjectFlow>
45 #include <QtUml/QUmlActivity>
46 #include <QtUml/QUmlActivityEdge>
47 #include <QtUml/QUmlActivityGroup>
48 #include <QtUml/QUmlActivityNode>
49 #include <QtUml/QUmlActivityPartition>
50 #include <QtUml/QUmlBehavior>
51 #include <QtUml/QUmlClassifier>
52 #include <QtUml/QUmlComment>
53 #include <QtUml/QUmlDependency>
54 #include <QtUml/QUmlElement>
55 #include <QtUml/QUmlInterruptibleActivityRegion>
56 #include <QtUml/QUmlNamedElement>
57 #include <QtUml/QUmlNamespace>
58 #include <QtUml/QUmlPackage>
59 #include <QtUml/QUmlRedefinableElement>
60 #include <QtUml/QUmlStringExpression>
61 #include <QtUml/QUmlStructuredActivityNode>
62 #include <QtUml/QUmlValueSpecification>
63
64 QT_BEGIN_NAMESPACE
65
66 QUmlObjectFlowObject::QUmlObjectFlowObject(QUmlObjectFlow *modelingElement)
67 {
68     setProperty("modelingElement", QVariant::fromValue(static_cast<QModelingElement *>(modelingElement)));
69     setGroupProperties();
70     setPropertyData();
71 }
72
73 // OWNED ATTRIBUTES [Element]
74
75 const QSet<QObject *> QUmlObjectFlowObject::ownedComments() const
76 {
77     QSet<QObject *> set;
78     foreach (QUmlComment *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->ownedComments())
79         set.insert(element->asQModelingObject());
80     return set;
81 }
82
83 const QSet<QObject *> QUmlObjectFlowObject::ownedElements() const
84 {
85     QSet<QObject *> set;
86     foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->ownedElements())
87         set.insert(element->asQModelingObject());
88     return set;
89 }
90
91 QObject *QUmlObjectFlowObject::owner() const
92 {
93     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->owner())
94         return 0;
95     else
96         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->owner()->asQModelingObject();
97 }
98
99 // OWNED ATTRIBUTES [NamedElement]
100
101 const QSet<QObject *> QUmlObjectFlowObject::clientDependencies() const
102 {
103     QSet<QObject *> set;
104     foreach (QUmlDependency *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->clientDependencies())
105         set.insert(element->asQModelingObject());
106     return set;
107 }
108
109 QString QUmlObjectFlowObject::name() const
110 {
111     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->name();
112 }
113
114 QObject *QUmlObjectFlowObject::nameExpression() const
115 {
116     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->nameExpression())
117         return 0;
118     else
119         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->nameExpression()->asQModelingObject();
120 }
121
122 QObject *QUmlObjectFlowObject::namespace_() const
123 {
124     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->namespace_())
125         return 0;
126     else
127         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->namespace_()->asQModelingObject();
128 }
129
130 QString QUmlObjectFlowObject::qualifiedName() const
131 {
132     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->qualifiedName();
133 }
134
135 QtUml::VisibilityKind QUmlObjectFlowObject::visibility() const
136 {
137     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->visibility();
138 }
139
140 // OWNED ATTRIBUTES [RedefinableElement]
141
142 bool QUmlObjectFlowObject::isLeaf() const
143 {
144     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->isLeaf();
145 }
146
147 const QSet<QObject *> QUmlObjectFlowObject::redefinedElements() const
148 {
149     QSet<QObject *> set;
150     foreach (QUmlRedefinableElement *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->redefinedElements())
151         set.insert(element->asQModelingObject());
152     return set;
153 }
154
155 const QSet<QObject *> QUmlObjectFlowObject::redefinitionContexts() const
156 {
157     QSet<QObject *> set;
158     foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->redefinitionContexts())
159         set.insert(element->asQModelingObject());
160     return set;
161 }
162
163 // OWNED ATTRIBUTES [ActivityEdge]
164
165 QObject *QUmlObjectFlowObject::activity() const
166 {
167     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->activity())
168         return 0;
169     else
170         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->activity()->asQModelingObject();
171 }
172
173 QObject *QUmlObjectFlowObject::guard() const
174 {
175     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->guard())
176         return 0;
177     else
178         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->guard()->asQModelingObject();
179 }
180
181 const QSet<QObject *> QUmlObjectFlowObject::inGroups() const
182 {
183     QSet<QObject *> set;
184     foreach (QUmlActivityGroup *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->inGroups())
185         set.insert(element->asQModelingObject());
186     return set;
187 }
188
189 const QSet<QObject *> QUmlObjectFlowObject::inPartitions() const
190 {
191     QSet<QObject *> set;
192     foreach (QUmlActivityPartition *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->inPartitions())
193         set.insert(element->asQModelingObject());
194     return set;
195 }
196
197 QObject *QUmlObjectFlowObject::inStructuredNode() const
198 {
199     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->inStructuredNode())
200         return 0;
201     else
202         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->inStructuredNode()->asQModelingObject();
203 }
204
205 QObject *QUmlObjectFlowObject::interrupts() const
206 {
207     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->interrupts())
208         return 0;
209     else
210         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->interrupts()->asQModelingObject();
211 }
212
213 const QSet<QObject *> QUmlObjectFlowObject::redefinedEdges() const
214 {
215     QSet<QObject *> set;
216     foreach (QUmlActivityEdge *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->redefinedEdges())
217         set.insert(element->asQModelingObject());
218     return set;
219 }
220
221 QObject *QUmlObjectFlowObject::source() const
222 {
223     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->source())
224         return 0;
225     else
226         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->source()->asQModelingObject();
227 }
228
229 QObject *QUmlObjectFlowObject::target() const
230 {
231     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->target())
232         return 0;
233     else
234         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->target()->asQModelingObject();
235 }
236
237 QObject *QUmlObjectFlowObject::weight() const
238 {
239     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->weight())
240         return 0;
241     else
242         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->weight()->asQModelingObject();
243 }
244
245 // OWNED ATTRIBUTES [ObjectFlow]
246
247 bool QUmlObjectFlowObject::isMulticast() const
248 {
249     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->isMulticast();
250 }
251
252 bool QUmlObjectFlowObject::isMultireceive() const
253 {
254     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->isMultireceive();
255 }
256
257 QObject *QUmlObjectFlowObject::selection() const
258 {
259     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->selection())
260         return 0;
261     else
262         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->selection()->asQModelingObject();
263 }
264
265 QObject *QUmlObjectFlowObject::transformation() const
266 {
267     if (!qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->transformation())
268         return 0;
269     else
270         return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->transformation()->asQModelingObject();
271 }
272
273 // OPERATIONS [Element]
274
275 QSet<QObject *> QUmlObjectFlowObject::allOwnedElements() const
276 {
277     QSet<QObject *> set;
278     foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->allOwnedElements())
279         set.insert(element->asQModelingObject());
280     return set;
281 }
282
283 bool QUmlObjectFlowObject::mustBeOwned() const
284 {
285     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->mustBeOwned();
286 }
287
288 // OPERATIONS [NamedElement]
289
290 QList<QObject *> QUmlObjectFlowObject::allNamespaces() const
291 {
292     QList<QObject *> set;
293     foreach (QUmlNamespace *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->allNamespaces())
294         set.append(element->asQModelingObject());
295     return set;
296 }
297
298 QSet<QObject *> QUmlObjectFlowObject::allOwningPackages() const
299 {
300     QSet<QObject *> set;
301     foreach (QUmlPackage *element, qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->allOwningPackages())
302         set.insert(element->asQModelingObject());
303     return set;
304 }
305
306 bool QUmlObjectFlowObject::isDistinguishableFrom(QObject *n, QObject *ns) const
307 {
308     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->isDistinguishableFrom(qmodelingelementproperty_cast<QUmlNamedElement *>(n), qmodelingelementproperty_cast<QUmlNamespace *>(ns));
309 }
310
311 QString QUmlObjectFlowObject::separator() const
312 {
313     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->separator();
314 }
315
316 // OPERATIONS [RedefinableElement]
317
318 bool QUmlObjectFlowObject::isConsistentWith(QObject *redefinee) const
319 {
320     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->isConsistentWith(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinee));
321 }
322
323 bool QUmlObjectFlowObject::isRedefinitionContextValid(QObject *redefined) const
324 {
325     return qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->isRedefinitionContextValid(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefined));
326 }
327
328 // SLOTS FOR OWNED ATTRIBUTES [Element]
329
330 void QUmlObjectFlowObject::addOwnedComment(QObject *ownedComment)
331 {
332     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->addOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment));
333 }
334
335 void QUmlObjectFlowObject::removeOwnedComment(QObject *ownedComment)
336 {
337     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->removeOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment));
338 }
339
340 void QUmlObjectFlowObject::addOwnedElement(QObject *ownedElement)
341 {
342     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->addOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement));
343 }
344
345 void QUmlObjectFlowObject::removeOwnedElement(QObject *ownedElement)
346 {
347     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->removeOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement));
348 }
349
350 void QUmlObjectFlowObject::setOwner(QObject *owner)
351 {
352     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setOwner(qmodelingelementproperty_cast<QUmlElement *>(owner));
353 }
354
355 // SLOTS FOR OWNED ATTRIBUTES [NamedElement]
356
357 void QUmlObjectFlowObject::addClientDependency(QObject *clientDependency)
358 {
359     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->addClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency));
360 }
361
362 void QUmlObjectFlowObject::removeClientDependency(QObject *clientDependency)
363 {
364     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->removeClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency));
365 }
366
367 void QUmlObjectFlowObject::setName(QString name)
368 {
369     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setName(name);
370 }
371
372 void QUmlObjectFlowObject::setNameExpression(QObject *nameExpression)
373 {
374     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setNameExpression(qmodelingelementproperty_cast<QUmlStringExpression *>(nameExpression));
375 }
376
377 void QUmlObjectFlowObject::setNamespace(QObject *namespace_)
378 {
379     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setNamespace(qmodelingelementproperty_cast<QUmlNamespace *>(namespace_));
380 }
381
382 void QUmlObjectFlowObject::setQualifiedName(QString qualifiedName)
383 {
384     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setQualifiedName(qualifiedName);
385 }
386
387 void QUmlObjectFlowObject::setVisibility(QtUml::VisibilityKind visibility)
388 {
389     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setVisibility(visibility);
390 }
391
392 // SLOTS FOR OWNED ATTRIBUTES [RedefinableElement]
393
394 void QUmlObjectFlowObject::setLeaf(bool isLeaf)
395 {
396     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setLeaf(isLeaf);
397 }
398
399 void QUmlObjectFlowObject::unsetLeaf()
400 {
401     Q_D(QModelingObject);
402     setLeaf(false);
403     d->modifiedResettableProperties.removeAll(QStringLiteral("leaf"));
404 }
405
406 void QUmlObjectFlowObject::addRedefinedElement(QObject *redefinedElement)
407 {
408     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->addRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement));
409 }
410
411 void QUmlObjectFlowObject::removeRedefinedElement(QObject *redefinedElement)
412 {
413     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->removeRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement));
414 }
415
416 void QUmlObjectFlowObject::addRedefinitionContext(QObject *redefinitionContext)
417 {
418     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->addRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext));
419 }
420
421 void QUmlObjectFlowObject::removeRedefinitionContext(QObject *redefinitionContext)
422 {
423     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->removeRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext));
424 }
425
426 // SLOTS FOR OWNED ATTRIBUTES [ActivityEdge]
427
428 void QUmlObjectFlowObject::setActivity(QObject *activity)
429 {
430     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setActivity(qmodelingelementproperty_cast<QUmlActivity *>(activity));
431 }
432
433 void QUmlObjectFlowObject::setGuard(QObject *guard)
434 {
435     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setGuard(qmodelingelementproperty_cast<QUmlValueSpecification *>(guard));
436 }
437
438 void QUmlObjectFlowObject::addInGroup(QObject *inGroup)
439 {
440     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->addInGroup(qmodelingelementproperty_cast<QUmlActivityGroup *>(inGroup));
441 }
442
443 void QUmlObjectFlowObject::removeInGroup(QObject *inGroup)
444 {
445     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->removeInGroup(qmodelingelementproperty_cast<QUmlActivityGroup *>(inGroup));
446 }
447
448 void QUmlObjectFlowObject::addInPartition(QObject *inPartition)
449 {
450     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->addInPartition(qmodelingelementproperty_cast<QUmlActivityPartition *>(inPartition));
451 }
452
453 void QUmlObjectFlowObject::removeInPartition(QObject *inPartition)
454 {
455     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->removeInPartition(qmodelingelementproperty_cast<QUmlActivityPartition *>(inPartition));
456 }
457
458 void QUmlObjectFlowObject::setInStructuredNode(QObject *inStructuredNode)
459 {
460     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setInStructuredNode(qmodelingelementproperty_cast<QUmlStructuredActivityNode *>(inStructuredNode));
461 }
462
463 void QUmlObjectFlowObject::setInterrupts(QObject *interrupts)
464 {
465     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setInterrupts(qmodelingelementproperty_cast<QUmlInterruptibleActivityRegion *>(interrupts));
466 }
467
468 void QUmlObjectFlowObject::addRedefinedEdge(QObject *redefinedEdge)
469 {
470     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->addRedefinedEdge(qmodelingelementproperty_cast<QUmlActivityEdge *>(redefinedEdge));
471 }
472
473 void QUmlObjectFlowObject::removeRedefinedEdge(QObject *redefinedEdge)
474 {
475     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->removeRedefinedEdge(qmodelingelementproperty_cast<QUmlActivityEdge *>(redefinedEdge));
476 }
477
478 void QUmlObjectFlowObject::setSource(QObject *source)
479 {
480     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setSource(qmodelingelementproperty_cast<QUmlActivityNode *>(source));
481 }
482
483 void QUmlObjectFlowObject::setTarget(QObject *target)
484 {
485     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setTarget(qmodelingelementproperty_cast<QUmlActivityNode *>(target));
486 }
487
488 void QUmlObjectFlowObject::setWeight(QObject *weight)
489 {
490     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setWeight(qmodelingelementproperty_cast<QUmlValueSpecification *>(weight));
491 }
492
493 // SLOTS FOR OWNED ATTRIBUTES [ObjectFlow]
494
495 void QUmlObjectFlowObject::setMulticast(bool isMulticast)
496 {
497     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setMulticast(isMulticast);
498 }
499
500 void QUmlObjectFlowObject::unsetMulticast()
501 {
502     Q_D(QModelingObject);
503     setMulticast(false);
504     d->modifiedResettableProperties.removeAll(QStringLiteral("multicast"));
505 }
506
507 void QUmlObjectFlowObject::setMultireceive(bool isMultireceive)
508 {
509     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setMultireceive(isMultireceive);
510 }
511
512 void QUmlObjectFlowObject::unsetMultireceive()
513 {
514     Q_D(QModelingObject);
515     setMultireceive(false);
516     d->modifiedResettableProperties.removeAll(QStringLiteral("multireceive"));
517 }
518
519 void QUmlObjectFlowObject::setSelection(QObject *selection)
520 {
521     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setSelection(qmodelingelementproperty_cast<QUmlBehavior *>(selection));
522 }
523
524 void QUmlObjectFlowObject::setTransformation(QObject *transformation)
525 {
526     qmodelingelementproperty_cast<QUmlObjectFlow *>(this)->setTransformation(qmodelingelementproperty_cast<QUmlBehavior *>(transformation));
527 }
528
529
530 void QUmlObjectFlowObject::setGroupProperties()
531 {
532     Q_D(QModelingObject);
533     const QMetaObject *metaObject = this->metaObject();
534
535     d->propertyGroups << QStringLiteral("QObject");
536     d->groupProperties.insert(QStringLiteral("QObject"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("objectName"))));
537
538     d->propertyGroups << QStringLiteral("QUmlElement");
539     d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedComments"))));
540     d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedElements"))));
541     d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("owner"))));
542
543     d->propertyGroups << QStringLiteral("QUmlNamedElement");
544     d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("clientDependencies"))));
545     d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("name"))));
546     d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("nameExpression"))));
547     d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("namespace_"))));
548     d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("qualifiedName"))));
549     d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("visibility"))));
550
551     d->propertyGroups << QStringLiteral("QUmlRedefinableElement");
552     d->groupProperties.insert(QStringLiteral("QUmlRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isLeaf"))));
553     d->groupProperties.insert(QStringLiteral("QUmlRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedElements"))));
554     d->groupProperties.insert(QStringLiteral("QUmlRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinitionContexts"))));
555
556     d->propertyGroups << QStringLiteral("QUmlActivityEdge");
557     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("activity"))));
558     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("guard"))));
559     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inGroups"))));
560     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inPartitions"))));
561     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inStructuredNode"))));
562     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("interrupts"))));
563     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedEdges"))));
564     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("source"))));
565     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("target"))));
566     d->groupProperties.insert(QStringLiteral("QUmlActivityEdge"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("weight"))));
567
568     d->propertyGroups << QStringLiteral("QUmlObjectFlow");
569     d->groupProperties.insert(QStringLiteral("QUmlObjectFlow"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isMulticast"))));
570     d->groupProperties.insert(QStringLiteral("QUmlObjectFlow"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isMultireceive"))));
571     d->groupProperties.insert(QStringLiteral("QUmlObjectFlow"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("selection"))));
572     d->groupProperties.insert(QStringLiteral("QUmlObjectFlow"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("transformation"))));
573 }
574
575 void QUmlObjectFlowObject::setPropertyData()
576 {
577     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedComments, AggregationRole, QStringLiteral("composite"));
578     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedComments, PropertyClassRole, QStringLiteral("QUmlElement"));
579     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedComments, IsDerivedRole, false);
580     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedComments, IsDerivedUnionRole, false);
581     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedComments, DocumentationRole, QStringLiteral("The Comments owned by this element."));
582     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedComments, RedefinedPropertiesRole, QStringLiteral(""));
583     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedComments, SubsettedPropertiesRole, QStringLiteral("Element-ownedElement"));
584     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedComments, OppositeEndRole, QStringLiteral(""));
585
586     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedElements, AggregationRole, QStringLiteral("composite"));
587     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedElements, PropertyClassRole, QStringLiteral("QUmlElement"));
588     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedElements, IsDerivedRole, true);
589     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedElements, IsDerivedUnionRole, true);
590     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedElements, DocumentationRole, QStringLiteral("The Elements owned by this element."));
591     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedElements, RedefinedPropertiesRole, QStringLiteral(""));
592     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedElements, SubsettedPropertiesRole, QStringLiteral(""));
593     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, ownedElements, OppositeEndRole, QStringLiteral("Element-owner"));
594
595     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, owner, AggregationRole, QStringLiteral("none"));
596     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, owner, PropertyClassRole, QStringLiteral("QUmlElement"));
597     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, owner, IsDerivedRole, true);
598     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, owner, IsDerivedUnionRole, true);
599     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, owner, DocumentationRole, QStringLiteral("The Element that owns this element."));
600     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, owner, RedefinedPropertiesRole, QStringLiteral(""));
601     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, owner, SubsettedPropertiesRole, QStringLiteral(""));
602     Q_DECLARE_METAPROPERTY_INFO(QUmlElement, owner, OppositeEndRole, QStringLiteral("Element-ownedElement"));
603
604     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, clientDependencies, AggregationRole, QStringLiteral("none"));
605     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, clientDependencies, PropertyClassRole, QStringLiteral("QUmlNamedElement"));
606     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, clientDependencies, IsDerivedRole, false);
607     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, clientDependencies, IsDerivedUnionRole, false);
608     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, clientDependencies, DocumentationRole, QStringLiteral("Indicates the dependencies that reference the client."));
609     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, clientDependencies, RedefinedPropertiesRole, QStringLiteral(""));
610     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, clientDependencies, SubsettedPropertiesRole, QStringLiteral("A_source_directedRelationship-directedRelationship"));
611     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, clientDependencies, OppositeEndRole, QStringLiteral("Dependency-client"));
612
613     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, name, AggregationRole, QStringLiteral("none"));
614     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, name, PropertyClassRole, QStringLiteral("QUmlNamedElement"));
615     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, name, IsDerivedRole, false);
616     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, name, IsDerivedUnionRole, false);
617     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, name, DocumentationRole, QStringLiteral("The name of the NamedElement."));
618     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, name, RedefinedPropertiesRole, QStringLiteral(""));
619     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, name, SubsettedPropertiesRole, QStringLiteral(""));
620     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, name, OppositeEndRole, QStringLiteral(""));
621
622     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, nameExpression, AggregationRole, QStringLiteral("composite"));
623     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, nameExpression, PropertyClassRole, QStringLiteral("QUmlNamedElement"));
624     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, nameExpression, IsDerivedRole, false);
625     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, nameExpression, IsDerivedUnionRole, false);
626     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, nameExpression, DocumentationRole, QStringLiteral("The string expression used to define the name of this named element."));
627     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, nameExpression, RedefinedPropertiesRole, QStringLiteral(""));
628     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, nameExpression, SubsettedPropertiesRole, QStringLiteral("Element-ownedElement"));
629     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, nameExpression, OppositeEndRole, QStringLiteral(""));
630
631     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, namespace_, AggregationRole, QStringLiteral("none"));
632     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, namespace_, PropertyClassRole, QStringLiteral("QUmlNamedElement"));
633     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, namespace_, IsDerivedRole, true);
634     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, namespace_, IsDerivedUnionRole, true);
635     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, namespace_, DocumentationRole, QStringLiteral("Specifies the namespace that owns the NamedElement."));
636     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, namespace_, RedefinedPropertiesRole, QStringLiteral(""));
637     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, namespace_, SubsettedPropertiesRole, QStringLiteral("A_member_memberNamespace-memberNamespace Element-owner"));
638     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, namespace_, OppositeEndRole, QStringLiteral("Namespace-ownedMember"));
639
640     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, qualifiedName, AggregationRole, QStringLiteral("none"));
641     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, qualifiedName, PropertyClassRole, QStringLiteral("QUmlNamedElement"));
642     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, qualifiedName, IsDerivedRole, true);
643     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, qualifiedName, IsDerivedUnionRole, false);
644     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, qualifiedName, DocumentationRole, QStringLiteral("A name which allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself."));
645     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, qualifiedName, RedefinedPropertiesRole, QStringLiteral(""));
646     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, qualifiedName, SubsettedPropertiesRole, QStringLiteral(""));
647     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, qualifiedName, OppositeEndRole, QStringLiteral(""));
648
649     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, visibility, AggregationRole, QStringLiteral("none"));
650     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, visibility, PropertyClassRole, QStringLiteral("QUmlNamedElement"));
651     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, visibility, IsDerivedRole, false);
652     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, visibility, IsDerivedUnionRole, false);
653     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, visibility, DocumentationRole, QStringLiteral("Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility."));
654     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, visibility, RedefinedPropertiesRole, QStringLiteral(""));
655     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, visibility, SubsettedPropertiesRole, QStringLiteral(""));
656     Q_DECLARE_METAPROPERTY_INFO(QUmlNamedElement, visibility, OppositeEndRole, QStringLiteral(""));
657
658     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, isLeaf, AggregationRole, QStringLiteral("none"));
659     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, isLeaf, PropertyClassRole, QStringLiteral("QUmlRedefinableElement"));
660     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, isLeaf, IsDerivedRole, false);
661     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, isLeaf, IsDerivedUnionRole, false);
662     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, isLeaf, DocumentationRole, QStringLiteral("Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement. Note that this property is preserved through package merge operations; that is, the capability to redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in the resulting RedefinableElement of a package merge operation where a RedefinableElement with isLeaf=false is merged with a matching RedefinableElement with isLeaf=true: the resulting RedefinableElement will have isLeaf=false. Default value is false."));
663     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, isLeaf, RedefinedPropertiesRole, QStringLiteral(""));
664     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, isLeaf, SubsettedPropertiesRole, QStringLiteral(""));
665     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, isLeaf, OppositeEndRole, QStringLiteral(""));
666
667     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinedElements, AggregationRole, QStringLiteral("none"));
668     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinedElements, PropertyClassRole, QStringLiteral("QUmlRedefinableElement"));
669     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinedElements, IsDerivedRole, true);
670     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinedElements, IsDerivedUnionRole, true);
671     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinedElements, DocumentationRole, QStringLiteral("The redefinable element that is being redefined by this element."));
672     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinedElements, RedefinedPropertiesRole, QStringLiteral(""));
673     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinedElements, SubsettedPropertiesRole, QStringLiteral(""));
674     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinedElements, OppositeEndRole, QStringLiteral(""));
675
676     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinitionContexts, AggregationRole, QStringLiteral("none"));
677     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinitionContexts, PropertyClassRole, QStringLiteral("QUmlRedefinableElement"));
678     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinitionContexts, IsDerivedRole, true);
679     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinitionContexts, IsDerivedUnionRole, true);
680     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinitionContexts, DocumentationRole, QStringLiteral("References the contexts that this element may be redefined from."));
681     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinitionContexts, RedefinedPropertiesRole, QStringLiteral(""));
682     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinitionContexts, SubsettedPropertiesRole, QStringLiteral(""));
683     Q_DECLARE_METAPROPERTY_INFO(QUmlRedefinableElement, redefinitionContexts, OppositeEndRole, QStringLiteral(""));
684
685     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, activity, AggregationRole, QStringLiteral("none"));
686     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, activity, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
687     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, activity, IsDerivedRole, false);
688     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, activity, IsDerivedUnionRole, false);
689     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, activity, DocumentationRole, QStringLiteral("Activity containing the edge."));
690     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, activity, RedefinedPropertiesRole, QStringLiteral(""));
691     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, activity, SubsettedPropertiesRole, QStringLiteral("Element-owner"));
692     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, activity, OppositeEndRole, QStringLiteral("Activity-edge"));
693
694     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, guard, AggregationRole, QStringLiteral("composite"));
695     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, guard, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
696     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, guard, IsDerivedRole, false);
697     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, guard, IsDerivedUnionRole, false);
698     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, guard, DocumentationRole, QStringLiteral("Specification evaluated at runtime to determine if the edge can be traversed."));
699     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, guard, RedefinedPropertiesRole, QStringLiteral(""));
700     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, guard, SubsettedPropertiesRole, QStringLiteral("Element-ownedElement"));
701     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, guard, OppositeEndRole, QStringLiteral(""));
702
703     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inGroups, AggregationRole, QStringLiteral("none"));
704     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inGroups, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
705     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inGroups, IsDerivedRole, true);
706     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inGroups, IsDerivedUnionRole, true);
707     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inGroups, DocumentationRole, QStringLiteral("Groups containing the edge."));
708     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inGroups, RedefinedPropertiesRole, QStringLiteral(""));
709     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inGroups, SubsettedPropertiesRole, QStringLiteral(""));
710     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inGroups, OppositeEndRole, QStringLiteral("ActivityGroup-containedEdge"));
711
712     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inPartitions, AggregationRole, QStringLiteral("none"));
713     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inPartitions, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
714     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inPartitions, IsDerivedRole, false);
715     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inPartitions, IsDerivedUnionRole, false);
716     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inPartitions, DocumentationRole, QStringLiteral("Partitions containing the edge."));
717     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inPartitions, RedefinedPropertiesRole, QStringLiteral(""));
718     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inPartitions, SubsettedPropertiesRole, QStringLiteral("ActivityEdge-inGroup"));
719     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inPartitions, OppositeEndRole, QStringLiteral("ActivityPartition-edge"));
720
721     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inStructuredNode, AggregationRole, QStringLiteral("none"));
722     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inStructuredNode, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
723     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inStructuredNode, IsDerivedRole, false);
724     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inStructuredNode, IsDerivedUnionRole, false);
725     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inStructuredNode, DocumentationRole, QStringLiteral("Structured activity node containing the edge."));
726     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inStructuredNode, RedefinedPropertiesRole, QStringLiteral(""));
727     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inStructuredNode, SubsettedPropertiesRole, QStringLiteral("ActivityEdge-inGroup Element-owner"));
728     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, inStructuredNode, OppositeEndRole, QStringLiteral("StructuredActivityNode-edge"));
729
730     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, interrupts, AggregationRole, QStringLiteral("none"));
731     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, interrupts, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
732     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, interrupts, IsDerivedRole, false);
733     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, interrupts, IsDerivedUnionRole, false);
734     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, interrupts, DocumentationRole, QStringLiteral("Region that the edge can interrupt."));
735     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, interrupts, RedefinedPropertiesRole, QStringLiteral(""));
736     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, interrupts, SubsettedPropertiesRole, QStringLiteral(""));
737     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, interrupts, OppositeEndRole, QStringLiteral("InterruptibleActivityRegion-interruptingEdge"));
738
739     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, redefinedEdges, AggregationRole, QStringLiteral("none"));
740     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, redefinedEdges, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
741     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, redefinedEdges, IsDerivedRole, false);
742     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, redefinedEdges, IsDerivedUnionRole, false);
743     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, redefinedEdges, DocumentationRole, QStringLiteral("Inherited edges replaced by this edge in a specialization of the activity."));
744     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, redefinedEdges, RedefinedPropertiesRole, QStringLiteral(""));
745     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, redefinedEdges, SubsettedPropertiesRole, QStringLiteral("RedefinableElement-redefinedElement"));
746     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, redefinedEdges, OppositeEndRole, QStringLiteral(""));
747
748     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, source, AggregationRole, QStringLiteral("none"));
749     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, source, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
750     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, source, IsDerivedRole, false);
751     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, source, IsDerivedUnionRole, false);
752     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, source, DocumentationRole, QStringLiteral("Node from which tokens are taken when they traverse the edge."));
753     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, source, RedefinedPropertiesRole, QStringLiteral(""));
754     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, source, SubsettedPropertiesRole, QStringLiteral(""));
755     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, source, OppositeEndRole, QStringLiteral("ActivityNode-outgoing"));
756
757     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, target, AggregationRole, QStringLiteral("none"));
758     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, target, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
759     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, target, IsDerivedRole, false);
760     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, target, IsDerivedUnionRole, false);
761     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, target, DocumentationRole, QStringLiteral("Node to which tokens are put when they traverse the edge."));
762     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, target, RedefinedPropertiesRole, QStringLiteral(""));
763     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, target, SubsettedPropertiesRole, QStringLiteral(""));
764     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, target, OppositeEndRole, QStringLiteral("ActivityNode-incoming"));
765
766     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, weight, AggregationRole, QStringLiteral("composite"));
767     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, weight, PropertyClassRole, QStringLiteral("QUmlActivityEdge"));
768     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, weight, IsDerivedRole, false);
769     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, weight, IsDerivedUnionRole, false);
770     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, weight, DocumentationRole, QStringLiteral("The minimum number of tokens that must traverse the edge at the same time."));
771     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, weight, RedefinedPropertiesRole, QStringLiteral(""));
772     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, weight, SubsettedPropertiesRole, QStringLiteral("Element-ownedElement"));
773     Q_DECLARE_METAPROPERTY_INFO(QUmlActivityEdge, weight, OppositeEndRole, QStringLiteral(""));
774
775     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMulticast, AggregationRole, QStringLiteral("none"));
776     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMulticast, PropertyClassRole, QStringLiteral("QUmlObjectFlow"));
777     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMulticast, IsDerivedRole, false);
778     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMulticast, IsDerivedUnionRole, false);
779     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMulticast, DocumentationRole, QStringLiteral("Tells whether the objects in the flow are passed by multicasting."));
780     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMulticast, RedefinedPropertiesRole, QStringLiteral(""));
781     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMulticast, SubsettedPropertiesRole, QStringLiteral(""));
782     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMulticast, OppositeEndRole, QStringLiteral(""));
783
784     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMultireceive, AggregationRole, QStringLiteral("none"));
785     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMultireceive, PropertyClassRole, QStringLiteral("QUmlObjectFlow"));
786     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMultireceive, IsDerivedRole, false);
787     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMultireceive, IsDerivedUnionRole, false);
788     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMultireceive, DocumentationRole, QStringLiteral("Tells whether the objects in the flow are gathered from respondents to multicasting."));
789     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMultireceive, RedefinedPropertiesRole, QStringLiteral(""));
790     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMultireceive, SubsettedPropertiesRole, QStringLiteral(""));
791     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, isMultireceive, OppositeEndRole, QStringLiteral(""));
792
793     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, selection, AggregationRole, QStringLiteral("none"));
794     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, selection, PropertyClassRole, QStringLiteral("QUmlObjectFlow"));
795     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, selection, IsDerivedRole, false);
796     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, selection, IsDerivedUnionRole, false);
797     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, selection, DocumentationRole, QStringLiteral("Selects tokens from a source object node."));
798     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, selection, RedefinedPropertiesRole, QStringLiteral(""));
799     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, selection, SubsettedPropertiesRole, QStringLiteral(""));
800     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, selection, OppositeEndRole, QStringLiteral(""));
801
802     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, transformation, AggregationRole, QStringLiteral("none"));
803     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, transformation, PropertyClassRole, QStringLiteral("QUmlObjectFlow"));
804     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, transformation, IsDerivedRole, false);
805     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, transformation, IsDerivedUnionRole, false);
806     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, transformation, DocumentationRole, QStringLiteral("Changes or replaces data tokens flowing along edge."));
807     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, transformation, RedefinedPropertiesRole, QStringLiteral(""));
808     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, transformation, SubsettedPropertiesRole, QStringLiteral(""));
809     Q_DECLARE_METAPROPERTY_INFO(QUmlObjectFlow, transformation, OppositeEndRole, QStringLiteral(""));
810
811 }
812
813 QT_END_NAMESPACE
814