Defines a structure
concept model. A structure is a record-like type containing any number of properties. For more information, see Modeling Concepts.
This key and its child keys must be defined in a *.model.bxb
file. The file must be in the models/concepts
folder.
// models/concepts/structures/Business.model.bxb
structure (Business) {
description (A business is a physical location for commercial purposes)
property (name) {
type (BusinessName)
min (Required)
}
...
compile-time-resolved-by optional | Declare an action that can be called to resolve partial instances returned by another action |
description optional | Adds text describing the structure, which is useful for documenting models |
equivalence optional | A structure equivalence policy joins equivalence constraints together to specify how the system should compare two instances of the same concept |
extends optional | You can extend a parent concept with a new child concept, which inherits all of the parent properties |
features optional | Marks a concept with special concept features for user preferences, privacy, or security |
named-consumer optional | Named consumers allow explicitly linking a concept to an action |
natural-order optional | Specifies how to sort instances of the concept |
property optional | Properties define a has-a relationship between concepts |
role-of optional | There are cases where you want to assign a specific role to a feature, but not extend the feature |
sort-orderings optional | Collection of named orderings defined for the structure concept |