|
ENTITY item_names; preferred_name : pref_name_type; synonymous_names : SET [0:?] OF syn_name_type; short_name : short_name_type; languages : OPTIONAL present_translations; icon : OPTIONAL graphics; WHERE wr1: NOT ( EXISTS ( languages ) ) OR ( ( 'iso13584_iec61360_language_resource_schema' + '.translated_label' IN TYPEOF ( preferred_name ) ) AND ( languages :=: preferred_name \ translated_label . languages ) AND ( 'iso13584_iec61360_language_resource_schema' + '.translated_label' IN TYPEOF ( short_name ) ) AND ( languages :=: short_name \ translated_label . languages ) AND ( QUERY ( s <* synonymous_names | NOT ( 'iso13584_iec61360_dictionary_schema' + '.label_with_language' IN TYPEOF ( s ) ) ) = [ ] ) ) ; wr2: NOT EXISTS ( languages ) OR ( QUERY ( s <* synonymous_names | EXISTS ( s . language ) AND NOT ( s . language IN QUERY ( l <* languages . language_codes | TRUE ) ) ) = [ ] ) ; wr3: at_most_two_synonyms_per_language ( languages , synonymous_names ) ; END_ENTITY; -- item_names |
Entity data types and their attributesitem_namespreferred_name: pref_name_type; synonymous_names: SET [0:?] OF syn_name_type; short_name: short_name_type; (OPT) languages: present_translations; (OPT) icon: graphics; |
Usersitem_namesclass_and_property_elements.names data_type_element.names dic_value.meaning value_domain.terms |
Global rules for this entity data type- |
public interface EItem_names extends EEntitypreferred_name (explicit attribute)int testPreferred_name(EItem_names type)case 1 EEntity getPreferred_name(EItem_names type) void setPreferred_name(EItem_names type, EEntity value, EEntity node1) case sPreferred_nameLabel: String getPreferred_name(EItem_names type, ELabel node1) void setPreferred_name(EItem_names type, String value, ELabel node1) void unsetPreferred_name(EItem_names type) synonymous_names (explicit attribute)boolean testSynonymous_names(EItem_names type)ASyn_name_type getSynonymous_names(EItem_names type) ASyn_name_type createSynonymous_names(EItem_names type) void unsetSynonymous_names(EItem_names type) short_name (explicit attribute)int testShort_name(EItem_names type)case 1 EEntity getShort_name(EItem_names type) void setShort_name(EItem_names type, EEntity value, EEntity node1) case sShort_nameLabel: String getShort_name(EItem_names type, ELabel node1) void setShort_name(EItem_names type, String value, ELabel node1) void unsetShort_name(EItem_names type) languages (explicit attribute)boolean testLanguages(EItem_names type)EPresent_translations getLanguages(EItem_names type) void setLanguages(EItem_names type, EPresent_translations value) void unsetLanguages(EItem_names type) icon (explicit attribute)boolean testIcon(EItem_names type)EGraphics getIcon(EItem_names type) void setIcon(EItem_names type, EGraphics value) void unsetIcon(EItem_names type) |
public class CItem_names implements EItem_namesstatic EAttribute attributePreferred_name(EItem_names type)static int usedinPreferred_name(EItem_names type, EEntity instance, ASdaiModel domain, AItem_names result) static EAttribute attributeSynonymous_names(EItem_names type) static int usedinSynonymous_names(EItem_names type, EEntity instance, ASdaiModel domain, AItem_names result) static EAttribute attributeShort_name(EItem_names type) static int usedinShort_name(EItem_names type, EEntity instance, ASdaiModel domain, AItem_names result) static EAttribute attributeLanguages(EItem_names type) static int usedinLanguages(EItem_names type, EPresent_translations instance, ASdaiModel domain, AItem_names result) static EAttribute attributeIcon(EItem_names type) static int usedinIcon(EItem_names type, EGraphics instance, ASdaiModel domain, AItem_names result) |
public class AItem_names extends AEntitypublic EItem_names getByIndex(int index)public EItem_names getCurrentMember(SdaiIterator it) |