Binds a specific value to a property. This is useful when using override
on a property defined by a parent concept.
You cannot define a bind
value and a default-value
for a property at the same time. You can use override
with bind
on a default-value
inherited from a parent structure, and the bind
value will be used instead.
structure (Business) {
property (businessCategory) {
type (BusinessCategory)
max (Many)
}
...
If you then define Restaurant
as an extension of Business
, you can force the businessCategory
property to only hold the specific Restaurant
value, which you would specify with bind
.
structure (Restaurant) {
extends (Business)
property (businessCategory) {
override bind (Restaurant)
}
...
}
Copyright 2024 Samsung All rights reserved