Issue 10725: Introduce the clear() operation on the Collection interface. (data-distribution-rtf) Source: PrismTech (Mr. Erik Hendriks, erik.hendriks(at)prismtech.com) Nature: Revision Severity: Summary: Problem: It would be convient to have a clear() operation on the collection interface which simply removes all elements from the collection (does not effect added/modified/deleted _elements operations results…). While we are at it, remove the type in the table stating there are no attributes as well (since two attributes are listed!!). Solution: Replace: Collection no attributes length integer values Undefined [] (e.g. of type ObjectRoot or Primitive type) It provides the following attributes: o length - the length of the collection. o values - a list of all values contained in the Collection. With: Collection attributes length integer values Undefined [] (e.g. of type ObjectRoot or Primitive type) operations clear void It provides the following attributes: o length - the length of the collection. o values - a list of all values contained in the Collection. It provides the following methods: · clear - to clear the contents of the Collection, does not affect the added_elements, modified_elements, deleted_elements results. If the object this Collection belongs to is not registered or does not belong to a (writeable) CacheAccess a PreconditionNotMet is raised In the IDL description on page 3-55 add the following to the abstract valuetype Collection: void clear() raises(PreconditionNotMet); In figure 3-4 on page 3-16 the clear() operation should be added to the operation listing of class Collection Resolution: Revised Text: Actions taken: February 13, 2007: received issue Discussion: End of Annotations:===== iler: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Tue, 13 Feb 2007 17:26:57 -0500 To: issues@omg.org, data-distribution-rtf@omg.org From: Juergen Boldt Subject: issue 10725 -- DDS RTF issue X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at omg.org This is issue # 10725 From: "Erik Hendriks" Introduce the clear() operation on the Collection interface. Problem: It would be convient to have a clear() operation on the collection interface which simply removes all elements from the collection (does not effect added/modified/deleted _elements operations results.). While we are at it, remove the type in the table stating there are no attributes as well (since two attributes are listed!!). Solution: Replace: Collection no attributes length integer values Undefined [] (e.g. of type ObjectRoot or Primitive type) It provides the following attributes: o length - the length of the collection. o values - a list of all values contained in the Collection. With: Collection attributes length integer values Undefined [] (e.g. of type ObjectRoot or Primitive type) operations clear void It provides the following attributes: o length - the length of the collection. o values - a list of all values contained in the Collection. It provides the following methods: · clear - to clear the contents of the Collection, does not affect the added_elements, modified_elements, deleted_elements results. If the object this Collection belongs to is not registered or does not belong to a (writeable) CacheAccess a PreconditionNotMet is raised In the IDL description on page 3-55 add the following to the abstract valuetype Collection: void clear() raises(PreconditionNotMet); In figure 3-4 on page 3-16 the clear() operation should be added to the operation listing of class Collection Juergen Boldt Director, Member Services Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 132 fax: +1 781 444 0320 email: juergen@omg.org www.omg.org