Documentation Archive Developer
Search
Table of Contents Previous Section

Declarations File Syntax

As you've seen, the .wod file specifies nearly all of the information necessary to create a dynamic element. Because you usually create dynamic elements and their bindings using WebObjects Builder, you normally don't have to worry about the syntax of the .wod file. However, here it is for the curious:

elementName : elementType { attribute = value; attribute = value };
Notice that the last attribute/value pair before a closing brace (}) does not end with a semicolon (;).

As described in the previous section, value can be a constant, variable, or method. It can also be a string of messages joined by a dot, similar to the Java syntax for sending messages but without the parentheses. For example:

application.upSince.description

Table of Contents Next Section