Uh oh! We couldn’t find any match.

Please try other search keywords.

Bixby Developer Center

Guides

structure-enum

optionalvalue required

Specialized type of structure in which each of the properties is an index and the model enumerates all of the possible values. It allows enumerations for properties. You must fulfill the cardinality requirements of all properties to avoid compilation errors. Introducing undeclared properties within constraints also produces errors.

Example

structure-enum (WeightUnit) {
property (name) {
type (WeightUnitName)
min (Required) max (One)
}
property (abbreviation) {
type (WeightUnitAbbreviation)
min (Required) max (One)
}
constant: WeightUnit {
name: (Milligram)
abbreviation: (mg)
}
constant: WeightUnit {
name: (Centigram)
abbreviation: (cg)
}
...

Child Keys

compile-time-resolved-by
optional
Declare an action that can be called at compilation time to resolve partial instances
constant
optional
Allows making properties into an enumeration
description
optional
Adds text describing the structure-enum, 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
Extends 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