Contents |
Description
There is a description of each property of an attribute in the table below.
| Tab | Field | Description |
| General | Name | Name of an attribute. |
| Type | Type of an attribute: boolean, byte, char, double, float, int, long, short, String, void, Date, Object. | |
| Visibility | Specifies if the attribute is private, protected or public. | |
| Title | Name display in the target platform. | |
| Short description | Short description of the attribute. | |
| Value List | Specifies if the attribute is linked to an enumeration element. When you will create an instance, this attribute will have fixed value. | |
| Options | If yes is selected, the target platform will verify if the input value for this attribute is an email | |
| regular-expression | The target platform will verify if the input value follow the regular-expression. | |
| size | size of the field in the target platform. | |
| required | If yes is selected, an input for this attribute will be required in the target platform. | |
| hidden | If yes is selected, the attribute will be hidden in the target platform. | |
| read-only | If yes is selected, the user can not change the value of this attribute in the target platform. | |
| propertySearched | If yes is selected, user will be able to search a class through value of this attribute in the target platform. | |
| multiple | If yes is selected, it will be possible to add multiple value to this attribute in the target platform. | |
| textarea-rows | Defines the number of rows of the text area in the target platform. | |
| texarea-cols | Defines the number of columns of the text area in the target platform. | |
| min-length | Defines the minimum length of the input value in the target platform. | |
| max-length | Defines the maximum length of the input value in the target platform. |
Creating attributes
To add attributes to a class follow the steps provided below:
1. In the toolbox, click on the Property icon and drag it into the Customer class of the class diagram.
2. Double-click on the attribute to edit its properties.
3. Enter lastName in the name field, Last Name in the title field, and The last name of a customer in the short description field. Select String for the type and Private for the visibility.
4. Add to the Customer class the attributes: firstName, title, and adress. Save your class diagram.
Deployment in a target platform
We will use the platform Alfresco. Read the part Alfresco Generation to learn how to deploy your class diagram in Alfresco.
Playing with the property of the class
If you launch Alfresco you will see the following form when you create an instance of customer.
