9.5. Summary

In this chapter you looked at the interfaces associated with value objects and the uses of value objects.

Value objects (VOs) are also sometimes known as data transfer objects (DTOs). Value objects are used to transfer data between software application subsystems.

A value object can mirror a server-side object using the RemoteClass metadata tag, which Flex uses to preserve type information when serializing a class using the Action Message Format (AMF). You can also use this metadata tag to represent a server-side object by specifying the full package of the remote class as the value of the alias in the RemoteClass metadata tag.

You may see value objects in a package named vo, valueObjects, or something similar. Regardless of the location, the general naming convention is to prefix the capital letters VO with the name of the object represented (e.g., ProductVO).

Using value objects generally involves having a public variable on an event class that is then accessed via the command class and passed to a delegate class if necessary.

Get Professional Cairngorm™ 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.