Issue 7591: Rule (11) and (12) (mof2idl-ftf) Source: Humboldt-Universitaet (Mr. Mario Winkler, ) Nature: Uncategorized Issue Severity: Summary: In my opinion it has to be stated in Rule (11) and (12) that getter and setter operations are only generated for non-derived attributes. Resolution: Revised Text: This change would imply that no operations are available in IDL for derived attributes. As a consequence a repository client has no chance to retrieve or change the state of the derived attribute. Since the semantic of derived attributes means that its value can be calculated from other elements' state, only a "get" operation seems to be useful. In the same rule, the formulation about the unset operation is misleading. For derived attributes, only the "get" operation shall be generated according to Rule(11) and (12), since the attributes state is implied by other elements in a metamodel. Furthermore, the definition of the unset operation should be made more explicit. Revised Text: Replace Rule(12) on page 17 with the following: For a non-derived attribute with multiplicity [1..1], two operations to set and get the attributes value are declared - taking into account Rule (11). In case of attributes that have the isDerived property set to true only the get operation is generated. For optional attributes with a multiplicity of [0..1], an additional operation to unset the attribute is declared. The operation to get the value of the attribute has the name concatenate ( "get_", format_2 ( <attribute identifier> ) ). The return type is the IDL type generated for the attribute's type in the model. The operation to set the value has the name concatenate ( "set_", format_2 ( <attribute identifier> ) ). The operation has one parameter of the IDL type generated for the attribute's type in the model. For optional attributes the unset operation receives the name concatenate ( "unset_", format_2 ( <attribute identifier> ) ). Actions taken: July 15, 2004: received issue August 1, 2005: closed issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 15 Jul 2004 03:29:11 -0400 To: Subject: Issue/Bug Report -------------------------------------------------------------------------------- Name: Mario Winkler Company: IKV++ Technologies AG mailFrom: winkler@ikv.de Notification: Yes Specification: MOF 2.0 IDL Specification Section: 8.2.8 FormalNumber: ad/03-10-03 Version: 1 RevisionDate: nn Page: 17 Nature: Enhancement Severity: Critical HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax) Description In my opinion it has to be stated in Rule (11) and (12) that getter and setter operations are only generated for non-derived attributes.