NetworkedPlanet | TMCore Engine API Guide |
This element describes a single Association Type in the schema. It contains the Association Role Constraints that apply to this Association Type.
<npcl:associationType id="..." abstract="true|false"> <npcl:subjectIdentifier> ... </npcl:subjectIdentifier> <npcl:displayName> ... </npcl:displayName> <associationRoleConstraint roleTypeRef="..." minCardinality="..." maxCardinality="..." arcLabel="..."/> <npcl:extension type="..."> ... </npcl:extension> <npcl:subclasses> ... </npcl:subclasses> </associationType>
REQUIRED. An internal identifier for the type. This is used only for reference purposes inside the NPCL XML document.
OPTIONAL. A boolean value that indicates if this type is abstract. If not specified, this attribute value defaults to "false".
REQUIRED, REPEATABLE. Contains a subject identifier URI for the type.
Contains a human-readable display label for the type.
Defines a single Association Role Constraint that applies to this Association Type.
The roleTypeRef
attribute is REQUIRED and
contains the internal identifier of the Role Type that is allowed
by the Association Role Constraint. This must match the value of
the id attribute on a roleType element in the NPCL XML
document.
The minCardinality
attribute specifies
the Minimum Cardinality Facet for the constraint. This attribute
is REQUIRED and its value must be a non-negative integer.
The maxCardinality
attribute specifies
the Maximum Cardinality Facet for the constraint. This attribute
is REQUIRED and its value must be either a non-negative integer or
the string value "unbounded" (indicating that there is no upper
limit on this constraint.
The arcLabel
attribute specifies the Arc
Label Facet for the constraint. This attribute is OPTIONAL and its
value should be a human-readable label for the association, when
displayed in the context of the player of the role identified by
the roleTypeRef
attribute.
Contains a single typed extension value for the type. The
value is the string content of this element. The type is specified
as a URI in the type
attribute of this
elment.
Contains a list of the subclasses of this type. This element structure is described in detail below.