0% found this document useful (0 votes)
3 views3 pages

Constraints

Uploaded by

vinaygs2311
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Constraints

Uploaded by

vinaygs2311
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Contraints

1. Legal Value :list of allowable Values


Data types ==>
Real Number
Real Number with Units
Hyperlink
Integer
String
Date and Time
Boolean

Ex:
For the string data type, if the legal value list specified
is abc|cde|efg, then the legal strings that can be specified for the attribute are
abc, cde, or efg.

2.Enumerated Value List


Data types==>String
An enumerated list of legal values. This enumerated list can:
• Use a global enumeration
• Be based on a global enumeration
• Be uniquely created for this condition

exm:

3. Suggested Value List:


Data types ==>
Real Number
Real Number with Units
Hyperlink
Integer
String
Date and Time
Boolean
Provides a set of suggested values for the attribute

Ex: application

4.Significant Figures Set:Provides a set of suggested values for the attribute.


*A specialized form of Legal Value List, allows any values that match the supplied
set of values when rounded to the same number of significant figures as the values
from that set.
Does not require exact numerical matches.

Datatype==>Real Number
Real Number with Unit

ex:If the significant figures set is 2.0 | 4.5 | 265.400,


then the allowed values are 1.95 <= value <= 2.05 or 4.45 < value < 4.55
or 265.3995 <= value <= 265.4005.

5.Valid Range:The actual value of the attribute must be equal to or between the
values specified
Datatype==>Real Number
Real Number with Units
Date and Time
Integer
String

ex:For the numerical data types, if the valid range is specified as From1To7,
allowable attribute values include 2 and 7,
but not 9.

6.Regular Expression:A regular expression defining the pattern of text the


attribute value must match. Standard regular expression syntax is supported.
Datatype==>String

c.t
EExamples of legal values: cat, cot, cut

7. String Format :Provides a set of basic masking to regulate the format of a


string.
Data type==>String

CLD:
C means one letter or one digit.
L means one letter.
D means one digit.

Ex:Telephone number formatting value: (DDD)DDD-DDDD|DDD-DDD-DDDD|D-DDD-DDD-DDDD


Examples of legal strings:
◦(555)454–6789
◦ 555–198–3247
◦ 1–800–436–7869

8.String Length :should be within the range (min -Max)


*Data types ==>String
ex: 3 to 200

9. Wild card:

9.Wild Card:
Data type==>Srting and Hyperlink

The attribute value must match the wildcard pattern of the constraint data
specified:
• Contains—Contains the value specified.
• Begins With—Begins with the value specified
• Ends With—Ends with the value specified.
• Equals—Equals the value specified.

Ex:1. Contains abc


Legal strings can be Ababc, abcZ, AabcZ
2. Ends With er
Legal strings can be ABCer, Developer.

10. Lowercase &Upper case :


Data type==>Srting
MyTest=mytest -->lC
MyCard=MYCARD -->UC
11.immutable :Attribute values cannot be set, edited,
or removed
Calculated attributes always have an Immutable
Datatype==>All

12.Required :
Datatype==>All

13.Single valued:
Datatype==>All

14.Classification:parts link
Data type==>Srting

Seach :
By name

15.No Duplicate Values:(all data types with Global attribute)

You might also like