Composite types Properties The following table lists the properties that support composite types. Rational Rhapsody 111 Subject and Metaclass Property Description CG subject Attribute/Type Implementation The Implementation property enables you to specify how Rational Rhapsody generates code for a given element (for example, as a simple array, collection, or list). (Default = Default) When this property is set to Default and the multiplicity is bounded (not *) and the type of the attribute is not a class, code is generated without using the container properties (as in previous versions of Rational Rhapsody).
Note that Rational Rhapsody generates a single accessor and mutator for an attribute, as opposed to relations, which can have several accessors and mutators. In smart generation mode, a setter is not generated when the attribute is Constant and either: • The attribute is not a Reference. • or The multiplicity of the attribute is 1. • or The CG::Attribute:: Implementation property is set to EmbeddedScalar or EmbeddedFixed.
subject Various properties Contain the keywords $constant and $reference to support the Constant and Reference modifiers FullTypeDefinition Specifies the typedef implementation template CG subject _ Attribute MutatorGenerate Specifies whether mutators are generated for attributes Attribute/Type ReferenceImplementationPatt ern Specifies how the Reference option is mapped to code Class/Type In Specifies how code is generated when the type is used with an argument that has the modifier In