|
|||||||||||||
Making a schema
The schema editorNavigate to your schemas folder. In a browser, go to the root folder of your WaterkenTM installation. Click "www". On the next page, click "en-US" and then "waterken.com". Finally, click "coffeebreak". This directory is the Coffeebreak schema folder. The folder contains schemas defined for the Coffeebreak application. You may want to bookmark it. Whenever I ask you to open your schemas folder, I am referring to this directory.
Note that all of the schema files have human-readable names. Because schemas are defining types,
their names should be informative. Open CommentThe textarea at the top of the form contains a comment describing the schema. The first sentence of the comment is useful for navigation, so it should summarize this type. OrderA schema is a list of named branches. Each branch points to a component of the composite datatype. Two radio buttons, labelled "ordered" and "unordered," allow you to determine whether or not the ordering of this list is significant. If the order of the branches matters, check "ordered". Usually, order should not be significant, so "unordered" is the default. Branches
This schema has two branches: Arity determines how often a branch can occur. Arity choices are:
Both a name and price should only appear once, so the arity of the branches is
The implicit field controls the type
of the branch's value. The Note the "add" link at the top of the table and the "remove" link in each row. These links add and remove branches. Note that you must always submit the form when making changes, including deletions! Run itAs you build schemas, the WaterkenTM server generates application documentation for you. As soon as you submit a schema, you can view it in the API. Click here to view the Coffee documentation on your machine. The next page describes creating the prototype and using it in the price list resource. | |||||||||||||
|
top
Copyright 2002 - 2003 Waterken Inc. All rights reserved. |