Base type | Description |
---|---|
Text | Can include paragraphs (newline characters). There is no restriction on the number of characters that can be entered. |
String | Cannot include paragraphs (newline characters). There is an upper limit of 968 on the number of characters that can be entered, which includes hidden characters. For example, rich text contains hidden characters and these are included as part of the 968 characters. Unicode and upper ASCII characters take up more internal storage space than plain ASCII characters. If you try to enter a value that contains more than 968 characters, an error is reported, and the value is truncated. If you need to enter many characters, use a Text attribute. |
Integer | Stores whole numbers. Numbers can be positive or negative. |
Real | Stores decimal numbers. Numbers can be positive or negative. |
Date | Stores dates. |
Enumeration | A list of values. You need to define the list
of values for an enumerated attribute. For example, you might define an attribute type called Priority with the base type Enumeration and the values High, Medium, and Low. |
Username | A Rational DOORS username. This attribute type is linked to the current users in the Rational DOORS database. Rational DOORS attributes that use this type may be updated when users are removed from the Rational DOORS database. |
You can construct your own types from these base types.
For example, you create a type called Percentage that has a base type of Integer and that can have values in the range 0-100. You then create various attributes of type Percentage. You know that users can only assign integer values 0 - 100 to those attributes. Rational DOORS rejects any other values as invalid.
You can use types as a way of letting users know what units of measurement are being used for an attribute. For example, you create a type called Kg that has a base type of Integer, and then create an attribute called Weight of type Kg. If a user is looking at the values in the Weight attribute, and is not sure what units the weight is measured in, they can check the attribute type and see that the units are Kg.