opencimi / AML

Archetype Modeling Language development repository
4 stars 5 forks source link

DTV and Primitives DateMatchPattern, DateTimeMatchPattern, DurationMatchPattern, TimeMatchPattern #91

Open neuronsong opened 9 years ago

neuronsong commented 9 years ago

A string pattern defining valid Date values….

There is no AOM classifier counterpart. At the AOM level, these concepts are a set of validity functions and pattern validity invariants expressed on a ""constraint"" class. In XSD, these may be expressed as pattern facet constraints. DTV would be constrained to the XSD pattern syntax. In AOM, the pattern_constraint is a String-typed Property of the Temporal Type, which is parameterized by an ISO8601 Type. The Temporal Type in AOM is the supertype for C_DATE, etc. In AML-UML, the pattern can simply be the String value of the class instantiated for an . The parameterized instantiation of a AOM C_TEMPORAL Class is represented as an Applied Stereotype with tag values in AML-UML. In particular, the current *MatchPattern Primitives are removed and replace with a String-typed Tag definition ""pattern_constraint:String[1]"".