opencimi / AML

Archetype Modeling Language development repository
4 stars 5 forks source link

DTV and Primitives DateConstraint, DateTimeConstraint, DurationConstraint, TimeConstraint #92

Open neuronsong opened 9 years ago

neuronsong commented 9 years ago

A constraint on a property of Date type…

There is no direct AOM classifier counterpart. At the AOM level, these concepts are realized by a set of validity functions and pattern validity invariants expressed on a ""constraint"" class. The Constraint Class is not used in isolation, it is used as a parameter in the instantiation of a C_TEMPORAL, which itself is a parameter in the instantiation of a C_OREDERED. There is no direct counterpart in XSD or DTV to the composition of these concepts.. The _Constraint Stereotypes in the AML-UML model represents a parameterized Class C_ORDERED<CTEMPORAL <>> . Within this context, AOM pattern_constraint corresponds to the current ""matchPattern"" tag definition, the AOM assumed_value correspond to the ""assumedValue"" tag definition, the AOM constraint: List<Interval> corresponds to the union of the current ""possibleValues"" and ""valueRanges"" tag definitions. For consistency and conciseness, the _Constraint Stereotypes should be parameterized and the tag definitions renamed to assumed_value:[0..1]; patternconstraint:String[1]; constraint:Interval[0..].