| 1 |
/* File: draw_relationship_label.inl; Copyright and License: see below */ |
| 2 |
|
| 3 |
#include "u8/u8_log.h" |
| 4 |
#include <assert.h> |
| 5 |
|
| 6 |
static inline char const * draw_relationship_label_private_stereotype_from_type( const draw_relationship_label_t *this_, |
| 7 |
data_relationship_type_t rel_type ) |
| 8 |
{ |
| 9 |
char const * result = ""; |
| 10 |
switch ( rel_type ) |
| 11 |
{ |
| 12 |
case DATA_RELATIONSHIP_TYPE_UML_EXTEND: |
| 13 |
{ |
| 14 |
result = "extends"; |
| 15 |
} |
| 16 |
break; |
| 17 |
|
| 18 |
case DATA_RELATIONSHIP_TYPE_UML_INCLUDE: |
| 19 |
{ |
| 20 |
result = "includes"; |
| 21 |
} |
| 22 |
break; |
| 23 |
|
| 24 |
case DATA_RELATIONSHIP_TYPE_UML_DEPLOY: |
| 25 |
{ |
| 26 |
result = "deploy"; |
| 27 |
} |
| 28 |
break; |
| 29 |
|
| 30 |
case DATA_RELATIONSHIP_TYPE_UML_MANIFEST: |
| 31 |
{ |
| 32 |
result = "manifest"; |
| 33 |
} |
| 34 |
break; |
| 35 |
|
| 36 |
case DATA_RELATIONSHIP_TYPE_UML_REFINE: |
| 37 |
{ |
| 38 |
result = "refine"; |
| 39 |
} |
| 40 |
break; |
| 41 |
|
| 42 |
case DATA_RELATIONSHIP_TYPE_UML_TRACE: |
| 43 |
{ |
| 44 |
result = "trace"; |
| 45 |
} |
| 46 |
break; |
| 47 |
|
| 48 |
default: |
| 49 |
{ |
| 50 |
/* other types do not show a stereotype label */ |
| 51 |
result = ""; |
| 52 |
} |
| 53 |
break; |
| 54 |
} |
| 55 |
return result; |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
/* |
| 60 |
Copyright 2019-2026 Andreas Warnke |
| 61 |
|
| 62 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 63 |
you may not use this file except in compliance with the License. |
| 64 |
You may obtain a copy of the License at |
| 65 |
|
| 66 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 67 |
|
| 68 |
Unless required by applicable law or agreed to in writing, software |
| 69 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 70 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 71 |
See the License for the specific language governing permissions and |
| 72 |
limitations under the License. |
| 73 |
*/ |