Hide Comments

A Primitive Property holds a primitive value, or a collection of primitive values, of a specified type. The Primitive Property has an assigned data type, which may be a Built-in Primitive Type, a User-defined Primitive Type, an Enumeration or a Simple Type.

Syntax

<property-name> : (<built-in-primitive-type>|<user-defined-primitive-type>|<enumeration>|<simple-type>)[<cardinality-indicator>]

[<constraint-spec>]...

Examples

structure Person

// Properties using Built-in types

id : string!

firstName : string!

lastName : string[1..1]

age : int

// User-defined Enumeration type

maritalStatus : MaritalStatusEnum

// User-defined Simple Type

ssn : SocialSecurityNumber

Parameters

Field Name

Type

Description

<property-name>

Name

The Name assigned to this property.

<built-in-primitive-type>

SName(Built-in Primitive Type)

The Built-in Primitive Type assigned to this property.

<user-defined-primitive-type>

QName(User-defined Primitive Type)

A User-defined Primitive Type assigned as the data type of this property.

<enumeration>

QName(Enumeration)

An Enumeration assigned as the data type of this property.

<simple-type>

QName(Simple Type)

A user-defined Simple Type assigned as the data type of this property.

<cardinality-indicator>

Cardinality

Optional Cardinality indicator for this property.  Primitive properties have a default Cardinality of 'zero or one'.

Child Elements

Name

Topic

Description

<constraint-spec>

Constraints

Defines constraints on the property value.

Parent Elements

Data Structure

Discussion

See the Built-in Primitive Data Types topic for a full list of the Built-in Primitive Property types.

Created with Help & Manual 6 and styled with Premium Pack Version 2.51 © by EC Software