Difference between revisions of "XCSG:Field"
From AtlasWiki
Line 39: | Line 39: | ||
|} | |} | ||
− | + | ==Language mappings== | |
− | + | Field maps to the concept of a field in Java, and to the concept of a data member in C++. Fields may hold either data values (attributes) or pointers to other entities (which represent the ends of an association). | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 12:43, 5 March 2014
Specification
Metaclass | Field |
---|---|
Extends | Feature, Variable |
Description | A feature whose value is a part of the state of an object or class, e.g. an attribute or association |
References | StructuralFeature [5, p. 2-14, Figure 2-5], [5, pp. 2-54, 2-69] |
Tag | implicitRedefinition |
---|---|
Description | Does the field represent an implicit redefinition (e.g., to match a particular language semantics) rather than a redefinition explicitly specified by the user? |
Tag | multiplicity |
---|---|
Description | The number of values that the feature may hold, typically specified as a range (min .. max) or ‘*’ (zero or more). In the common case in which the multiplicity is 1..1, the feature is a scalar. |
Tag | ordering |
---|---|
Description | Are the values associated with the feature ordered? |
Language mappings
Field maps to the concept of a field in Java, and to the concept of a data member in C++. Fields may hold either data values (attributes) or pointers to other entities (which represent the ends of an association).