Aspect
Aspect
Aspects encapsulate repeated structural or behavioural patterns seen in the business model and promote code re-use.
Description Aspects do not represent real Classes in the business model. They represent functional groupings of additional attributes and/or events that may be applied to Classes directly or through pointcuts. An Aspect is applied to all Classes (or other Aspects) that either:
* specify it by name in their "aspects" property or
* match the Aspect's "pointcut" property.
If a Class or Aspect matches the Aspect's "pointcut" property but excludes the aspect by name in its "aspects" property, the aspect will not be applied. Properties
aspects : aspectListList of names of aspects to include in or exclude from (if prefixed with !) this class. If an aspect is included, the aspect's attributes and events are appended to this class'.
Valid values based on“token”. (!?:?[\p{L}_][\p{L}\p{N}_]*(:[\p{L}_][\p{L}\p{N}_]*)*\s+)*(!?:?[\p{L}_][\p{L}\p{N}_]*(:[\p{L}_][\p{L}\p{N}_]*)*)? Each element in the list must begin with a letter or underscore. Elements are space delimited. To exclude a token, prefix it with the character "!".
description : stringType description.
facets : stringFacets with values and overrides: <name1> (<name2> <value2> value|list|assoc) ... Override defaults to value if not specified.
pointcuts : stringList of name patterns (with * and ?) of classes, where to include or exclude (if prefixed with !) this aspect.
transitiveUpdateAudit : booleanFlag to indicate whether changes propagated to an instance of this class will further be propagated to instances that are observing changes to this instance.
When set to true, instead of using this class instance as the audit context in the audit log, instances observing this instance will be used as audit contexts.validation : stringValidation expression taking "this" argument and returning #f, a string indentifier or a list of format arguments if the instance is invalid.
where : stringRead restriction on the instances of the class.
Content
Sequence of:
t_Aspect_PersistenceMappings [0..1]
Sequence of:
t_Type_Attributes [0..1] - Collection of Attributes on a Class or Aspect
t_Type_Events [0..1] - Collection of Events on a Class or Aspect.
t_Type_Attributes
Collection of Attributes on a Class or Aspectt_Type_Events
Collection of Events on a Class or Aspect.
Parent topic: references