Attribute
The
attributes constitute the structural feature of a class. They describe the
persistent state of an object.
Properties
Name |
Name of the attribute. It
is mandatory. |
Visibility |
public:
the attribute is accessible in the methods of the class, the
subclasses and from outside of the class.
protected:
the attribute is accessible in the methods of the class and the
subclasses
private:
the attribute is accessible only in the methods of the class.
Content management:
in order to be editable in the generated content management, an
attribute must be public. |
Keywords |
none:
the attribute is specific to each instance of the class.
static: the attribute is
shared between all instances of the class. |
Type |
The type of the attribute
can be:
a Xion data type:
Boolean, Byte, Date, Double, Float, Int, Integer, Long, Real, Short,
String, Text, Time
the root class of all business model classes:
OclObject. An OclObject is linked to this class with a composition
(the linked object is deleted when an instance of this class is
deleted).
an enumeration type
a class: The class is
linked to this class with a composition 0..*-0..1 (the linked object
is deleted when an instance of this class is deleted). |
Stereotype |
Ignored |
Initial Value |
A constant value that is
affected to the attribute when an instance is created. the value
should conform to the syntax of the Xion language. |
|