Attribute Properties

This section describes the properties specific to attributes of classes, inner classes, and interfaces. Every element has general properties as well as specific properties. For more information, see General Properties. The composition of the Properties view changes depending on the element selected in the Diagram or UML Navigator view. You can view and modify values of properties through the Properties view.

Attribute Properties

alias: Allows you to give an element a name that would not normally be accepted for that element. For example, use the alias property to represent a class name with spaces to make it more readable. Using the alias property does not effect the original name. The Diagram view shows the alias for an element.

associates: The associates property displays in the Properties view whenever an attribute has a non-primitive type. Click the Selection dialog button to open the Selection dialog for selecting model or java elements.

final: Set this value as true or false from the drop down list.

initial value: Use this field to set the initial value of the attribute.

name: The name of the attribute.

static: Set this value as true or false from the drop down list.

stereotype: Choose the appropriate stereotype from the drop down list, or add your own stereotype.

transient: Set this value as true or false from the drop down list.

type: This field represents the attribute type (String, boolean, double, float, and so on). Choose the appropriate type from the drop down list.

visibility: Set the visibility for the attribute from the drop down list. Choose from public, private, protected, or package local.

volatile: Set this value as true or false from the drop down list.


NB: Final, static, transient and volatile properties only apply to Class attributes.


Javadoc Properties

The Properties view for source-generating elements also displays Javadoc properties. Using javadoc tags enables you to automatically generate a complete, well-formatted API from your source code. You can enter a description and specify values for Javadoc tags applicable to the selected element. These values are used when you generate Javadoc using the Documentation Generation feature of Together (File > Export > UML Documentation). Filling in the Javadoc fields automatically generates appropriate tags in the Javadoc tags in the source code.

comment: Adds a comment to the source code. The comment is displayed in the generated documentation.

deprecated: Adds a comment to the generated documentation indicating that the API is deprecated and should no longer be used (even though it may continue to work).

see: Adds a hyperlinked "See also" entry when using the Documentation Generation feature.

since: Adds a "Since" entry with the specified since-text to the generated documentation. This tag indicates that this change or feature has existed since the software release specified by the since-text.