Allows overriding cardinality, type, and value binding for the property when extending the structure. When you declare a property as an override, only the keys specified in the override are overwritten. All other attributes do not go back to their defaults. Keep in mind that you cannot override certain properties. For example, you cannot reduce the visibility of a property by overriding the parent property. You also cannot override the min
cardinality from Required
to Optional
or override the max
cardinality.
Suppose viv.air.Airport
extends viv.geo.Place
. viv.air.Airport
can override the name
property and supply its more specific type
.
structure (Place) {
property (name) {
type (PlaceName)
min (Required)
}
...
}
structure (Airport) {
extends (Place)
property (name) {
override
type (AirportName)
}
...
}
Copyright 2024 Samsung All rights reserved