Line data Source code
1 : /* File: draw_relationship_label.inl; Copyright and License: see below */ 2 : 3 : #include "u8/u8_log.h" 4 : #include <assert.h> 5 : 6 0 : 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 0 : char const * result = ""; 10 0 : switch ( rel_type ) 11 : { 12 0 : case DATA_RELATIONSHIP_TYPE_UML_EXTEND: 13 : { 14 0 : result = "extends"; 15 : } 16 0 : break; 17 : 18 0 : case DATA_RELATIONSHIP_TYPE_UML_INCLUDE: 19 : { 20 0 : result = "includes"; 21 : } 22 0 : break; 23 : 24 0 : case DATA_RELATIONSHIP_TYPE_UML_DEPLOY: 25 : { 26 0 : result = "deploy"; 27 : } 28 0 : break; 29 : 30 0 : case DATA_RELATIONSHIP_TYPE_UML_MANIFEST: 31 : { 32 0 : result = "manifest"; 33 : } 34 0 : break; 35 : 36 0 : case DATA_RELATIONSHIP_TYPE_UML_REFINE: 37 : { 38 0 : result = "refine"; 39 : } 40 0 : break; 41 : 42 0 : case DATA_RELATIONSHIP_TYPE_UML_TRACE: 43 : { 44 0 : result = "trace"; 45 : } 46 0 : break; 47 : 48 0 : default: 49 : { 50 : /* other types do not show a stereotype label */ 51 0 : result = ""; 52 : } 53 0 : break; 54 : } 55 0 : return result; 56 : } 57 : 58 : 59 : /* 60 : Copyright 2019-2024 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 : */