Class UmpleTrait

java.lang.Object

public class UmpleTrait
extends UmpleClassifier
An UmpleTrait can contain attributes, associations, state machines and methods. It can also have various other information such as a key (to identify uniqueness), code to inject into generated code, and comments. It can be tagged with various patterns. --- before addDepend { if (depends.contains(aDepend)) { return false; } } --- before setImmutable { if (!canBeImmutable()) { return false; } } --- before addAssociationVariable { if (!immutabilityAssociationRulesSatisfied(aAssociationVariable, this.isImmutable())) { return false; } } --- before setExtendsTrait { if (!enforceImmutabilityInheritanceRules(aExtendsClass)) { return false; } } --------------------------------------------------------------------------------------------- ------------------------------------class end------------------------------------------------ --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- ------------------------------------class start---------------------------------------------- ---------------------------------------------------------------------------------------------