MultiValued Attributes
[Previous]  [Next] 
|
User Manual [Previous]  [Next] MultiValued AttributesAs in UML, Umple allows one to specify an attribute with multiple values. We encourage the use of association notation in this context, however the attribute notation can be useful sometimes. Initialization of multivalued attributes is also allowed, as shown in the example. Exampleclass Office { Integer number; Phone[] installedTelephones; String[] emails = {"abc@umple.org", "def@umple.org"}; Integer [] incomingNumbers = {765432, 987654}; } class Phone { String digits; String callerID; } // @@@skipcppcompile Load the above code into UmpleOnline SyntaxmultivaluedAttribute- : [=unique]? [=lazy]? [=ivar]? [=modifier:immutable  |settable  |internal  |defaulted  |const  |fixml]? [type]? [[list]] [~name]  (= { [**value] }  )? ; |