diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-10-08 01:31:34 -0300 |
---|---|---|
committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-10-08 06:28:00 +0200 |
commit | 9c009dac6d5914c093db183e91f6d068a53c3f6e (patch) | |
tree | afd5a83cc2e87052a7787f41832d801a2623ff69 /src/uml/qumlprotocolconformance.cpp | |
parent | b453dca1261158461363076d3a312c22a51da3de (diff) |
XMI serialization ok
Change-Id: I912280c778217a093e0f088faecd3fc7ca9d5407
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlprotocolconformance.cpp')
-rw-r--r-- | src/uml/qumlprotocolconformance.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/uml/qumlprotocolconformance.cpp b/src/uml/qumlprotocolconformance.cpp index 1c03a3c8..f0693507 100644 --- a/src/uml/qumlprotocolconformance.cpp +++ b/src/uml/qumlprotocolconformance.cpp @@ -59,6 +59,7 @@ QUmlProtocolConformance::QUmlProtocolConformance(bool createQObject) : { if (createQObject) _qObject = new QUmlProtocolConformanceObject(this); + setClassForProperty(); setPropertyData(); } @@ -144,6 +145,18 @@ void QUmlProtocolConformance::setSpecificMachine(QUmlProtocolStateMachine *speci } } +void QUmlProtocolConformance::setClassForProperty() +{ + _classForProperty[QStringLiteral("ownedComments")] = QStringLiteral("QUmlElement"); + _classForProperty[QStringLiteral("ownedElements")] = QStringLiteral("QUmlElement"); + _classForProperty[QStringLiteral("owner")] = QStringLiteral("QUmlElement"); + _classForProperty[QStringLiteral("relatedElements")] = QStringLiteral("QUmlRelationship"); + _classForProperty[QStringLiteral("sources")] = QStringLiteral("QUmlDirectedRelationship"); + _classForProperty[QStringLiteral("targets")] = QStringLiteral("QUmlDirectedRelationship"); + _classForProperty[QStringLiteral("generalMachine")] = QStringLiteral("QUmlProtocolConformance"); + _classForProperty[QStringLiteral("specificMachine")] = QStringLiteral("QUmlProtocolConformance"); +} + void QUmlProtocolConformance::setPropertyData() { QModelingObject::propertyDataHash[QStringLiteral("QUmlProtocolConformance")][QStringLiteral("generalMachine")][QtModeling::AggregationRole] = QStringLiteral("none"); @@ -166,15 +179,3 @@ void QUmlProtocolConformance::setPropertyData() } -void QUmlProtocolConformance::setClassForProperty() -{ - _classForProperty[QStringLiteral("ownedComments")] = QStringLiteral("QUmlElement"); - _classForProperty[QStringLiteral("ownedElements")] = QStringLiteral("QUmlElement"); - _classForProperty[QStringLiteral("owner")] = QStringLiteral("QUmlElement"); - _classForProperty[QStringLiteral("relatedElements")] = QStringLiteral("QUmlRelationship"); - _classForProperty[QStringLiteral("sources")] = QStringLiteral("QUmlDirectedRelationship"); - _classForProperty[QStringLiteral("targets")] = QStringLiteral("QUmlDirectedRelationship"); - _classForProperty[QStringLiteral("generalMachine")] = QStringLiteral("QUmlProtocolConformance"); - _classForProperty[QStringLiteral("specificMachine")] = QStringLiteral("QUmlProtocolConformance"); -} - |