Object attributes (2/3)
Object attributes (2/3)
- Reference attributes
- Represent relationships between objects
- Analogous to pointers / foreign keys, but:
- cannot be corrupted
- automatically invalidated
- not associated with a user-visible value
- Collection attributes
- lists (ordered)
- sets (unordered)
- arrays (ordered)
- Can contain simple attributes & references
- Parameterized types
Document: {
title: STRING;
revision: DATE;
keywords: SET[STRING];
chaps: LIST[Chapter]; }