Skip to main content

Get help for ARIS UML Designer

Generate getter/setter

You can generate getter/setter methods with defined visibility for classes, datatypes, interfaces, and artifacts that have attributes.

Procedure. Procedure
  1. Right-click a class, a datatype, an interface, or an artifact.

  2. Click Generate getter and setter. The Generate getter and setter dialog opens.

  3. Enable the Generate getter and/or Generate setter check box.

  4. Use the Prefix box to select the term to precede the name of the method. The preset prefix is get for the getter method, and set for the setter method.

  5. Use the Visibility boxes to select the visibility of the selected methods.

  6. Select the attributes of the underlying element that you want to use as getter/setter attributes.

  7. Click OK.

If at least one method and one attribute have been selected, the getter/setter methods are generated in line with the settings, and added to the underlying element.