Make

The Make class inherits from COM.ENT-CURL.XML.BusinessObject, which provides ancestor functionality to the get and set attributes created during the XML parsing process. As we saw in the previous section, the Make class must also provide functionality to generate a String array from the data contained within its return-table class variable, so that the data can be displayed in a drop-down list to the user. The code required to perform this functionality is listed in Figure 14-9.

The {get-make-array} method loops through each row in the self.return-table variable by using the {for} loop. It then returns the items consolidated in an {Array-of String} to the calling process.

The {for} loop is a powerful programming construct for providing general ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.