Augment
Augment
Augments are used to extend a class for a given customer or business domain.
Description Augments are used for modularization, i.e. separating the domain model into several modules without circular dependencies between them. They are similar to Aspects but target a specific class and do not use pointcuts. 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.
for : identifierThe class to augment.
Valid values based on“string”. :?[\p{L}_][\p{L}\p{N}_]*(:[\p{L}_][\p{L}\p{N}_]*)* Value must begin with a letter or an underscore. Case and length are not restricted. Letters, numbers and underscores are allowed. Colon is used as a scope separator. Spaces and other punctuation characters are not allowed.
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_Augment_PersistenceMapping [0..1] - A persistence mapping specifies how instances are persisted in a given data source. The type of the specified data source determines the mapping structure.
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_Augment_PersistenceMapping
A persistence mapping specifies how instances are persisted in a given data source. The type of the specified data source determines the mapping structure.t_Type_Attributes
Collection of Attributes on a Class or Aspectt_Type_Events
Collection of Events on a Class or Aspect.
Parent topic: references