Constraint Descriptor : cdadt014 (type: ERROR, kind: )

Constraint : cdadt014

Constraint Name
cdadt014 (type: ERROR, kind: )
Constraint Class
URLSpec
Package
cdadt
Description
When the URL datatype is tel or fax, the structure of the litteral is specified according to the specification in the datatypes specification, paragraph 2.18.3, and where the value is defined according to this regex (tel|fax):\\+?([0-9]|\\(|\\)|\\.|\\-)*$ (CDADT-014)
OCL
self.value.oclIsUndefined() or 
(not self.matches(self.value, '^(tel|fax):.*$')) or 
self.matches(self.value, '(tel|fax):\\+?([0-9]|\\(|\\)|\\.|\\-)*$')