Line data Source code
1 : /* File: xmi_element_info.inl; Copyright and License: see below */ 2 : 3 : #include <stddef.h> 4 : 5 : static inline int xmi_element_info_get_data_type_checksum ( const xmi_element_info_t *this_ ) 6 : { 7 : return (*this_).data_type_checksum; 8 : } 9 : 10 : static inline xmi_spec_t xmi_element_info_get_specification ( const xmi_element_info_t *this_ ) 11 : { 12 : return (*this_).specification; 13 : } 14 : 15 : static inline const char * xmi_element_info_get_profile_name ( const xmi_element_info_t *this_ ) 16 : { 17 : return (*this_).profile_name; 18 : } 19 : 20 : static inline const char * xmi_element_info_get_base_name ( const xmi_element_info_t *this_ ) 21 : { 22 : return (*this_).base_name; 23 : } 24 : 25 0 : static inline const char * xmi_element_info_get_name ( const xmi_element_info_t *this_ ) 26 : { 27 : const char* result; 28 0 : if ( (*this_).profile_name == NULL ) 29 : { 30 0 : result = (*this_).base_name; 31 : } 32 : else 33 : { 34 0 : result = (*this_).profile_name; 35 : } 36 0 : return result; 37 : } 38 : 39 : static inline const char * xmi_element_info_get_property_from ( const xmi_element_info_t *this_ ) 40 : { 41 : return (*this_).property_from; 42 : } 43 : 44 : static inline const char * xmi_element_info_get_property_to ( const xmi_element_info_t *this_ ) 45 : { 46 : return (*this_).property_to; 47 : } 48 : 49 0 : static inline const char * xmi_element_info_get_additional_properties ( const xmi_element_info_t *this_ ) 50 : { 51 0 : return (*this_).additional_properties; 52 : } 53 : 54 0 : static inline bool xmi_element_info_is_a_encapsulated_classifier ( const xmi_element_info_t *this_ ) 55 : { 56 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_ENCAPSULATED_CLASSIFIER ) == XMI_ELEMENT_IS_A_ENCAPSULATED_CLASSIFIER; 57 : } 58 : 59 0 : static inline bool xmi_element_info_is_a_classifier ( const xmi_element_info_t *this_ ) 60 : { 61 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_CLASSIFIER ) == XMI_ELEMENT_IS_A_CLASSIFIER; 62 : } 63 : 64 0 : static inline bool xmi_element_info_is_a_comment ( const xmi_element_info_t *this_ ) 65 : { 66 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_COMMENT ) == XMI_ELEMENT_IS_A_COMMENT; 67 : } 68 : 69 0 : static inline bool xmi_element_info_is_a_behavior ( const xmi_element_info_t *this_ ) 70 : { 71 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_BEHAVIOR ) == XMI_ELEMENT_IS_A_BEHAVIOR; 72 : } 73 : 74 0 : static inline bool xmi_element_info_is_a_named_element ( const xmi_element_info_t *this_ ) 75 : { 76 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_NAMED_ELEMENT ) == XMI_ELEMENT_IS_A_NAMED_ELEMENT; 77 : } 78 : 79 0 : static inline bool xmi_element_info_is_a_typed_element ( const xmi_element_info_t *this_ ) 80 : { 81 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_TYPED_ELEMENT ) == XMI_ELEMENT_IS_A_TYPED_ELEMENT; 82 : } 83 : 84 0 : static inline bool xmi_element_info_is_a_package ( const xmi_element_info_t *this_ ) 85 : { 86 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_PACKAGE ) == XMI_ELEMENT_IS_A_PACKAGE; 87 : } 88 : 89 0 : static inline bool xmi_element_info_is_a_packageable_element ( const xmi_element_info_t *this_ ) 90 : { 91 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_PACKAGEABLE_ELEMENT ) == XMI_ELEMENT_IS_A_PACKAGEABLE_ELEMENT; 92 : } 93 : 94 0 : static inline bool xmi_element_info_is_a_node ( const xmi_element_info_t *this_ ) 95 : { 96 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_NODE ) == XMI_ELEMENT_IS_A_NODE; 97 : } 98 : 99 0 : static inline bool xmi_element_info_is_a_activity_group ( const xmi_element_info_t *this_ ) 100 : { 101 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_ACTIVITY_GROUP ) == XMI_ELEMENT_IS_A_ACTIVITY_GROUP; 102 : } 103 : 104 0 : static inline bool xmi_element_info_is_a_activity_edge ( const xmi_element_info_t *this_ ) 105 : { 106 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_ACTIVITY_EDGE ) == XMI_ELEMENT_IS_A_ACTIVITY_EDGE; 107 : } 108 : 109 0 : static inline bool xmi_element_info_is_a_activity_node ( const xmi_element_info_t *this_ ) 110 : { 111 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_ACTIVITY_NODE ) == XMI_ELEMENT_IS_A_ACTIVITY_NODE; 112 : } 113 : 114 0 : static inline bool xmi_element_info_is_a_artifact ( const xmi_element_info_t *this_ ) 115 : { 116 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_ARTIFACT ) == XMI_ELEMENT_IS_A_ARTIFACT; 117 : } 118 : 119 0 : static inline bool xmi_element_info_is_a_behaviored_classifier ( const xmi_element_info_t *this_ ) 120 : { 121 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_BEHAVIORED_CLASSIFIER ) == XMI_ELEMENT_IS_A_BEHAVIORED_CLASSIFIER; 122 : } 123 : 124 0 : static inline bool xmi_element_info_is_a_class ( const xmi_element_info_t *this_ ) 125 : { 126 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_CLASS ) == XMI_ELEMENT_IS_A_CLASS; 127 : } 128 : 129 0 : static inline bool xmi_element_info_is_a_vertex ( const xmi_element_info_t *this_ ) 130 : { 131 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_VERTEX ) == XMI_ELEMENT_IS_A_VERTEX; 132 : } 133 : 134 0 : static inline bool xmi_element_info_is_a_transition ( const xmi_element_info_t *this_ ) 135 : { 136 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_TRANSITION ) == XMI_ELEMENT_IS_A_TRANSITION; 137 : } 138 : 139 0 : static inline bool xmi_element_info_is_a_message ( const xmi_element_info_t *this_ ) 140 : { 141 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_MESSAGE ) == XMI_ELEMENT_IS_A_MESSAGE; 142 : } 143 : 144 0 : static inline bool xmi_element_info_is_a_interaction_fragment ( const xmi_element_info_t *this_ ) 145 : { 146 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_INTERACTION_FRAGMENT ) == XMI_ELEMENT_IS_A_INTERACTION_FRAGMENT; 147 : } 148 : 149 0 : static inline bool xmi_element_info_is_a_association ( const xmi_element_info_t *this_ ) 150 : { 151 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_ASSOCIATION ) == XMI_ELEMENT_IS_A_ASSOCIATION; 152 : } 153 : 154 0 : static inline bool xmi_element_info_is_a_dependency ( const xmi_element_info_t *this_ ) 155 : { 156 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_DEPENDENCY ) == XMI_ELEMENT_IS_A_DEPENDENCY; 157 : } 158 : 159 0 : static inline bool xmi_element_info_is_a_property ( const xmi_element_info_t *this_ ) 160 : { 161 0 : return ( ((*this_).is_a) & XMI_ELEMENT_IS_A_PROPERTY ) == XMI_ELEMENT_IS_A_PROPERTY; 162 : } 163 : 164 0 : static inline bool xmi_element_info_is_a_tagged_value ( const xmi_element_info_t *this_ ) 165 : { 166 0 : return (*this_).is_a == XMI_ELEMENT_IS_A_TAGGED_VALUE; 167 : } 168 : 169 : /* 170 : Copyright 2020-2024 Andreas Warnke 171 : 172 : Licensed under the Apache License, Version 2.0 (the "License"); 173 : you may not use this file except in compliance with the License. 174 : You may obtain a copy of the License at 175 : 176 : http://www.apache.org/licenses/LICENSE-2.0 177 : 178 : Unless required by applicable law or agreed to in writing, software 179 : distributed under the License is distributed on an "AS IS" BASIS, 180 : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 181 : See the License for the specific language governing permissions and 182 : limitations under the License. 183 : */