Overview Index

SDAI_MAPPING_SCHEMA (jsdai.mapping)


ENTITY attribute_mapping
          SUBTYPE OF (generic_attribute_mapping);
          path : OPTIONAL LIST [1:?] OF attribute_mapping_path_select;
          domain : OPTIONAL attribute_mapping_domain_select;
DERIVE
          target : base_type := path[1];
END_ENTITY; -- attribute_mapping

An attribute_mapping is a generic_attribute_mapping for the case when the target is an EXPRESS data type.           domain: A domain identifies the data type of the source attribute in the case it is a named_type. If the source attribute leads to entity data types the corresponding entity_mapping is given here. If the source attribute is a select type of one or several defined types, the particular defined type this attribute mapping belongs to is specified here. In other cases this attribute is UNSET.

Entity data types and their attributes

generic_attribute_mapping
          parent_entity: entity_mapping;
          source: attribute;
          (OPT) constraints: constraint_select;
          (OPT) data_type: LIST [1:?] OF named_type;
          strong: BOOLEAN;
attribute_mapping
          (OPT) path: LIST [1:?] OF attribute_mapping_path_select;
          (OPT) domain: attribute_mapping_domain_select;
          (DER) target: base_type;

Users

generic_attribute_mapping
attribute_mapping

Global rules for this entity data type

          -

public interface EAttribute_mapping extends EGeneric_attribute_mapping

path (explicit attribute)

          boolean testPath(EAttribute_mapping type)
          AAttribute_mapping_path_select getPath(EAttribute_mapping type)
          AAttribute_mapping_path_select createPath(EAttribute_mapping type)
          void unsetPath(EAttribute_mapping type)

domain (explicit attribute)

          int testDomain(EAttribute_mapping type)
          case 1
              EEntity getDomain(EAttribute_mapping type)
              void setDomain(EAttribute_mapping type, EEntity value, EEntity node1)
          void unsetDomain(EAttribute_mapping type)

target (derived attribute)

          EEntity getTarget(EAttribute_mapping type)
          boolean testTarget(EAttribute_mapping type)

public class CAttribute_mapping implements EAttribute_mapping

          static EAttribute attributePath(EAttribute_mapping type)
          static int usedinPath(EAttribute_mapping type, EEntity instance, ASdaiModel domain, AAttribute_mapping result)
          static EAttribute attributeDomain(EAttribute_mapping type)
          static int usedinDomain(EAttribute_mapping type, EEntity instance, ASdaiModel domain, AAttribute_mapping result)
          static EAttribute attributeTarget(EAttribute_mapping type)
          static int usedinTarget(EAttribute_mapping type, EEntity instance, ASdaiModel domain, AAttribute_mapping result)

public class AAttribute_mapping extends AEntity

          public EAttribute_mapping getByIndex(int index)
          public EAttribute_mapping getCurrentMember(SdaiIterator it)