OCLOperators attributes
No edit summary
(Added Edited template with July 12, 2025.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Edited|July|12|2025}}
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>


Returns a list of names of all attributes owned by the class. This is meta information about what attributes the class has.
Returns a list of names of all attributes owned by the class. This is meta information about what attributes the class has.


'''Return Type'''
===== '''Return Type''' =====
 
Collection(String)
Collection(String)


'''Example'''
===== '''Example''' =====
[[File:2024-09-21 05h28 35.png|none|thumb|204x204px]]
[[File:2024-09-21 05h28 35.png|none|thumb|151x151px]]
{| class="wikitable"
{| class="wikitable"
!OCL Operation
!OCL Operation
!Result
!Result
|-
|-
|Produc
|Product.attributes
|['Price', 'DateAdded', 'Description', 'Name']
|}
[[Category:OCL General Operators]]
[[Category:OCL General Operators]]
t.attributes
|['DateAdded', 'Description', 'Name', 'Price']
|}

Latest revision as of 06:32, 20 January 2025

This page was created by Alexandra on 2017-08-13. Last edited by Edgar on 2025-01-20.


Returns a list of names of all attributes owned by the class. This is meta information about what attributes the class has.

Return Type

Collection(String)

Example
2024-09-21 05h28 35.png
OCL Operation Result
Product.attributes ['Price', 'DateAdded', 'Description', 'Name']